synaptic_mongodb/lib.rs
1//! MongoDB Atlas Vector Search integration for Synaptic.
2//!
3//! This crate provides [`MongoVectorStore`], an implementation of the
4//! [`VectorStore`](synaptic_core::VectorStore) trait backed by
5//! [MongoDB Atlas Vector Search](https://www.mongodb.com/docs/atlas/atlas-vector-search/).
6//!
7//! # Example
8//!
9//! ```rust,no_run
10//! use synaptic_mongodb::{MongoVectorStore, MongoVectorConfig};
11//!
12//! # async fn example() -> Result<(), Box<dyn std::error::Error>> {
13//! let config = MongoVectorConfig::new("my_database", "my_collection");
14//! let store = MongoVectorStore::from_uri("mongodb+srv://...", config).await?;
15//! # Ok(())
16//! # }
17//! ```
18
19mod vector_store;
20
21pub use vector_store::{MongoVectorConfig, MongoVectorStore};
22
23// Re-export core traits for convenience.
24pub use synaptic_core::{Document, Embeddings, VectorStore};