#44th of 34 in Vector databases
leann
Vector index that recomputes embeddings on demand instead of storing them
Run it:Vast.ai ↗ (opens in a new tab)RackNerd ↗ (opens in a new tab)RepoCloud ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts leann on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.leann is on your watch list. Its new releases and problems show there.
- Stars
- 13.8k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- Python
10,201 on 25 Mar 202613,845 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
LEANN is a Python vector database that uses graph-based selective recomputation with high-degree preserving pruning, so embeddings are computed at query time rather than stored. The README claims 60M chunks fit in 6GB versus 201GB. It ships RAG examples for documents, Apple Mail, browser history, WeChat, iMessage and ChatGPT/Claude exports, plus an MCP server for Claude Code.
Who it is for: Self-hosters wanting private semantic search over personal data on a laptop
Ranked among open-source alternatives to Pinecone (#4 of 10).
Strengths
- Claims 97% less storage than conventional vector DBs; 60M chunks in 6GB vs 201GB
- HNSW and DiskANN backends, selectable with --backend-name
- Works with Ollama, LM Studio, vLLM, llama.cpp or any OpenAI-compatible endpoint
- Ready-made ingestion for mail, chat history, browser history and PDFs, plus an MCP server
Weaknesses
- Embeddings are recomputed at query time, adding search latency and compute cost
- Prebuilt macOS wheels need macOS 15 or later; macOS 14 must pin 0.3.9 or build
- Building from source with DiskANN needs many native dependencies (MKL, Boost, protobuf, ZeroMQ)
- Coding-agent benchmark covers only 30 SWE-Bench Pro tasks, a small sample
What it needs
- GPU optional
- Docker
- Needs uv, Python 3.10-3.14, Ollama or OpenAI-compatible API (optional)
- Models: HuggingFace, Ollama, OpenAI-compatible APIs, Anthropic, sentence-transformers
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Known problems
Reported, then fixed by a linked change
- Linux cpu ZmqDistanceComputer crash (distance batch fetch failed) ↗ (opens in a new tab)4 reactions · closed 20 Jan 2026Fixed by Feature/linux omp 208 ↗ (opens in a new tab)
- leann-backend-hnsw 0.3.7: Python 3.14 wheels published for Windows only; macOS/Linux installs fail with a misleading error ↗ (opens in a new tab)0 reactions · closed 29 Jul 2026Fixed by fix(ci): add Python 3.14 build matrix rows for macOS/Linux ↗ (opens in a new tab)
- ReActAgent.run aborts the investigation on the first zero-result tool return at iteration >= 2 — single transient web failure or one narrow query produces an ungrounded answer ↗ (opens in a new tab)0 reactions · closed 26 Jun 2026Fixed by fix(react): do not abort ReAct loop on first zero-result tool return ↗ (opens in a new tab)
- leann watch hard-crashes on media/binary files, and over-scans when a root-level path is indexed ↗ (opens in a new tab)0 reactions · closed 21 Jun 2026Fixed by fix(watch): byte-hash sync with build extension filter (#345) ↗ (opens in a new tab)
- WinError 2 / File Not Found on MCP leann_mcp windows binary ↗ (opens in a new tab)0 reactions · closed 23 May 2026Fixed by fix(mcp): resolve WinError 2 when leann CLI is not on PATH ↗ (opens in a new tab)
Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.
Head to head
Also in Vector databases
See all 34| Rank | Project | Score |
|---|---|---|
| 2 | QdrantRust vector database with payload filtering, REST and gRPC | 87 out of 100 |
| 3 | MeilisearchRust search engine with typo tolerance, filtering and hybrid semantic search | 85 out of 100 |
| #5 | HelixDBGraph database with built-in vector and BM25 search, written in Rust | 83 out of 100 |
| #6 | faissC++ library for similarity search and clustering of dense vectors | 82 out of 100 |
| #7 | lancedbEmbedded vector database for multimodal data on the Lance format | 82 out of 100 |