interface MongoDbAtlasConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.Bedrock.CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsbedrock#CfnKnowledgeBasePropsMixin_MongoDbAtlasConfigurationProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty |
Python | aws_cdk.cfn_property_mixins.aws_bedrock.CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_bedrock » CfnKnowledgeBasePropsMixin » MongoDbAtlasConfigurationProperty |
Contains details about the storage configuration of the knowledge base in MongoDB Atlas.
Example
// 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/cfn-property-mixins';
const mongoDbAtlasConfigurationProperty: bedrock.CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty = {
collectionName: 'collectionName',
credentialsSecretArn: 'credentialsSecretArn',
databaseName: 'databaseName',
endpoint: 'endpoint',
endpointServiceName: 'endpointServiceName',
fieldMapping: {
metadataField: 'metadataField',
textField: 'textField',
vectorField: 'vectorField',
},
textIndexName: 'textIndexName',
vectorIndexName: 'vectorIndexName',
};
Properties
| Name | Type | Description |
|---|---|---|
| collection | string | The collection name of the knowledge base in MongoDB Atlas. |
| credentials | string | The Amazon Resource Name (ARN) of the secret that you created in AWS Secrets Manager that contains user credentials for your MongoDB Atlas cluster. |
| database | string | The database name in your MongoDB Atlas cluster for your knowledge base. |
| endpoint? | string | The endpoint URL of your MongoDB Atlas cluster for your knowledge base. |
| endpoint | string | The name of the VPC endpoint service in your account that is connected to your MongoDB Atlas cluster. |
| field | IResolvable | Mongo | Contains the names of the fields to which to map information about the vector store. |
| text | string | The name of the text search index in the MongoDB collection. |
| vector | string | The name of the MongoDB Atlas vector search index. |
collectionName?
Type:
string
(optional)
The collection name of the knowledge base in MongoDB Atlas.
credentialsSecretArn?
Type:
string
(optional)
The Amazon Resource Name (ARN) of the secret that you created in AWS Secrets Manager that contains user credentials for your MongoDB Atlas cluster.
databaseName?
Type:
string
(optional)
The database name in your MongoDB Atlas cluster for your knowledge base.
endpoint?
Type:
string
(optional)
The endpoint URL of your MongoDB Atlas cluster for your knowledge base.
endpointServiceName?
Type:
string
(optional)
The name of the VPC endpoint service in your account that is connected to your MongoDB Atlas cluster.
fieldMapping?
Type:
IResolvable | Mongo
(optional)
Contains the names of the fields to which to map information about the vector store.
textIndexName?
Type:
string
(optional)
The name of the text search index in the MongoDB collection.
This is required for using the hybrid search feature.
vectorIndexName?
Type:
string
(optional)
The name of the MongoDB Atlas vector search index.

.NET
Go
Java
Python
TypeScript