QnAMakerResult interface

An individual answer returned by a call to the QnA Maker Service.

Properties

answer

Answer from the knowledge base.

answerSpan

The PreciseAnswer related information in the Answer Text.

context

Context for multi-turn responses.

id

The index of the answer in the knowledge base. V3 uses 'qnaId', V4 uses 'id'. (If any)

metadata

Metadata associated with the answer (If any)

questions

The list of questions indexed in the QnA Service for the given answer. (If any)

score

Confidence on a scale from 0.0 to 1.0 that the answer matches the users intent.

source

The source from which the QnA was extracted (If any)

Property Details

answer

Answer from the knowledge base.

answer: string

Property Value

string

answerSpan

The PreciseAnswer related information in the Answer Text.

answerSpan?: AnswerSpanResponse

Property Value

context

Context for multi-turn responses.

context?: QnAResponseContext

Property Value

id

The index of the answer in the knowledge base. V3 uses 'qnaId', V4 uses 'id'. (If any)

id?: number

Property Value

number

metadata

Metadata associated with the answer (If any)

metadata?: any

Property Value

any

questions

The list of questions indexed in the QnA Service for the given answer. (If any)

questions?: string[]

Property Value

string[]

score

Confidence on a scale from 0.0 to 1.0 that the answer matches the users intent.

score: number

Property Value

number

source

The source from which the QnA was extracted (If any)

source?: string

Property Value

string