Interface CfnDataSource.ContextEnrichmentConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDataSource.ContextEnrichmentConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnDataSource
@Stability(Stable)
public static interface CfnDataSource.ContextEnrichmentConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Context enrichment configuration is used to provide additional context to the RAG application.
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.*;
ContextEnrichmentConfigurationProperty contextEnrichmentConfigurationProperty = ContextEnrichmentConfigurationProperty.builder()
.type("type")
// the properties below are optional
.bedrockFoundationModelConfiguration(BedrockFoundationModelContextEnrichmentConfigurationProperty.builder()
.enrichmentStrategyConfiguration(EnrichmentStrategyConfigurationProperty.builder()
.method("method")
.build())
.modelArn("modelArn")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDataSource.ContextEnrichmentConfigurationPropertystatic final classAn implementation forCfnDataSource.ContextEnrichmentConfigurationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
The method used for context enrichment.It must be Amazon Bedrock foundation models.
- See Also:
-
getBedrockFoundationModelConfiguration
The configuration of the Amazon Bedrock foundation model used for context enrichment.Returns union: either
IResolvableorCfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty- See Also:
-
builder
-