Optional
attributeExtracts the attribute value from a DocumentAttributeValue object.
The DocumentAttributeValue object to extract the value from.
The extracted attribute value.
Extracts the attribute key-value pairs from an array of DocumentAttribute objects.
Optional
documentAttributes: DocumentAttribute[]The array of DocumentAttribute objects to extract the key-value pairs from.
An object containing the extracted attribute key-value pairs.
Extracts the top-k documents from a RetrieveCommandOutput object.
The RetrieveCommandOutput object to extract the documents from.
The number of documents to extract.
An array of Document objects.
Sends a retrieve or query request to Kendra and returns the top-k documents.
The query to send to Kendra.
The number of top documents to return.
Optional
attributeFilter: AttributeFilterOptional filter to apply when retrieving documents.
A Promise that resolves to an array of Document objects.
Generated using TypeDoc
Class for interacting with Amazon Kendra, an intelligent search service provided by AWS. Extends the BaseRetriever class.
Example