Interface KnowledgeBaseOrchestrationConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<KnowledgeBaseOrchestrationConfiguration.Builder,KnowledgeBaseOrchestrationConfiguration>,SdkBuilder<KnowledgeBaseOrchestrationConfiguration.Builder,KnowledgeBaseOrchestrationConfiguration>,SdkPojo
- Enclosing class:
- KnowledgeBaseOrchestrationConfiguration
@Mutable @NotThreadSafe public static interface KnowledgeBaseOrchestrationConfiguration.Builder extends SdkPojo, CopyableBuilder<KnowledgeBaseOrchestrationConfiguration.Builder,KnowledgeBaseOrchestrationConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description KnowledgeBaseOrchestrationConfiguration.BuilderadditionalModelRequestFields(Map<String,Document> additionalModelRequestFields)The additional model-specific request parameters as key-value pairs to be included in the request to the foundation model.default KnowledgeBaseOrchestrationConfiguration.BuilderinferenceConfig(Consumer<PromptInferenceConfiguration.Builder> inferenceConfig)Contains inference configurations for the prompt.KnowledgeBaseOrchestrationConfiguration.BuilderinferenceConfig(PromptInferenceConfiguration inferenceConfig)Contains inference configurations for the prompt.default KnowledgeBaseOrchestrationConfiguration.BuilderperformanceConfig(Consumer<PerformanceConfiguration.Builder> performanceConfig)The performance configuration options for the knowledge base retrieval and generation process.KnowledgeBaseOrchestrationConfiguration.BuilderperformanceConfig(PerformanceConfiguration performanceConfig)The performance configuration options for the knowledge base retrieval and generation process.default KnowledgeBaseOrchestrationConfiguration.BuilderpromptTemplate(Consumer<KnowledgeBasePromptTemplate.Builder> promptTemplate)A custom prompt template for orchestrating the retrieval and generation process.KnowledgeBaseOrchestrationConfiguration.BuilderpromptTemplate(KnowledgeBasePromptTemplate promptTemplate)A custom prompt template for orchestrating the retrieval and generation process.-
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 Detail
-
promptTemplate
KnowledgeBaseOrchestrationConfiguration.Builder promptTemplate(KnowledgeBasePromptTemplate promptTemplate)
A custom prompt template for orchestrating the retrieval and generation process.
- Parameters:
promptTemplate- A custom prompt template for orchestrating the retrieval and generation process.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptTemplate
default KnowledgeBaseOrchestrationConfiguration.Builder promptTemplate(Consumer<KnowledgeBasePromptTemplate.Builder> promptTemplate)
A custom prompt template for orchestrating the retrieval and generation process.
This is a convenience method that creates an instance of theKnowledgeBasePromptTemplate.Builderavoiding the need to create one manually viaKnowledgeBasePromptTemplate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topromptTemplate(KnowledgeBasePromptTemplate).- Parameters:
promptTemplate- a consumer that will call methods onKnowledgeBasePromptTemplate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
promptTemplate(KnowledgeBasePromptTemplate)
-
inferenceConfig
KnowledgeBaseOrchestrationConfiguration.Builder inferenceConfig(PromptInferenceConfiguration inferenceConfig)
Contains inference configurations for the prompt.
- Parameters:
inferenceConfig- Contains inference configurations for the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceConfig
default KnowledgeBaseOrchestrationConfiguration.Builder inferenceConfig(Consumer<PromptInferenceConfiguration.Builder> inferenceConfig)
Contains inference configurations for the prompt.
This is a convenience method that creates an instance of thePromptInferenceConfiguration.Builderavoiding the need to create one manually viaPromptInferenceConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinferenceConfig(PromptInferenceConfiguration).- Parameters:
inferenceConfig- a consumer that will call methods onPromptInferenceConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
inferenceConfig(PromptInferenceConfiguration)
-
additionalModelRequestFields
KnowledgeBaseOrchestrationConfiguration.Builder additionalModelRequestFields(Map<String,Document> additionalModelRequestFields)
The additional model-specific request parameters as key-value pairs to be included in the request to the foundation model.
- Parameters:
additionalModelRequestFields- The additional model-specific request parameters as key-value pairs to be included in the request to the foundation model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
performanceConfig
KnowledgeBaseOrchestrationConfiguration.Builder performanceConfig(PerformanceConfiguration performanceConfig)
The performance configuration options for the knowledge base retrieval and generation process.
- Parameters:
performanceConfig- The performance configuration options for the knowledge base retrieval and generation process.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
performanceConfig
default KnowledgeBaseOrchestrationConfiguration.Builder performanceConfig(Consumer<PerformanceConfiguration.Builder> performanceConfig)
The performance configuration options for the knowledge base retrieval and generation process.
This is a convenience method that creates an instance of thePerformanceConfiguration.Builderavoiding the need to create one manually viaPerformanceConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toperformanceConfig(PerformanceConfiguration).- Parameters:
performanceConfig- a consumer that will call methods onPerformanceConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
performanceConfig(PerformanceConfiguration)
-
-