StarTrail-org/LEANN

[MLsys2026 Best Paper]: https://arxiv.org/abs/2506.08276. RAG on Everything with LEANN. Enjoy 97% storage savings while running a fast, accurate, and 100%...

View on GitHub ↗Jump to charts ↓Open shareable report →

StarTrail-org/LEANN has 13k+ stars and 1k+ forks on GitHub, is written in Python, and was last pushed on Oct 17, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 1 hour ago
Added to GitGenius on December 23rd, 2025
Created on June 9th, 2025
Open Issues & Pull Requests: 46 (+0)
GitHub issues: Enabled
Number of forks: 1,295
Total Stargazers: 13,034 (+0)
Total Subscribers: 78 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 8.7 hours
Mean response time: 11.3 days
90th percentile: 19.7 days
Tracked items: 118

Maintainer activity

3 people did triage or write work on this repository in the last 12 months.

Counts unlabeled, assigned, unassigned, milestoned, demilestoned, locked, unlocked over the last 12 months. These are issue and pull request events that require triage or write permission. Commits and code review are not counted. labeled and renamed are excluded because GitHub issue forms record the issue author as the actor. Figures from October 18, 2026. This count is not comparable across projects: each project's automation decides which of these events a person emits. How this is counted.

How this project is maintained

About 11% of issues opened in the past year have never received a reply. 46% of open issues come from outside the core team, a mix of external reports and the maintainers' own roadmap. 71% of issues opened in the past year have been closed, leaving a working backlog. Three people close 93% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 37
New in 7 days: 0
Closed in 7 days: 1
Avg open age: 193 days
Stale 30+ days: 35
Stale 90+ days: 32

Recent activity

Opened in 7 days: 0
Closed in 7 days: 1
Comments in 7 days: 0
Events in 7 days: 3

Top labels

  • enhancement (31)
  • good first issue (24)
  • bug (21)
  • Good issue for first PR (4)
  • help wanted (4)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

LEANN is a vector database designed to enable retrieval-augmented generation on personal devices with exceptional storage efficiency. The repository demonstrates that semantic search and RAG capabilities can operate with 97% less storage than traditional vector database solutions while maintaining search accuracy. The system achieves this through graph-based selective recomputation with high-degree preserving pruning, computing embeddings on-demand rather than storing them persistently.

The project supports RAG across diverse personal data sources including PDF, text, and markdown documents, Apple Mail, Google Search History, WeChat conversations, ChatGPT and Claude chat histories, iMessage conversations, and live data streams through Model Context Protocol servers such as Slack and Twitter. This breadth of data source integration positions LEANN as a comprehensive personal knowledge indexing system. The repository includes specific application examples for semantic search across file systems, email archives, browser history, chat histories, and codebases, with Claude Code integration providing MCP-compatible semantic search capabilities.

LEANN prioritizes privacy by design, ensuring all data remains on the user's device without transmission to cloud services or third-party APIs. The system is lightweight and portable, allowing users to transfer entire knowledge bases between devices with minimal overhead. The architecture uses graph-based recomputation combined with CSR format storage to minimize both storage and memory requirements while handling messy personal data at scale.

The codebase is written in Python and supports versions 3.9 through 3.13 across multiple platforms including Ubuntu, Arch Linux, macOS with both ARM64 and Intel processors, and Windows. The project includes native MCP integration and maintains zero telemetry tracking. Installation is available through PyPI or from source, with platform-specific build instructions provided for Linux distributions, macOS, and Windows environments.

The repository overlaps contributors with yichuan-w/leann, sgl-project/sglang, and kubeflow/pipelines.

The project is associated with an MLsys2026 publication and references a research paper at arxiv.org/abs/2506.08276 detailing the technical approach. The system supports multiple LLM and embedding providers through OpenAI API compatibility, including local inference engines like Ollama, LM Studio, vLLM, llama.cpp, and SGLang, as well as cloud providers. A demo notebook is available and can be run in Google Colab for immediate experimentation. The project maintains an active Slack community and conducts user surveys to guide feature development priorities such as GPU acceleration and additional integrations.