Skip to content
v2.278.0

VectorKnowledgeBaseConfigurationProperty Struct ​

Contains details about the model used to create vector embeddings for the knowledge base.

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 vectorKnowledgeBaseConfigurationProperty: bedrock.CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty = {
  embeddingModelArn: 'embeddingModelArn',

  // the properties below are optional
  embeddingModelConfiguration: {
    bedrockEmbeddingModelConfiguration: {
      audio: [{
        segmentationConfiguration: {
          fixedLengthDuration: 123,
        },
      }],
      dimensions: 123,
      embeddingDataType: 'embeddingDataType',
      modelConfiguration: modelConfiguration,
      video: [{
        segmentationConfiguration: {
          fixedLengthDuration: 123,
        },
      }],
    },
  },
  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

vector_knowledge_base_configuration_property = bedrock.CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty(
    embedding_model_arn="embeddingModelArn",

    # the properties below are optional
    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
                )
            )]
        )
    ),
    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;

VectorKnowledgeBaseConfigurationProperty vectorKnowledgeBaseConfigurationProperty = VectorKnowledgeBaseConfigurationProperty.builder()
        .embeddingModelArn("embeddingModelArn")

        // the properties below are optional
        .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())
        .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 vectorKnowledgeBaseConfigurationProperty = new VectorKnowledgeBaseConfigurationProperty {
    EmbeddingModelArn = "embeddingModelArn",

    // the properties below are optional
    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
                }
            } }
        }
    },
    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{}

vectorKnowledgeBaseConfigurationProperty := &VectorKnowledgeBaseConfigurationProperty{
	EmbeddingModelArn: jsii.String("embeddingModelArn"),

	// the properties below are optional
	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),
					},
				},
			},
		},
	},
	SupplementalDataStorageConfiguration: &SupplementalDataStorageConfigurationProperty{
		SupplementalDataStorageLocations: []interface{}{
			&SupplementalDataStorageLocationProperty{
				SupplementalDataStorageLocationType: jsii.String("supplementalDataStorageLocationType"),

				// the properties below are optional
				S3Location: &S3LocationProperty{
					Uri: jsii.String("uri"),
				},
			},
		},
	},
}

Properties ​

embeddingModelArnstringembedding_model_arnstrembeddingModelArnStringEmbeddingModelArnstringEmbeddingModelArn*string required #
The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.
embeddingModelConfigurationoptionalIResolvable | CfnKnowledgeBase.EmbeddingModelConfigurationPropertyembedding_model_configurationoptionaltyping.Union[IResolvable, EmbeddingModelConfigurationProperty]embeddingModelConfigurationoptionalIResolvableEmbeddingModelConfigurationoptionalIResolvableEmbeddingModelConfigurationoptionalinterface{} #
The embeddings model configuration details for the vector model used in Knowledge Base.
supplementalDataStorageConfigurationoptionalIResolvable | CfnKnowledgeBase.SupplementalDataStorageConfigurationPropertysupplemental_data_storage_configurationoptionaltyping.Union[IResolvable, SupplementalDataStorageConfigurationProperty]supplementalDataStorageConfigurationoptionalIResolvableSupplementalDataStorageConfigurationoptionalIResolvableSupplementalDataStorageConfigurationoptionalinterface{} #
If you include multimodal data from your data source, use this object to specify configurations for the storage location of the images extracted from your documents.

These images can be retrieved and returned to the end user. They can also be used in generation when using RetrieveAndGenerate .