Vector Databases
MongoDb
Parameter | Type | Default | Description |
---|---|---|---|
collection_name | str | Required | Name of the MongoDB collection to store vectors and metadata |
db_url | Optional[str] | "mongodb://localhost:27017/" | MongoDB connection string |
database | str | "ai" | Name of the MongoDB database |
embedder | Optional[Embedder] | OpenAIEmbedder() | Embedder instance to generate embeddings |
distance_metric | str | Distance.cosine | Distance metric to use for similarity search |
overwrite | bool | False | Whether to overwrite existing collection and index |
wait_until_index_ready | Optional[float] | None | Time in seconds to wait until the index is ready |
wait_after_insert | Optional[float] | None | Time in seconds to wait after inserting documents |