QueryResultItem
¶
Source code in docs_src/capo_kendra/types/query_result_item.py
additional_attributes
instance-attribute
¶
additional_attributes: NotRequired[AdditionalResultAttributeList]
One or more additional fields/attributes associated with the query result.
collapsed_result_detail
instance-attribute
¶
collapsed_result_detail: NotRequired[CollapsedResultDetail]
Provides details about a collapsed group of search results.
document_attributes
instance-attribute
¶
document_attributes: NotRequired[DocumentAttributeList]
An array of document fields/attributes assigned to a document in the search results. For example, the document author (_author) or the source URI (_source_uri) of the document.
document_excerpt
instance-attribute
¶
document_excerpt: NotRequired[TextWithHighlights]
An extract of the text in the document. Contains information about highlighting the relevant terms in the excerpt.
document_id
instance-attribute
¶
document_id: NotRequired[DocumentId]
The identifier for the document.
document_title
instance-attribute
¶
document_title: NotRequired[TextWithHighlights]
The title of the document. Contains the text of the title and information for highlighting the relevant terms in the title.
document_uri
instance-attribute
¶
document_uri: NotRequired[Url]
The URI of the original location of the document.
feedback_token
instance-attribute
¶
feedback_token: NotRequired[FeedbackToken]
A token that identifies a particular result from a particular query. Use this token to provide click-through feedback for the result. For more information, see Submitting feedback.
format
instance-attribute
¶
format: NotRequired[QueryResultFormat]
If the Type of document within the response is ANSWER, then it is either a TABLE answer or TEXT answer. If it's a table answer, a table excerpt is returned in TableExcerpt. If it's a text answer, a text excerpt is returned in DocumentExcerpt.
id
instance-attribute
¶
id: NotRequired[ResultId]
The unique identifier for the query result item id (Id) and the query result item document id (DocumentId) combined. The value of this field changes with every request, even when you have the same documents.
score_attributes
instance-attribute
¶
score_attributes: NotRequired[ScoreAttributes]
Indicates the confidence level of Amazon Kendra providing a relevant result for the query. Each result is placed into a bin that indicates the confidence, VERY_HIGH, HIGH, MEDIUM and LOW. You can use the score to determine if a response meets the confidence needed for your application.
The field is only set to LOW when the Type field is set to DOCUMENT and Amazon Kendra is not confident that the result is relevant to the query.
table_excerpt
instance-attribute
¶
table_excerpt: NotRequired[TableExcerpt]
An excerpt from a table within a document.
type
instance-attribute
¶
type: NotRequired[QueryResultType]
The type of document within the response. For example, a response could include a question-answer that's relevant to the query.