Interface CfnFlow.KnowledgeBaseOrchestrationConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFlow.KnowledgeBaseOrchestrationConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnFlow
@Stability(Stable)
public static interface CfnFlow.KnowledgeBaseOrchestrationConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Configures how the knowledge base orchestrates the retrieval and generation process, allowing for customization of prompts, inference parameters, and performance settings.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;
Object additionalModelRequestFields;
KnowledgeBaseOrchestrationConfigurationProperty knowledgeBaseOrchestrationConfigurationProperty = KnowledgeBaseOrchestrationConfigurationProperty.builder()
.additionalModelRequestFields(additionalModelRequestFields)
.inferenceConfig(PromptInferenceConfigurationProperty.builder()
.text(PromptModelInferenceConfigurationProperty.builder()
.maxTokens(123)
.stopSequences(List.of("stopSequences"))
.temperature(123)
.topP(123)
.build())
.build())
.performanceConfig(PerformanceConfigurationProperty.builder()
.latency("latency")
.build())
.promptTemplate(KnowledgeBasePromptTemplateProperty.builder()
.textPromptTemplate("textPromptTemplate")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFlow.KnowledgeBaseOrchestrationConfigurationPropertystatic final classAn implementation forCfnFlow.KnowledgeBaseOrchestrationConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe additional model-specific request parameters as key-value pairs to be included in the request to the foundation model.default ObjectContains inference configurations for the prompt.default ObjectThe performance configuration options for the knowledge base retrieval and generation process.default ObjectA custom prompt template for orchestrating the retrieval and generation process.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAdditionalModelRequestFields
The additional model-specific request parameters as key-value pairs to be included in the request to the foundation model.- See Also:
-
getInferenceConfig
Contains inference configurations for the prompt.Returns union: either
IResolvableorCfnFlow.PromptInferenceConfigurationProperty- See Also:
-
getPerformanceConfig
The performance configuration options for the knowledge base retrieval and generation process.Returns union: either
IResolvableorCfnFlow.PerformanceConfigurationProperty- See Also:
-
getPromptTemplate
A custom prompt template for orchestrating the retrieval and generation process.Returns union: either
IResolvableorCfnFlow.KnowledgeBasePromptTemplateProperty- See Also:
-
builder
-