Skip to main content
Voyage AI embeddings + MongoDB Atlas Vector Search

Build production RAG pipelines from the command line.

The fastest path from documents to semantic search. vai chunks, embeds, stores, retrieves, and reranks your documents in one CLI or MCP server, backed by Voyage AI embeddings and MongoDB Atlas Vector Search.

CLIMCP ServerAgentic Workflows
npm install -g voyageai-cli
vai pipeline
1Chunk & embed documents with Voyage AI
2Store vectors in MongoDB Atlas
3Retrieve with vector search + reranking
4Chat, evaluate, or automate with agents
33CLI commands
22MCP tools
30Educational topics

From zero to semantic search in 5 minutes

$ vai init
Created .vai.json with defaults

$ vai pipeline ./docs --query "how does auth work?"
Chunking 12 files... 47 chunks
Embedding with voyage-3-large... done [1.2s]
Storing in MongoDB Atlas... 47 documents
Searching... 10 candidates
Reranking with rerank-2.5... done [0.3s]

Top results:
[1] docs/auth/overview.md (0.97)
[2] docs/auth/jwt-tokens.md (0.94)
[3] docs/api/middleware.md (0.89)

Everything you need for RAG

Voyage AI Embeddings

State-of-the-art embedding models including voyage-3-large, domain-specific models for code, finance, law, and multilingual content.

MongoDB Atlas Vector Search

Store embeddings and run vector searches directly against your Atlas cluster. Automatic index management included.

Two-Stage Retrieval

Combine fast vector search with Voyage AI reranking for dramatically better result quality.

Chat with Your Docs

RAG-powered chat using Anthropic, OpenAI, or local Ollama models. Conversation history and agent mode included.

Evaluation and Benchmarks

Test retrieval quality with custom test sets, compare configurations, and benchmark embedding performance.

30 Educational Topics

Built-in explanations of embeddings, vector search, RAG, MoE architecture, quantization, and more.

vai is a community project by Michael Lynn. It is not an official MongoDB or Voyage AI product. Use of Voyage AI APIs and MongoDB Atlas requires accounts with those services.