Discover and explore top open-source AI tools and projects—updated daily.
RAG on Everything with 97% storage savings
Top 23.9% on SourcePulse
LEANN is a novel vector database designed for personal AI applications, enabling users to build private, efficient Retrieval-Augmented Generation (RAG) systems on their local devices. It targets individuals and developers seeking to leverage their personal data (emails, documents, browsing history) for AI tasks without cloud reliance or significant storage overhead, offering up to 97% storage savings.
How It Works
LEANN employs a graph-based selective recomputation strategy, drastically reducing storage needs by not storing all embeddings. Instead, it stores a pruned graph structure and computes embeddings on-demand during search. This approach, combined with high-degree preserving pruning and CSR format for graph storage, minimizes memory and disk footprint while maintaining accuracy.
Quick Start & Requirements
git clone https://github.com/yichuan-w/LEANN.git
), activate a virtual environment (uv venv
, source .venv/bin/activate
), and install LEANN (uv pip install leann
).uv
package manager. Building from source requires llvm
, libomp
, boost
, protobuf
, zeromq
, pkgconf
on macOS, or libomp-dev
, libboost-all-dev
, protobuf-compiler
, libabsl-dev
, libmkl-full-dev
, libaio-dev
, libzmq3-dev
on Linux.OPENAI_API_KEY
) or Ollama for local LLM execution.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
leann
CLI.2 days ago
Inactive