retrieve
Search enterprise collections with natural-language queries and retrieve relevant passages with relevance scores and source URIs.
Instructions
Semantic search across accessible collections using Amazon Bedrock Knowledge Bases.
Args: query: Natural-language question or search phrase. collections: Which collections (and optionally which version) to search. Each entry is either: - "collection_id" → search that collection at its default version - "collection_id:label" → search that collection at the given version label Omit (or pass null) to search across all collections accessible to the API key, each at its default version. Use list_collections to discover IDs and labels. number_of_results: Maximum number of passages to return (default 10).
Returns a list of results, each with:
collectionId / versionLabel: which collection and version the passage came from
content: the retrieved text passage
score: relevance score (higher is more relevant)
sourceUri: original document URI when available
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| collections | No | ||
| number_of_results | No |