v8

latestSwagger 2.0raw.githubusercontent.com2020-09-2821415.2 KB
Knowledgebases

GenerateAnswer call to query the knowledgebase.

post/knowledgebases/{kbId}/generateAnswer

Path parameters

kbIdstring required

Knowledgebase id.

Request body

qnaIdstring

Exact qnaId to fetch from the knowledgebase, this field takes priority over question.

questionstring

User question to query against the knowledge base.

topinteger

Max number of answers to be returned for the question.

userIdstring

Unique identifier for the user. Optional parameter for telemetry. For more information, refer <a href="http://aka.ms/qnamaker-analytics#user-traffic" target="blank">Analytics and Telemetry</a>.

isTestboolean

Query against the test index.

scoreThresholdnumber

Threshold for answers returned based on score.

rankerTypestring

Optional field. Set to 'QuestionOnly' for using a question only Ranker.

strictFiltersCompoundOperationType'AND' | 'OR'

Optional field. Set to OR for using OR as Operation for Strict Filters.

Response

GenerateAnswer call response.

All 2 operations