Amazon Bedrock Knowledge Base
AI-generatedSummary
Query a specified Amazon Bedrock Knowledge Base with a text query and retrieve up to a configurable maximum number of matching results.
Inputs
- Knowledge Base Name or ID (required) — Select or specify the unique identifier of the knowledge base to search.
- Query (required) — Provide the text query to search within the chosen knowledge base.
- Max Results — Set the maximum number of search results to return, from 1 to 100, defaulting to 10.
Output shape
a list of retrieval results for each input query, including the results and a nextToken if more results are available
Returns a JSON object containing retrievalResults (the search matches) and nextToken for pagination. The maxResults input is clamped between 1 and 100. Errors are captured per item if 'Continue on Fail' is enabled.
Examples
Example 1: Retrieving knowledge base search results
Specify the knowledge base by selecting its ID, enter your search query text, and optionally limit the number of returned results before executing the node.