RetrieveAndGenerateConfiguration - Amazon Bedrock
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

RetrieveAndGenerateConfiguration

Contains configuration details for a knowledge base retrieval and response generation.

Contents

type

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

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

Type: String

Valid Values: KNOWLEDGE_BASE | EXTERNAL_SOURCES

Required: Yes

externalSourcesConfiguration

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

Type: ExternalSourcesRetrieveAndGenerateConfiguration object

Required: No

knowledgeBaseConfiguration

Contains configuration details for the knowledge base retrieval and response generation.

Type: KnowledgeBaseRetrieveAndGenerateConfiguration object

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: