Interface CfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnFlowVersion
@Stability(Stable)
public static interface CfnFlowVersion.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 classstatic final classAn implementation forCfnFlowVersion.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
IResolvableorCfnFlowVersion.PromptInferenceConfigurationProperty- See Also:
-
getPerformanceConfig
The performance configuration options for the knowledge base retrieval and generation process.Returns union: either
IResolvableorCfnFlowVersion.PerformanceConfigurationProperty- See Also:
-
getPromptTemplate
A custom prompt template for orchestrating the retrieval and generation process.Returns union: either
IResolvableorCfnFlowVersion.KnowledgeBasePromptTemplateProperty- See Also:
-
builder
@Stability(Stable) static CfnFlowVersion.KnowledgeBaseOrchestrationConfigurationProperty.Builder builder()
-