QnASearchResultContext Class

Context object of the QnA.

Inheritance
QnASearchResultContext

Constructor

QnASearchResultContext(**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.