KnowledgeBaseRetrievalResult
Details about a result from querying the knowledge base.
This data type is used in the following API operations:
-
Retrieve response – in the
retrievalResults
field
Contents
- content
-
Contains a chunk of text from a data source in the knowledge base.
Type: RetrievalResultContent object
Required: Yes
- location
-
Contains information about the location of the data source.
Type: RetrievalResultLocation object
Required: No
- metadata
-
Contains metadata attributes and their values for the file in the data source. For more information, see Metadata and filtering.
Type: String to JSON value map
Map Entries: Maximum number of items.
Key Length Constraints: Minimum length of 1. Maximum length of 100.
Required: No
- score
-
The level of relevance of the result to the query.
Type: Double
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: