ContextDTO Class

Context associated with Qna.

Inheritance
ContextDTO

Constructor

ContextDTO(**kwargs)

Parameters

is_context_only
bool
Required

To mark if a prompt is relevant only with a previous question or not. true - Do not include this QnA as search result for queries without context false - ignores context and includes this QnA in search result

prompts
list[PromptDTO]
Required

List of prompts associated with the answer.