View source: R/bedrockagentruntime_operations.R
| bedrockagentruntime_agentic_retrieve_stream | R Documentation |
Retrieves information from one or more knowledge bases using an agentic approach. Agentic retrieval uses a foundation model to intelligently decompose complex queries into sub-queries and iteratively retrieve relevant information from your knowledge bases. This approach improves retrieval accuracy for complex, multi-step questions that a single retrieval pass might not fully address.
See https://www.paws-r-sdk.com/docs/bedrockagentruntime_agentic_retrieve_stream/ for full documentation.
bedrockagentruntime_agentic_retrieve_stream(
agenticRetrieveConfiguration,
generateResponse = NULL,
memoryConfiguration = NULL,
messages,
nextToken = NULL,
policyConfiguration = NULL,
retrievers,
userContext = NULL
)
agenticRetrieveConfiguration |
[required] Configuration settings for the agentic retrieval operation. |
generateResponse |
Whether to generate a response based on the retrieved results. |
memoryConfiguration |
The configuration for using an Amazon Bedrock AgentCore Memory resource with this retrieval. |
messages |
[required] The list of messages for the agentic retrieval conversation. |
nextToken |
Opaque continuation token for paginated results. |
policyConfiguration |
Policy configuration for guardrails and content filtering. |
retrievers |
[required] The list of retrievers to use for agentic retrieval. |
userContext |
Contains information about the user making the request. This is used for access control filtering to ensure that retrieval results only include documents the user is authorized to access. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.