ManagedKnowledgeBaseConfigurationProperty Struct
Contains details about the model used to create vector embeddings for a managed knowledge base.
| 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';
declare const modelConfiguration: any;
const managedKnowledgeBaseConfigurationProperty: bedrock.CfnKnowledgeBase.ManagedKnowledgeBaseConfigurationProperty = {
embeddingModelArn: 'embeddingModelArn',
embeddingModelConfiguration: {
bedrockEmbeddingModelConfiguration: {
audio: [{
segmentationConfiguration: {
fixedLengthDuration: 123,
},
}],
dimensions: 123,
embeddingDataType: 'embeddingDataType',
modelConfiguration: modelConfiguration,
video: [{
segmentationConfiguration: {
fixedLengthDuration: 123,
},
}],
},
},
embeddingModelType: 'embeddingModelType',
serverSideEncryptionConfiguration: {
kmsKeyArn: 'kmsKeyArn',
},
supplementalDataStorageConfiguration: {
supplementalDataStorageLocations: [{
supplementalDataStorageLocationType: 'supplementalDataStorageLocationType',
// the properties below are optional
s3Location: {
uri: 'uri',
},
}],
},
};
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
# model_configuration: Any
managed_knowledge_base_configuration_property = bedrock.CfnKnowledgeBase.ManagedKnowledgeBaseConfigurationProperty(
embedding_model_arn="embeddingModelArn",
embedding_model_configuration=bedrock.CfnKnowledgeBase.EmbeddingModelConfigurationProperty(
bedrock_embedding_model_configuration=bedrock.CfnKnowledgeBase.BedrockEmbeddingModelConfigurationProperty(
audio=[bedrock.CfnKnowledgeBase.AudioConfigurationProperty(
segmentation_configuration=bedrock.CfnKnowledgeBase.AudioSegmentationConfigurationProperty(
fixed_length_duration=123
)
)],
dimensions=123,
embedding_data_type="embeddingDataType",
model_configuration=model_configuration,
video=[bedrock.CfnKnowledgeBase.VideoConfigurationProperty(
segmentation_configuration=bedrock.CfnKnowledgeBase.VideoSegmentationConfigurationProperty(
fixed_length_duration=123
)
)]
)
),
embedding_model_type="embeddingModelType",
server_side_encryption_configuration=bedrock.CfnKnowledgeBase.ManagedKnowledgeBaseServerSideEncryptionConfigurationProperty(
kms_key_arn="kmsKeyArn"
),
supplemental_data_storage_configuration=bedrock.CfnKnowledgeBase.SupplementalDataStorageConfigurationProperty(
supplemental_data_storage_locations=[bedrock.CfnKnowledgeBase.SupplementalDataStorageLocationProperty(
supplemental_data_storage_location_type="supplementalDataStorageLocationType",
# the properties below are optional
s3_location=bedrock.CfnKnowledgeBase.S3LocationProperty(
uri="uri"
)
)]
)
)
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.*;
Object modelConfiguration;
ManagedKnowledgeBaseConfigurationProperty managedKnowledgeBaseConfigurationProperty = ManagedKnowledgeBaseConfigurationProperty.builder()
.embeddingModelArn("embeddingModelArn")
.embeddingModelConfiguration(EmbeddingModelConfigurationProperty.builder()
.bedrockEmbeddingModelConfiguration(BedrockEmbeddingModelConfigurationProperty.builder()
.audio(List.of(AudioConfigurationProperty.builder()
.segmentationConfiguration(AudioSegmentationConfigurationProperty.builder()
.fixedLengthDuration(123)
.build())
.build()))
.dimensions(123)
.embeddingDataType("embeddingDataType")
.modelConfiguration(modelConfiguration)
.video(List.of(VideoConfigurationProperty.builder()
.segmentationConfiguration(VideoSegmentationConfigurationProperty.builder()
.fixedLengthDuration(123)
.build())
.build()))
.build())
.build())
.embeddingModelType("embeddingModelType")
.serverSideEncryptionConfiguration(ManagedKnowledgeBaseServerSideEncryptionConfigurationProperty.builder()
.kmsKeyArn("kmsKeyArn")
.build())
.supplementalDataStorageConfiguration(SupplementalDataStorageConfigurationProperty.builder()
.supplementalDataStorageLocations(List.of(SupplementalDataStorageLocationProperty.builder()
.supplementalDataStorageLocationType("supplementalDataStorageLocationType")
// the properties below are optional
.s3Location(S3LocationProperty.builder()
.uri("uri")
.build())
.build()))
.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 modelConfiguration;
var managedKnowledgeBaseConfigurationProperty = new ManagedKnowledgeBaseConfigurationProperty {
EmbeddingModelArn = "embeddingModelArn",
EmbeddingModelConfiguration = new EmbeddingModelConfigurationProperty {
BedrockEmbeddingModelConfiguration = new BedrockEmbeddingModelConfigurationProperty {
Audio = new [] { new AudioConfigurationProperty {
SegmentationConfiguration = new AudioSegmentationConfigurationProperty {
FixedLengthDuration = 123
}
} },
Dimensions = 123,
EmbeddingDataType = "embeddingDataType",
ModelConfiguration = modelConfiguration,
Video = new [] { new VideoConfigurationProperty {
SegmentationConfiguration = new VideoSegmentationConfigurationProperty {
FixedLengthDuration = 123
}
} }
}
},
EmbeddingModelType = "embeddingModelType",
ServerSideEncryptionConfiguration = new ManagedKnowledgeBaseServerSideEncryptionConfigurationProperty {
KmsKeyArn = "kmsKeyArn"
},
SupplementalDataStorageConfiguration = new SupplementalDataStorageConfigurationProperty {
SupplementalDataStorageLocations = new [] { new SupplementalDataStorageLocationProperty {
SupplementalDataStorageLocationType = "supplementalDataStorageLocationType",
// the properties below are optional
S3Location = new S3LocationProperty {
Uri = "uri"
}
} }
}
};
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"
var modelConfiguration interface{}
managedKnowledgeBaseConfigurationProperty := &ManagedKnowledgeBaseConfigurationProperty{
EmbeddingModelArn: jsii.String("embeddingModelArn"),
EmbeddingModelConfiguration: &EmbeddingModelConfigurationProperty{
BedrockEmbeddingModelConfiguration: &BedrockEmbeddingModelConfigurationProperty{
Audio: []interface{}{
&AudioConfigurationProperty{
SegmentationConfiguration: &AudioSegmentationConfigurationProperty{
FixedLengthDuration: jsii.Number(123),
},
},
},
Dimensions: jsii.Number(123),
EmbeddingDataType: jsii.String("embeddingDataType"),
ModelConfiguration: modelConfiguration,
Video: []interface{}{
&VideoConfigurationProperty{
SegmentationConfiguration: &VideoSegmentationConfigurationProperty{
FixedLengthDuration: jsii.Number(123),
},
},
},
},
},
EmbeddingModelType: jsii.String("embeddingModelType"),
ServerSideEncryptionConfiguration: &ManagedKnowledgeBaseServerSideEncryptionConfigurationProperty{
KmsKeyArn: jsii.String("kmsKeyArn"),
},
SupplementalDataStorageConfiguration: &SupplementalDataStorageConfigurationProperty{
SupplementalDataStorageLocations: []interface{}{
&SupplementalDataStorageLocationProperty{
SupplementalDataStorageLocationType: jsii.String("supplementalDataStorageLocationType"),
// the properties below are optional
S3Location: &S3LocationProperty{
Uri: jsii.String("uri"),
},
},
},
},
}
Properties
embeddingModelArnoptionalstringembedding_model_arnoptionalstrembeddingModelArnoptionalStringEmbeddingModelArnoptionalstringEmbeddingModelArnoptional*string #The ARN of the model used to create vector embeddings for the knowledge base.
embeddingModelConfigurationoptionalIResolvable | CfnKnowledgeBase.embedding_model_configurationoptionaltyping.Union[IResolvable, EmbeddingModelConfigurationProperty]embeddingModelConfigurationoptionalIResolvableEmbeddingModelConfigurationoptionalIResolvableEmbeddingModelConfigurationoptionalinterface{} #The embeddings model configuration details for the vector model used in Knowledge Base.
embeddingModelTypeoptionalstringembedding_model_typeoptionalstrembeddingModelTypeoptionalStringEmbeddingModelTypeoptionalstringEmbeddingModelTypeoptional*string #The type of embedding model to use for the managed knowledge base.
serverSideEncryptionConfigurationoptionalIResolvable | CfnKnowledgeBase.server_side_encryption_configurationoptionaltyping.Union[IResolvable, ManagedKnowledgeBaseServerSideEncryptionConfigurationProperty]serverSideEncryptionConfigurationoptionalIResolvableServerSideEncryptionConfigurationoptionalIResolvableServerSideEncryptionConfigurationoptionalinterface{} #Contains details about the server-side encryption for the managed knowledge base.
supplementalDataStorageConfigurationoptionalIResolvable | CfnKnowledgeBase.supplemental_data_storage_configurationoptionaltyping.Union[IResolvable, SupplementalDataStorageConfigurationProperty]supplementalDataStorageConfigurationoptionalIResolvableSupplementalDataStorageConfigurationoptionalIResolvableSupplementalDataStorageConfigurationoptionalinterface{} #Configurations for supplemental data storage.