Interface KnowledgeBaseOrchestrationConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<KnowledgeBaseOrchestrationConfiguration.Builder,,KnowledgeBaseOrchestrationConfiguration> SdkBuilder<KnowledgeBaseOrchestrationConfiguration.Builder,,KnowledgeBaseOrchestrationConfiguration> SdkPojo
- Enclosing class:
KnowledgeBaseOrchestrationConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionadditionalModelRequestFields(Map<String, Document> additionalModelRequestFields) The additional model-specific request parameters as key-value pairs to be included in the request to the foundation model.inferenceConfig(Consumer<PromptInferenceConfiguration.Builder> inferenceConfig) Contains inference configurations for the prompt.inferenceConfig(PromptInferenceConfiguration inferenceConfig) Contains inference configurations for the prompt.performanceConfig(Consumer<PerformanceConfiguration.Builder> performanceConfig) The performance configuration options for the knowledge base retrieval and generation process.performanceConfig(PerformanceConfiguration performanceConfig) The performance configuration options for the knowledge base retrieval and generation process.promptTemplate(Consumer<KnowledgeBasePromptTemplate.Builder> promptTemplate) A custom prompt template for orchestrating the retrieval and generation process.promptTemplate(KnowledgeBasePromptTemplate promptTemplate) A custom prompt template for orchestrating the retrieval and generation process.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, sdkFieldNameToField, sdkFields
-
Method Details
-
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:
-
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:
-
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:
-