#1010th of 12 in Vector databases

leann

Vector index that recomputes embeddings on demand to cut storage

Stars
13k
License
MIT
Last commit
Oct 2026
Last release
Sep 2026
Language
Python

Missed the latest GitHub check; these facts may be older.

Overview

LEANN is a Python vector database that stores a pruned graph and recomputes embeddings at query time instead of storing them. The README claims 97% less storage, for example 60M chunks in 6GB versus 201GB. It ships HNSW and DiskANN backends, a CLI, RAG examples for files, mail and chat history, and an MCP server for Claude Code.

Who it is for: Developers wanting a low-storage local vector index for personal data RAG

Strengths

  • Graph-based selective recomputation avoids storing embeddings; README claims 97% less storage
  • HNSW and DiskANN backends, selectable with --backend-name
  • Works with Ollama, LM Studio, vLLM, llama.cpp and any OpenAI-compatible endpoint
  • Includes ready RAG loaders for PDFs, Apple Mail, WeChat, iMessage, ChatGPT and Claude history

Weaknesses

  • Recomputing embeddings at query time adds latency compared with stored vectors
  • DiskANN needs a native toolchain (Boost, protobuf, MKL) when built from source
  • GPU acceleration is only a survey item for a future version
  • Linux uv hardlink installs can fail with a nltk pathsec error without a workaround

What it needs

  • GPU optional
  • Needs uv, Ollama or OpenAI-compatible API (optional, for generation)
  • Models: HuggingFace, Ollama, OpenAI-compatible APIs, Anthropic, sentence-transformers

Also in Vector databases

See all 12
Also in Vector databases
RankProjectScore
1MilvusDistributed vector database with dense, sparse and hybrid search at scale Live demo ↗ (opens in a new tab)46.4k starsApache-2.082 out of 100
2MeilisearchRust search engine API with full-text, vector and hybrid search Live demo ↗ (opens in a new tab)59.6k starscustom license75 out of 100
3QdrantRust vector database with payload filtering, REST and gRPC Live demo ↗ (opens in a new tab)35.1k starsApache-2.069 out of 100
#4faissC++ library for similarity search and clustering of dense vectors41.2k starsMIT66 out of 100
#5ChromaEmbedding database with a four-function API for Python and JavaScript29.5k starsApache-2.062 out of 100