QueryDTO interface
POST body schema to query the knowledgebase.
Properties
answer |
To configure Answer span prediction feature. |
context | Context object with previous QnA's information. |
is |
Query against the test index. |
qna |
Exact qnaId to fetch from the knowledgebase, this field takes priority over question. |
question | User question to query against the knowledge base. |
ranker |
Optional field. Set to 'QuestionOnly' for using a question only Ranker. |
score |
Minimum threshold score for answers. |
strict |
Find QnAs that are associated with the given list of metadata. |
strict |
Optional field. Set to 'OR' for using OR operation for strict filters. Possible values include: 'AND', 'OR' |
top | Max number of answers to be returned for the question. |
user |
Unique identifier for the user. |
Property Details
answerSpanRequest
To configure Answer span prediction feature.
answerSpanRequest?: QueryDTOAnswerSpanRequest
Property Value
context
Context object with previous QnA's information.
context?: QueryDTOContext
Property Value
isTest
Query against the test index.
isTest?: boolean
Property Value
boolean
qnaId
Exact qnaId to fetch from the knowledgebase, this field takes priority over question.
qnaId?: string
Property Value
string
question
User question to query against the knowledge base.
question?: string
Property Value
string
rankerType
Optional field. Set to 'QuestionOnly' for using a question only Ranker.
rankerType?: string
Property Value
string
scoreThreshold
Minimum threshold score for answers.
scoreThreshold?: number
Property Value
number
strictFilters
Find QnAs that are associated with the given list of metadata.
strictFilters?: MetadataDTO[]
Property Value
strictFiltersCompoundOperationType
Optional field. Set to 'OR' for using OR operation for strict filters. Possible values include: 'AND', 'OR'
strictFiltersCompoundOperationType?: StrictFiltersCompoundOperationType
Property Value
top
Max number of answers to be returned for the question.
top?: number
Property Value
number
userId
Unique identifier for the user.
userId?: string
Property Value
string