QueryAnswerResult interface

An answer is a text passage extracted from the contents of the most relevant documents that matched the query. Answers are extracted from the top search results. Answer candidates are scored and the top answers are selected.

Properties

additionalProperties

Additional properties

highlights

Same text passage as in the Text property with highlighted text phrases most relevant to the query.

key

The key of the document the answer was extracted from.

score

The score value represents how relevant the answer is to the query relative to other answers returned for the query.

text

The text passage extracted from the document contents as the answer.

Property Details

additionalProperties

Additional properties

additionalProperties?: Record<string, any>

Property Value

Record<string, any>

highlights

Same text passage as in the Text property with highlighted text phrases most relevant to the query.

highlights?: string

Property Value

string

key

The key of the document the answer was extracted from.

key?: string

Property Value

string

score

The score value represents how relevant the answer is to the query relative to other answers returned for the query.

score?: number

Property Value

number

text

The text passage extracted from the document contents as the answer.

text?: string

Property Value

string