LEANN is an open source system designed to enable retrieval-augmented generation (RAG) and semantic search across personal data while running entirely on local devices. It focuses on dramatically reducing the storage overhead typically required for vector search and embedding indexes, enabling efficient large-scale knowledge retrieval on consumer hardware. LEANN introduces a storage-efficient approximate nearest neighbor index combined with on-the-fly embedding recomputation to avoid storing large embedding vectors. By recomputing embeddings during queries and using compact graph-based indexing structures, LEANN can maintain high search accuracy while minimizing disk usage. It aims to act as a unified personal knowledge layer that connects different types of data such as documents, code, images, and other local files into a searchable context for language models.

Features

  • Storage-efficient approximate nearest neighbor index for semantic search
  • On-the-fly embedding recomputation to minimize vector storage overhead
  • Graph pruning techniques that reduce index size while preserving accuracy
  • Two-level coarse-to-fine search for faster query processing
  • Support for indexing many file types including code, documents, and data formats
  • Pluggable backends such as DiskANN and HNSW/FAISS with a unified interface

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow LEANN

LEANN Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of LEANN!

Additional Project Details

Programming Language

Python

Related Categories

Python Artificial Intelligence Software, Python Semantic Search Tool

Registered

2026-03-12