LEANN

Private on-device RAG with 97% storage savings.

Working when we checked on .

Visit LEANN

What is LEANN?

LEANN is an open-source RAG (Retrieval-Augmented Generation) framework that lets users run fast, accurate, and private retrieval applications on personal devices with roughly 97% storage savings. It is built for developers and individuals who want local, privacy-preserving RAG over their own documents. The project supports OCR-based PDF ingestion via LlamaIndex readers, custom embedding encoders with safety checks, and benchmark tooling such as the ContextBench agent benchmark. It is available as a GitHub repository with Docker images and VS Code dev container setups.

LEANN pricing

Pricing model: Free

Free and open source

LEANN pros

  • Claims 97% storage savings for RAG indexes
  • Runs fully locally with 100% privacy on personal devices
  • Supports OCR-based PDF loading via LlamaIndex readers
  • Includes ContextBench agent benchmark tooling
  • Provides Docker images and dev container reference setup
  • Recognized as MLSys 2026 Best Paper

LEANN cons

  • Requires technical setup via GitHub, Docker, or command line
  • Custom embedding models need explicit trust_remote_code opt-in due to security defaults
  • No dedicated commercial support or documentation of paid plans

Frequently asked questions about LEANN

What does LEANN do?

LEANN is an open-source RAG framework that enables fast, accurate, and 100% private retrieval-augmented generation on personal devices while achieving roughly 97% storage savings.

Who is LEANN for?

It targets developers and individuals who want to run RAG applications locally over their own documents without sending data to external services.

How much storage does LEANN save?

According to the project, users can enjoy 97% storage savings compared to storing full vector indexes for RAG.

Does LEANN support OCR for PDFs?

Yes, the project includes a --use-ocr option for PDF loading, adapted to the LlamaIndex reader API, handling PDFs even with existing text layers.

Is LEANN private?

Yes, the project describes itself as 100% private, running the RAG application locally on personal devices.

How can developers set up LEANN?

The repository includes Docker images, a VS Code dev container configuration, and a documented reference setup for local development.

Are there benchmarks included?

Yes, the repository contains a benchmarks directory including the ContextBench agent benchmark for evaluating performance.

Does LEANN support custom embedding models?

Yes, it supports custom encoders, and the code detects when a model requires trust_remote_code, raising an error rather than silently producing random rankings. The flag can be enabled with LEANN_TRUST_REMOTE_CODE=1.

Is LEANN free?

Yes, LEANN is an open-source project hosted on GitHub under the StarTrail-org organization, available at no cost.

Has LEANN received any recognition?

Yes, the associated paper (arxiv.org/abs/2506.08276) is noted as an MLSys 2026 Best Paper.

Categories

Use cases

Alternatives to LEANN

Similar AI tools

Search AI tools on NeedAnAI · All AI tools A–Z