Skip to content
v2.278.0

PineconeConfigurationProperty Struct ​

Contains details about the storage configuration of the knowledge base in Pinecone.

For more information, see Create a vector index in Pinecone .

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 pineconeConfigurationProperty: bedrock.CfnKnowledgeBase.PineconeConfigurationProperty = {
  connectionString: 'connectionString',
  credentialsSecretArn: 'credentialsSecretArn',
  fieldMapping: {
    metadataField: 'metadataField',
    textField: 'textField',
  },

  // the properties below are optional
  namespace: 'namespace',
};
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

pinecone_configuration_property = bedrock.CfnKnowledgeBase.PineconeConfigurationProperty(
    connection_string="connectionString",
    credentials_secret_arn="credentialsSecretArn",
    field_mapping=bedrock.CfnKnowledgeBase.PineconeFieldMappingProperty(
        metadata_field="metadataField",
        text_field="textField"
    ),

    # the properties below are optional
    namespace="namespace"
)
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.*;

PineconeConfigurationProperty pineconeConfigurationProperty = PineconeConfigurationProperty.builder()
        .connectionString("connectionString")
        .credentialsSecretArn("credentialsSecretArn")
        .fieldMapping(PineconeFieldMappingProperty.builder()
                .metadataField("metadataField")
                .textField("textField")
                .build())

        // the properties below are optional
        .namespace("namespace")
        .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 pineconeConfigurationProperty = new PineconeConfigurationProperty {
    ConnectionString = "connectionString",
    CredentialsSecretArn = "credentialsSecretArn",
    FieldMapping = new PineconeFieldMappingProperty {
        MetadataField = "metadataField",
        TextField = "textField"
    },

    // the properties below are optional
    Namespace = "namespace"
};
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"

pineconeConfigurationProperty := &PineconeConfigurationProperty{
	ConnectionString: jsii.String("connectionString"),
	CredentialsSecretArn: jsii.String("credentialsSecretArn"),
	FieldMapping: &PineconeFieldMappingProperty{
		MetadataField: jsii.String("metadataField"),
		TextField: jsii.String("textField"),
	},

	// the properties below are optional
	Namespace: jsii.String("namespace"),
}

Properties ​

connectionStringstringconnection_stringstrconnectionStringStringConnectionStringstringConnectionString*string required #
The endpoint URL for your index management page.
credentialsSecretArnstringcredentials_secret_arnstrcredentialsSecretArnStringCredentialsSecretArnstringCredentialsSecretArn*string required #
The Amazon Resource Name (ARN) of the secret that you created in AWS Secrets Manager that is linked to your Pinecone API key.
fieldMappingIResolvable | CfnKnowledgeBase.PineconeFieldMappingPropertyfield_mappingtyping.Union[IResolvable, PineconeFieldMappingProperty]fieldMappingIResolvableFieldMappingIResolvableFieldMappinginterface{} required #
Contains the names of the fields to which to map information about the vector store.
namespaceoptionalstringnamespaceoptionalstrnamespaceoptionalStringNamespaceoptionalstringNamespaceoptional*string #
The namespace to be used to write new data to your database.