ContextEnrichmentConfigurationProperty Struct
Context enrichment configuration is used to provide additional context to the RAG application.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const contextEnrichmentConfigurationProperty: bedrock.CfnDataSource.ContextEnrichmentConfigurationProperty = {
type: 'type',
// the properties below are optional
bedrockFoundationModelConfiguration: {
enrichmentStrategyConfiguration: {
method: 'method',
},
modelArn: 'modelArn',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrock as bedrock
context_enrichment_configuration_property = bedrock.CfnDataSource.ContextEnrichmentConfigurationProperty(
type="type",
# the properties below are optional
bedrock_foundation_model_configuration=bedrock.CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty(
enrichment_strategy_configuration=bedrock.CfnDataSource.EnrichmentStrategyConfigurationProperty(
method="method"
),
model_arn="modelArn"
)
)
java
// 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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;
var contextEnrichmentConfigurationProperty = new ContextEnrichmentConfigurationProperty {
Type = "type",
// the properties below are optional
BedrockFoundationModelConfiguration = new BedrockFoundationModelContextEnrichmentConfigurationProperty {
EnrichmentStrategyConfiguration = new EnrichmentStrategyConfigurationProperty {
Method = "method"
},
ModelArn = "modelArn"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
contextEnrichmentConfigurationProperty := &ContextEnrichmentConfigurationProperty{
Type: jsii.String("type"),
// the properties below are optional
BedrockFoundationModelConfiguration: &BedrockFoundationModelContextEnrichmentConfigurationProperty{
EnrichmentStrategyConfiguration: &EnrichmentStrategyConfigurationProperty{
Method: jsii.String("method"),
},
ModelArn: jsii.String("modelArn"),
},
}
Properties
bedrockFoundationModelConfigurationoptionalIResolvable | CfnDataSource.bedrock_foundation_model_configurationoptionaltyping.Union[IResolvable, BedrockFoundationModelContextEnrichmentConfigurationProperty]bedrockFoundationModelConfigurationoptionalIResolvableBedrockFoundationModelConfigurationoptionalIResolvableBedrockFoundationModelConfigurationoptionalinterface{} #The configuration of the Amazon Bedrock foundation model used for context enrichment.
The method used for context enrichment.
It must be Amazon Bedrock foundation models.