Typical AI stack
- App database for documents and metadata
- Separate vector database for embeddings
- Extra data sync and failure modes between systems
- More moving parts, more cost, more things to break
Easy start for AI teams
Documents, vectors, and search in one Mongo API-compatible system.
Run locally with Docker, use familiar Mongo drivers and tools, and keep documents plus embeddings together — no extra sync layer needed.
Spin up DocumentDB with Docker, then follow the four-step quick start below to connect with mongosh, create a vector index, and run your first vector search.
API
Mongo API-compatible
Use familiar Mongo drivers and tools.
Indexing
HNSW + IVFFlat
Choose the right vector algorithm for recall, scale, and cost.
Retrieval
Vector search
Filter by metadata and return similarity scores.
Why teams choose it
Compare a typical AI setup against what DocumentDB consolidates into one system.
Easy start
Copy, paste, and run. Each step works with mongosh, pymongo, or any standard Mongo client.
Docker
One command to start DocumentDB on port 10260 with local credentials.
Shell
Connect with mongosh, pymongo, the Node.js driver, or another standard Mongo client.
Index
Create a native HNSW vector index with cosine similarity for embedding retrieval.
Vector search
Retrieve semantically similar results with vector search and optional metadata filters.
Use cases
Vector retrieval, document storage, and query power in one system — ready for the patterns teams are actually shipping.
Store chunks, metadata, and embeddings together so retrieval stays close to the source document.
Search products, knowledge bases, or support histories by meaning instead of exact keyword match.
Store conversation state as BSON documents and retrieve past context with vector similarity.
Find the best vector matches, then traverse related entities with `$graphLookup` in one query pipeline.
Open community
MIT-licensed, publicly governed, with TSC members from five organizations.
3.2k+
GitHub stars
200+
Forks
11
TSC members
across 5 organizations





Go from zero to vector search in four commands. Open source, self-hosted, MIT-licensed.