QnAMakerResult interface

通过调用 QnA Maker 服务返回的单个答案。

属性

answer

从知识库回答。

answerSpan

答案文本中的 PreciseAnswer 相关信息。

context

多轮次响应的上下文。

id

知识库中答案的索引。 V3 使用“qnaId”,V4 使用“id”。 (如果有)

metadata

与答案关联的元数据 ((如果有) )

questions

QnA 服务中为给定答案编制索引的问题列表。 (如果有)

score

从 0.0 到 1.0,答案与用户意向匹配的置信度。

source

从中提取 QnA 的源 (如果有)

属性详细信息

answer

从知识库回答。

answer: string

属性值

string

answerSpan

答案文本中的 PreciseAnswer 相关信息。

answerSpan?: AnswerSpanResponse

属性值

context

多轮次响应的上下文。

context?: QnAResponseContext

属性值

id

知识库中答案的索引。 V3 使用“qnaId”,V4 使用“id”。 (如果有)

id?: number

属性值

number

metadata

与答案关联的元数据 ((如果有) )

metadata?: any

属性值

any

questions

QnA 服务中为给定答案编制索引的问题列表。 (如果有)

questions?: string[]

属性值

string[]

score

从 0.0 到 1.0,答案与用户意向匹配的置信度。

score: number

属性值

number

source

从中提取 QnA 的源 (如果有)

source?: string

属性值

string