Share via


QueryResult Class

Definition

Represents an individual result from a knowledge base query.

public class QueryResult
type QueryResult = class
Public Class QueryResult
Inheritance
QueryResult

Constructors

QueryResult()

Properties

Answer

Gets or sets the answer text.

AnswerSpan

Gets or sets AnswerSpanResponse object for precise answer in response .

Context

Gets or sets context for multi-turn responses.

Id

Gets or sets the index of the answer in the knowledge base. V3 uses 'qnaId', V4 uses 'id'.

Metadata

Gets or sets metadata that is associated with the answer.

Questions

Gets or sets the list of questions indexed in the QnA Service for the given answer.

Score

Gets or sets the answer's score, from 0.0 (least confidence) to 1.0 (greatest confidence).

Source

Gets or sets the source from which the QnA was extracted.

Applies to