Skip to content

Bedrock Agent Runtime  >  Structures  >  RetrieveAndGenerateConfiguration

RetrieveAndGenerateConfiguration

Structure Class

RetrieveAndGenerateConfiguration dataclass

Contains details about the resource being queried.

This data type is used in the following API operations:

Attributes

external_sources_configuration class-attribute instance-attribute
external_sources_configuration: ExternalSourcesRetrieveAndGenerateConfiguration | None = None

The configuration for the external source wrapper object in the retrieveAndGenerate function.

knowledge_base_configuration class-attribute instance-attribute
knowledge_base_configuration: KnowledgeBaseRetrieveAndGenerateConfiguration | None = None

Contains details about the knowledge base for retrieving information and generating responses.

type instance-attribute

The type of resource that contains your data for retrieving information and generating responses.

Note

If you choose to use EXTERNAL_SOURCES, then currently only Anthropic Claude 3 Sonnet models for knowledge bases are supported.