Skip to content

RetrieveAndGenerateConfiguration

Source code in docs_src/capo_bedrock_agent_runtime/types/retrieve_and_generate_configuration.py
class RetrieveAndGenerateConfiguration(TypedDict, closed=True):
    type: "capo_bedrock_agent_runtime.types.retrieve_and_generate_type.RetrieveAndGenerateType"
    """<p>The type of resource that contains your data for retrieving information and generating responses.</p> <note> <p>If you choose to use <code>EXTERNAL_SOURCES</code>, then currently only Anthropic Claude 3 Sonnet models for knowledge bases are supported.</p> </note>"""
    knowledge_base_configuration: NotRequired[
        "capo_bedrock_agent_runtime.types.knowledge_base_retrieve_and_generate_configuration.KnowledgeBaseRetrieveAndGenerateConfiguration"
    ]
    """<p>Contains details about the knowledge base for retrieving information and generating responses.</p>"""
    external_sources_configuration: NotRequired[
        "capo_bedrock_agent_runtime.types.external_sources_retrieve_and_generate_configuration.ExternalSourcesRetrieveAndGenerateConfiguration"
    ]
    """<p>The configuration for the external source wrapper object in the <code>retrieveAndGenerate</code> function.</p>"""

external_sources_configuration instance-attribute

external_sources_configuration: NotRequired[
    ExternalSourcesRetrieveAndGenerateConfiguration
]

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

knowledge_base_configuration instance-attribute

knowledge_base_configuration: NotRequired[KnowledgeBaseRetrieveAndGenerateConfiguration]

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.

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