AgentKnowledgeBaseStorageConfigurationMongoDbAtlasConfiguration constructor

const AgentKnowledgeBaseStorageConfigurationMongoDbAtlasConfiguration({
  1. required Input<String> collectionName,
  2. required Input<String> credentialsSecretArn,
  3. required Input<String> databaseName,
  4. required Input<String> endpoint,
  5. Input<String?>? endpointServiceName,
  6. required Input<AgentKnowledgeBaseStorageConfigurationMongoDbAtlasConfigurationFieldMapping> fieldMapping,
  7. Input<String?>? textIndexName,
  8. required Input<String> vectorIndexName,
})

Creates a new AgentKnowledgeBaseStorageConfigurationMongoDbAtlasConfiguration. collectionName The name of the collection in the MongoDB Atlas database. credentialsSecretArn The ARN of the secret that you created in AWS Secrets Manager that is linked to your MongoDB Atlas database. databaseName The name of the database in the MongoDB Atlas database. endpoint The endpoint URL of the MongoDB Atlas database. endpointServiceName The name of the service that hosts the MongoDB Atlas database. fieldMapping Contains the names of the fields to which to map information about the vector store. textIndexName The name of the vector index. vectorIndexName The name of the vector index.

Implementation

const AgentKnowledgeBaseStorageConfigurationMongoDbAtlasConfiguration({
  required this.collectionName,
  required this.credentialsSecretArn,
  required this.databaseName,
  required this.endpoint,
  this.endpointServiceName,
  required this.fieldMapping,
  this.textIndexName,
  required this.vectorIndexName,
});