Skip to content
v2.278.0

OpenSearchManagedClusterFieldMappingProperty Struct ​

Contains the names of the fields to which to map information about the vector store.

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 openSearchManagedClusterFieldMappingProperty: bedrock.CfnKnowledgeBase.OpenSearchManagedClusterFieldMappingProperty = {
  metadataField: 'metadataField',
  textField: 'textField',
  vectorField: 'vectorField',
};
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

open_search_managed_cluster_field_mapping_property = bedrock.CfnKnowledgeBase.OpenSearchManagedClusterFieldMappingProperty(
    metadata_field="metadataField",
    text_field="textField",
    vector_field="vectorField"
)
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.*;

OpenSearchManagedClusterFieldMappingProperty openSearchManagedClusterFieldMappingProperty = OpenSearchManagedClusterFieldMappingProperty.builder()
        .metadataField("metadataField")
        .textField("textField")
        .vectorField("vectorField")
        .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 openSearchManagedClusterFieldMappingProperty = new OpenSearchManagedClusterFieldMappingProperty {
    MetadataField = "metadataField",
    TextField = "textField",
    VectorField = "vectorField"
};
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"

openSearchManagedClusterFieldMappingProperty := &OpenSearchManagedClusterFieldMappingProperty{
	MetadataField: jsii.String("metadataField"),
	TextField: jsii.String("textField"),
	VectorField: jsii.String("vectorField"),
}

Properties ​

metadataFieldstringmetadata_fieldstrmetadataFieldStringMetadataFieldstringMetadataField*string required #
The name of the field in which Amazon Bedrock stores metadata about the vector store.
textFieldstringtext_fieldstrtextFieldStringTextFieldstringTextField*string required #
The name of the field in which Amazon Bedrock stores the raw text from your data.

The text is split according to the chunking strategy you choose.

vectorFieldstringvector_fieldstrvectorFieldStringVectorFieldstringVectorField*string required #
The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.