Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMongoDBAtlasVectorStore_Override ¶
func NewMongoDBAtlasVectorStore_Override(m MongoDBAtlasVectorStore, props *MongoDBAtlasVectorStoreProps)
Creates a new instance of the MongoDBAtlas class. Experimental.
Types ¶
type MongoDBAtlasVectorStore ¶
type MongoDBAtlasVectorStore interface {
// The name of the collection.
// Experimental.
CollectionName() *string
// The ARN of the secret containing MongoDB Atlas credentials.
// Experimental.
CredentialsSecretArn() *string
// The name of the database.
// Experimental.
DatabaseName() *string
// The endpoint URL for MongoDB Atlas.
// Experimental.
Endpoint() *string
// The name of the endpoint service.
// Experimental.
EndpointServiceName() *string
// The field mapping for MongoDB Atlas.
// Experimental.
FieldMapping() *MongoDbAtlasFieldMapping
// The name of the text index.
// Experimental.
TextIndexName() *string
// The name of the vector index.
// Experimental.
VectorIndexName() *string
}
Construct for MongoDB Atlas vector store. Experimental.
func NewMongoDBAtlasVectorStore ¶
func NewMongoDBAtlasVectorStore(props *MongoDBAtlasVectorStoreProps) MongoDBAtlasVectorStore
Creates a new instance of the MongoDBAtlas class. Experimental.
type MongoDBAtlasVectorStoreProps ¶
type MongoDBAtlasVectorStoreProps struct {
// The name of the collection.
// Experimental.
CollectionName *string `field:"required" json:"collectionName" yaml:"collectionName"`
// The ARN of the secret containing MongoDB Atlas credentials.
// Experimental.
CredentialsSecretArn *string `field:"required" json:"credentialsSecretArn" yaml:"credentialsSecretArn"`
// The name of the database.
// Experimental.
DatabaseName *string `field:"required" json:"databaseName" yaml:"databaseName"`
// The endpoint URL for MongoDB Atlas.
// Experimental.
Endpoint *string `field:"required" json:"endpoint" yaml:"endpoint"`
// The field mapping for MongoDB Atlas.
// Experimental.
FieldMapping *MongoDbAtlasFieldMapping `field:"required" json:"fieldMapping" yaml:"fieldMapping"`
// The name of the vector index.
// Experimental.
VectorIndexName *string `field:"required" json:"vectorIndexName" yaml:"vectorIndexName"`
// The name of the endpoint service.
// Experimental.
EndpointServiceName *string `field:"optional" json:"endpointServiceName" yaml:"endpointServiceName"`
// The name of the text index.
// Experimental.
TextIndexName *string `field:"optional" json:"textIndexName" yaml:"textIndexName"`
}
Interface for MongoDB Atlas vector store configuration. Experimental.
type MongoDbAtlasFieldMapping ¶
type MongoDbAtlasFieldMapping struct {
// The field name for the metadata field.
// Experimental.
MetadataField *string `field:"required" json:"metadataField" yaml:"metadataField"`
// The field name for the text field.
// Experimental.
TextField *string `field:"required" json:"textField" yaml:"textField"`
// The field name for the vector field.
// Experimental.
VectorField *string `field:"required" json:"vectorField" yaml:"vectorField"`
}
Interface for MongoDB Atlas field mapping. Experimental.
Click to show internal directories.
Click to hide internal directories.
TypeScript
Python
Java
.Net
Go