LEANN
ActiveDescription
RAG on Everything with LEANN. Enjoy 97% storage savings while running a fast, accurate, and 100% private RAG application on your personal device. Published at MLsys 2026.
Key Features
- 97% storage reduction vs traditional vector databases with no accuracy loss
- Graph-based selective recomputation — embeddings computed on demand, not stored
- 100% local and private — data never leaves your laptop
- Native MCP integration for Claude Code and other AI assistants
- Handles 60M+ documents in 6GB instead of 201GB on consumer hardware
- Cross-platform: macOS, Linux, Windows (WSL), with Python 3.9-3.13
Use Cases
Categories
Quick Start
curl -LsSf https://astral.sh/uv/install.sh | sh (install uv). git clone https://github.com/yichuan-w/LEANN.git && cd leann. uv venv && source .venv/bin/activate && uv pip install leann. Then follow the example notebooks in the repo.