Skip to content

Bedrock Agent Runtime  >  Structures  >  KnowledgeBaseRetrieveAndGenerateConfiguration

KnowledgeBaseRetrieveAndGenerateConfiguration

Structure Class

KnowledgeBaseRetrieveAndGenerateConfiguration dataclass

Contains details about the resource being queried.

This data type is used in the following API operations:

Attributes

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

Contains configurations for response generation based on the knowledge base query results.

knowledge_base_id instance-attribute
knowledge_base_id: str

The unique identifier of the knowledge base that is queried.

model_arn instance-attribute
model_arn: str

The ARN of the foundation model or inference profile used to generate a response.

orchestration_configuration class-attribute instance-attribute
orchestration_configuration: OrchestrationConfiguration | None = None

Settings for how the model processes the prompt prior to retrieval and generation.

retrieval_configuration class-attribute instance-attribute
retrieval_configuration: KnowledgeBaseRetrievalConfiguration | None = None

Contains configurations for how to retrieve and return the knowledge base query.