Interface KnowledgeBaseRetrieveAndGenerateConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<KnowledgeBaseRetrieveAndGenerateConfiguration.Builder,,KnowledgeBaseRetrieveAndGenerateConfiguration> SdkBuilder<KnowledgeBaseRetrieveAndGenerateConfiguration.Builder,,KnowledgeBaseRetrieveAndGenerateConfiguration> SdkPojo
- Enclosing class:
KnowledgeBaseRetrieveAndGenerateConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiongenerationConfiguration(Consumer<GenerationConfiguration.Builder> generationConfiguration) Contains configurations for response generation based on the knowledge base query results.generationConfiguration(GenerationConfiguration generationConfiguration) Contains configurations for response generation based on the knowledge base query results.knowledgeBaseId(String knowledgeBaseId) The unique identifier of the knowledge base that is queried.The ARN of the foundation model or inference profile used to generate a response.orchestrationConfiguration(Consumer<OrchestrationConfiguration.Builder> orchestrationConfiguration) Settings for how the model processes the prompt prior to retrieval and generation.orchestrationConfiguration(OrchestrationConfiguration orchestrationConfiguration) Settings for how the model processes the prompt prior to retrieval and generation.retrievalConfiguration(Consumer<KnowledgeBaseRetrievalConfiguration.Builder> retrievalConfiguration) Contains configurations for how to retrieve and return the knowledge base query.retrievalConfiguration(KnowledgeBaseRetrievalConfiguration retrievalConfiguration) Contains configurations for how to retrieve and return the knowledge base query.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
generationConfiguration
KnowledgeBaseRetrieveAndGenerateConfiguration.Builder generationConfiguration(GenerationConfiguration generationConfiguration) Contains configurations for response generation based on the knowledge base query results.
- Parameters:
generationConfiguration- Contains configurations for response generation based on the knowledge base query results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
generationConfiguration
default KnowledgeBaseRetrieveAndGenerateConfiguration.Builder generationConfiguration(Consumer<GenerationConfiguration.Builder> generationConfiguration) Contains configurations for response generation based on the knowledge base query results.
This is a convenience method that creates an instance of theGenerationConfiguration.Builderavoiding the need to create one manually viaGenerationConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togenerationConfiguration(GenerationConfiguration).- Parameters:
generationConfiguration- a consumer that will call methods onGenerationConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
knowledgeBaseId
The unique identifier of the knowledge base that is queried.
- Parameters:
knowledgeBaseId- The unique identifier of the knowledge base that is queried.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelArn
The ARN of the foundation model or inference profile used to generate a response.
- Parameters:
modelArn- The ARN of the foundation model or inference profile used to generate a response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
orchestrationConfiguration
KnowledgeBaseRetrieveAndGenerateConfiguration.Builder orchestrationConfiguration(OrchestrationConfiguration orchestrationConfiguration) Settings for how the model processes the prompt prior to retrieval and generation.
- Parameters:
orchestrationConfiguration- Settings for how the model processes the prompt prior to retrieval and generation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
orchestrationConfiguration
default KnowledgeBaseRetrieveAndGenerateConfiguration.Builder orchestrationConfiguration(Consumer<OrchestrationConfiguration.Builder> orchestrationConfiguration) Settings for how the model processes the prompt prior to retrieval and generation.
This is a convenience method that creates an instance of theOrchestrationConfiguration.Builderavoiding the need to create one manually viaOrchestrationConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toorchestrationConfiguration(OrchestrationConfiguration).- Parameters:
orchestrationConfiguration- a consumer that will call methods onOrchestrationConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
retrievalConfiguration
KnowledgeBaseRetrieveAndGenerateConfiguration.Builder retrievalConfiguration(KnowledgeBaseRetrievalConfiguration retrievalConfiguration) Contains configurations for how to retrieve and return the knowledge base query.
- Parameters:
retrievalConfiguration- Contains configurations for how to retrieve and return the knowledge base query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retrievalConfiguration
default KnowledgeBaseRetrieveAndGenerateConfiguration.Builder retrievalConfiguration(Consumer<KnowledgeBaseRetrievalConfiguration.Builder> retrievalConfiguration) Contains configurations for how to retrieve and return the knowledge base query.
This is a convenience method that creates an instance of theKnowledgeBaseRetrievalConfiguration.Builderavoiding the need to create one manually viaKnowledgeBaseRetrievalConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretrievalConfiguration(KnowledgeBaseRetrievalConfiguration).- Parameters:
retrievalConfiguration- a consumer that will call methods onKnowledgeBaseRetrievalConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-