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 details for response generation based on retrieved text chunks.generationConfiguration
(GenerationConfiguration generationConfiguration) Contains configurations details for response generation based on retrieved text chunks.knowledgeBaseId
(String knowledgeBaseId) The unique identifier of the knowledge base.The Amazon Resource Name (ARN) of the foundation model or inference profile used to generate responses.orchestrationConfiguration
(Consumer<OrchestrationConfiguration.Builder> orchestrationConfiguration) Contains configuration details for the model to process the prompt prior to retrieval and response generation.orchestrationConfiguration
(OrchestrationConfiguration orchestrationConfiguration) Contains configuration details for the model to process the prompt prior to retrieval and response generation.retrievalConfiguration
(Consumer<KnowledgeBaseRetrievalConfiguration.Builder> retrievalConfiguration) Contains configuration details for retrieving text chunks.retrievalConfiguration
(KnowledgeBaseRetrievalConfiguration retrievalConfiguration) Contains configuration details for retrieving text chunks.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
knowledgeBaseId
The unique identifier of the knowledge base.
- Parameters:
knowledgeBaseId
- The unique identifier of the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelArn
The Amazon Resource Name (ARN) of the foundation model or inference profile used to generate responses.
- Parameters:
modelArn
- The Amazon Resource Name (ARN) of the foundation model or inference profile used to generate responses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retrievalConfiguration
KnowledgeBaseRetrieveAndGenerateConfiguration.Builder retrievalConfiguration(KnowledgeBaseRetrievalConfiguration retrievalConfiguration) Contains configuration details for retrieving text chunks.
- Parameters:
retrievalConfiguration
- Contains configuration details for retrieving text chunks.- 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 configuration details for retrieving text chunks.
This is a convenience method that creates an instance of theKnowledgeBaseRetrievalConfiguration.Builder
avoiding the need to create one manually viaKnowledgeBaseRetrievalConfiguration.builder()
.When the
Consumer
completes,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:
-
generationConfiguration
KnowledgeBaseRetrieveAndGenerateConfiguration.Builder generationConfiguration(GenerationConfiguration generationConfiguration) Contains configurations details for response generation based on retrieved text chunks.
- Parameters:
generationConfiguration
- Contains configurations details for response generation based on retrieved text chunks.- 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 details for response generation based on retrieved text chunks.
This is a convenience method that creates an instance of theGenerationConfiguration.Builder
avoiding the need to create one manually viaGenerationConfiguration.builder()
.When the
Consumer
completes,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:
-
orchestrationConfiguration
KnowledgeBaseRetrieveAndGenerateConfiguration.Builder orchestrationConfiguration(OrchestrationConfiguration orchestrationConfiguration) Contains configuration details for the model to process the prompt prior to retrieval and response generation.
- Parameters:
orchestrationConfiguration
- Contains configuration details for the model to process the prompt prior to retrieval and response 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) Contains configuration details for the model to process the prompt prior to retrieval and response generation.
This is a convenience method that creates an instance of theOrchestrationConfiguration.Builder
avoiding the need to create one manually viaOrchestrationConfiguration.builder()
.When the
Consumer
completes,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:
-