Skip to content

Bedrock  >  Structures  >  ExternalSourcesRetrieveAndGenerateConfiguration

ExternalSourcesRetrieveAndGenerateConfiguration

Structure Class

ExternalSourcesRetrieveAndGenerateConfiguration dataclass

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

Attributes

generation_configuration class-attribute instance-attribute
generation_configuration: ExternalSourcesGenerationConfiguration | None = None

Contains configurations details for response generation based on retrieved text chunks.

model_arn instance-attribute
model_arn: str

The Amazon Resource Name (ARN) of the foundation model or inference profile used to generate responses.

sources instance-attribute
sources: list[ExternalSource]

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