RetrieveAndGenerateConfiguration¶
Structure Class¶
RetrieveAndGenerateConfiguration
dataclass
¶
Contains configuration details for a knowledge base retrieval and response generation.
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 configuration details for the knowledge base retrieval and response generation.
type
instance-attribute
¶
type: RetrieveAndGenerateType
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.