ParameterTypeDefaultDescription
collection_namestrRequiredName of the MongoDB collection to store vectors and metadata
db_urlOptional[str]"mongodb://localhost:27017/"MongoDB connection string
databasestr"ai"Name of the MongoDB database
embedderOptional[Embedder]OpenAIEmbedder()Embedder instance to generate embeddings
distance_metricstrDistance.cosineDistance metric to use for similarity search
overwriteboolFalseWhether to overwrite existing collection and index
cosmos_compatibilityboolFalseWhether to enable support for azure cosmos db mongodb vcore
wait_until_index_ready_in_secondsOptional[float]NoneTime in seconds to wait until the index is ready
wait_after_insert_in_secondsOptional[float]NoneTime in seconds to wait after inserting documents
ParameterTypeDefaultDescription
collection_namestrRequiredName of the MongoDB collection to store vectors and metadata
db_urlOptional[str]"mongodb://localhost:27017/"MongoDB connection string
databasestr"ai"Name of the MongoDB database
embedderOptional[Embedder]OpenAIEmbedder()Embedder instance to generate embeddings
distance_metricstrDistance.cosineDistance metric to use for similarity search
overwriteboolFalseWhether to overwrite existing collection and index
cosmos_compatibilityboolFalseWhether to enable support for azure cosmos db mongodb vcore
wait_until_index_ready_in_secondsOptional[float]NoneTime in seconds to wait until the index is ready
wait_after_insert_in_secondsOptional[float]NoneTime in seconds to wait after inserting documents