Skip to content

RetrieveAndGenerateConfiguration

Source code in docs_src/capo_bedrock/types/retrieve_and_generate_configuration.py
class RetrieveAndGenerateConfiguration(TypedDict, closed=True):
    type: "capo_bedrock.types.retrieve_and_generate_type.RetrieveAndGenerateType"
    """<p>The type of resource that contains your data for retrieving information and generating responses.</p> <p>If you choose to use <code>EXTERNAL_SOURCES</code>, then currently only Claude 3 Sonnet models for knowledge bases are supported.</p>"""
    knowledge_base_configuration: NotRequired[
        "capo_bedrock.types.knowledge_base_retrieve_and_generate_configuration.KnowledgeBaseRetrieveAndGenerateConfiguration"
    ]
    """<p>Contains configuration details for the knowledge base retrieval and response generation.</p>"""
    external_sources_configuration: NotRequired[
        "capo_bedrock.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 configuration details for the knowledge base retrieval and response generation.

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 Claude 3 Sonnet models for knowledge bases are supported.