Skip to content
v2.278.0

BedrockEmbeddingModelConfigurationProperty Struct ​

The vector configuration details for the Bedrock embeddings model.

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 bedrockEmbeddingModelConfigurationProperty: bedrock.CfnKnowledgeBase.BedrockEmbeddingModelConfigurationProperty = {
  audio: [{
    segmentationConfiguration: {
      fixedLengthDuration: 123,
    },
  }],
  dimensions: 123,
  embeddingDataType: 'embeddingDataType',
  modelConfiguration: modelConfiguration,
  video: [{
    segmentationConfiguration: {
      fixedLengthDuration: 123,
    },
  }],
};
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

bedrock_embedding_model_configuration_property = 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
        )
    )]
)
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;

BedrockEmbeddingModelConfigurationProperty bedrockEmbeddingModelConfigurationProperty = 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();
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 bedrockEmbeddingModelConfigurationProperty = 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
        }
    } }
};
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{}

bedrockEmbeddingModelConfigurationProperty := &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),
			},
		},
	},
}

Properties ​

audiooptionalIResolvable | IResolvable | CfnKnowledgeBase.AudioConfigurationProperty[]audiooptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AudioConfigurationProperty]]]audiooptionalIResolvableAudiooptionalIResolvableAudiooptionalinterface{} #
Configuration settings for processing audio content in multimodal knowledge bases.
dimensionsoptionalnumberdimensionsoptionalint | floatdimensionsoptionalNumberDimensionsoptionaldoubleDimensionsoptional*float64 #
The dimensions details for the vector configuration used on the Bedrock embeddings model.
embeddingDataTypeoptionalstringembedding_data_typeoptionalstrembeddingDataTypeoptionalStringEmbeddingDataTypeoptionalstringEmbeddingDataTypeoptional*string #
The data type for the vectors when using a model to convert text into vector embeddings.
notes

The model must support the specified data type for vector embeddings. Floating-point (float32) is the default data type, and is supported by most models for vector embeddings. See Supported embeddings models for information on the available models and their vector data types.

modelConfigurationoptionalanymodel_configurationoptionalAnymodelConfigurationoptionalObjectModelConfigurationoptionalobjectModelConfigurationoptionalinterface{} #
Model-specific configuration for the embedding model.
videooptionalIResolvable | IResolvable | CfnKnowledgeBase.VideoConfigurationProperty[]videooptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, VideoConfigurationProperty]]]videooptionalIResolvableVideooptionalIResolvableVideooptionalinterface{} #
Configuration settings for processing video content in multimodal knowledge bases.