bedrockagentruntime_retrieve_and_generate: Queries a knowledge base and generates responses based on the...

View source: R/bedrockagentruntime_operations.R

bedrockagentruntime_retrieve_and_generateR Documentation

Queries a knowledge base and generates responses based on the retrieved results and using the specified foundation model or inference profile

Description

Queries a knowledge base and generates responses based on the retrieved results and using the specified foundation model or inference profile. The response only cites sources that are relevant to the query.

See https://www.paws-r-sdk.com/docs/bedrockagentruntime_retrieve_and_generate/ for full documentation.

Usage

bedrockagentruntime_retrieve_and_generate(
  input,
  retrieveAndGenerateConfiguration = NULL,
  sessionConfiguration = NULL,
  sessionId = NULL
)

Arguments

input

[required] Contains the query to be made to the knowledge base.

retrieveAndGenerateConfiguration

Contains configurations for the knowledge base query and retrieval process. For more information, see Query configurations.

sessionConfiguration

Contains details about the session with the knowledge base.

sessionId

The unique identifier of the session. When you first make a retrieve_and_generate request, Amazon Bedrock automatically generates this value. You must reuse this value for all subsequent requests in the same conversational session. This value allows Amazon Bedrock to maintain context and knowledge from previous interactions. You can't explicitly set the sessionId yourself.


paws.machine.learning documentation built on April 3, 2025, 8:41 p.m.