登录 注册
AI 模型与开发框架开发者工具AI 应用与 AI Agent aifaissgpt-osslangchainllama-indexllm
13,789
Stars
1,284
Forks
78
Watchers
52
Open Issues
MIT
许可证
Python
语言
2025-06-09
创建时间
2026-11-11
最近更新

项目能做什么

可在个人设备上运行的快速、精准且完全私密的 RAG 应用,可节省 97% 存储空间。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<p align="center">
  <img src="assets/logo-text.png" alt="LEANN Logo" width="400">
</p>

<p align="center">
  <a href="https://trendshift.io/repositories/15049" target="_blank">
    <img src="https://trendshift.io/api/badge/repositories/15049" alt="StarTrail-org/LEANN | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/>
  </a>
</p>

<p align="center">
  <img src="https://img.shields.io/badge/Python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue.svg" alt="Python Versions">
  <img src="https://github.com/StarTrail-org/LEANN/actions/workflows/build-and-publish.yml/badge.svg" alt="CI Status">
  <img src="https://img.shields.io/badge/Platform-Ubuntu%20%26%20Arch%20%26%20WSL%20%7C%20macOS%20(ARM64%2FIntel)%20%7C%20Windows-lightgrey" alt="Platform">
  <img src="https://img.shields.io/badge/License-MIT-green.svg" alt="MIT License">
  <img src="https://img.shields.io/badge/MCP-Native%20Integration-blue" alt="MCP Integration">
  <a href="https://join.slack.com/t/leann-e2u9779/shared_invite/zt-3ol2ww9ic-Eg_kB8omwe6xmYVd0epr4Q">
    <img src="https://img.shields.io/badge/Slack-Join-4A154B?logo=slack&logoColor=white" alt="Join Slack">
  </a>

</p>

<div align="center">
  <a href="https://forms.gle/rDbZf864gMNxhpTq8">
    <img src="https://img.shields.io/badge/📣_Community_Survey-Help_Shape_v0.4-007ec6?style=for-the-badge&logo=google-forms&logoColor=white" alt="Take Survey">
  </a>
  <p>
    We track <b>zero telemetry</b>. This survey is the ONLY way to tell us if you want <br>
    <b>GPU Acceleration</b> or <b>More Integrations</b> next.<br>
    👉 <a href="https://forms.gle/rDbZf864gMNxhpTq8"><b>Click here to cast your vote (2 mins)</b></a>
  </p>
</div>

<div align="center">
  <h3>💬 Join our Slack community!</h3>
  <p>
    We'd love for you to be part of the LEANN community!<br>
    👉 <a href="https://join.slack.com/t/leann-e2u9779/shared_invite/zt-3ol2ww9ic-Eg_kB8omwe6xmYVd0epr4Q"><b>Join LEANN Slack</b></a><br>
    If the invite link has expired or you have trouble joining, please <a href="https://github.com/StarTrail-org/LEANN/issues">open an issue</a> and we'll help you get in!
  </p>
</div>

<h2 align="center" tabindex="-1" class="heading-element" dir="auto">
    The smallest vector index in the world. RAG Everything with LEANN!
</h2>

LEANN is an innovative vector database that democratizes personal AI. Transform your laptop into a powerful RAG system that can index and search through millions of documents while using **97% less storage** than traditional solutions **without accuracy loss**.


LEANN achieves this through *graph-based selective recomputation* with *high-degree preserving pruning*, computing embeddings on-demand instead of storing them all. [Illustration Fig →](#️-architecture--how-it-works) | [Paper →](https://arxiv.org/abs/2506.08276)

**Ready to RAG Everything?** Transform your laptop into a personal AI assistant that can semantic search your **[file system](#-personal-data-manager-process-any-docu
阅读完整原文

商业机会分析 AI 生成

端侧零配置纯离线桌面知识库助手

产品构想基于 LEANN 构建无需 Docker、无需外部向量数据库、零 API Key 依赖的跨平台桌面知识搜索客户端,专攻海量本地文档(PDF、Markdown、代码)极低存储占用的离线语义问答。
核心功能本地多格式文档自动化解析、LEANN 97% 压缩比向量索引自动构建、无缝联动本地 Ollama/LM Studio 离线模型、全局快捷键秒级召回。
目标用户对数据隐私有硬性要求的专业人士(法律、学术、医疗、财务)及离线办公人员。
难度/周期中等 · 3-5 周 · 成本:极低(主要为应用签名证书、跨平台打包与域名费用)
收费模式独立客户端买断制(如 $29-$49/买断)或按年支持订阅。
竞争风险跨平台内置 Python 运行环境打包体积大,且开源领域存在 AnythingLLM 等成熟竞品分流。
依据 数据支持的判断

Obsidian / Raycast 本地轻量化语义检索商业插件

产品构想为 PKM 头部生态开发极轻量、无需 Docker/外置服务器的语义搜索插件,借助其超低磁盘占用特性解决用户笔记库膨胀和卡顿痛点。
核心功能笔记自动增量轻量化索引、双链上下文召回、极低磁盘占用指示、即装即用无复杂环境配置。
目标用户Obsidian、Logseq、Raycast 重度知识管理用户、个人开发者。
难度/周期低至中等 · 2-4 周 · 成本:接近零成本
收费模式Freemium 模式(基础检索免费,高级多模态检索、长文档重排问答采用 Pro 许可密钥付费)。
竞争风险PKM 社区开源文化强,纯插件功能付费转化率通常偏低。
依据 AI推测

嵌入式/边缘设备轻量化向量检索 SDK 商业授权

产品构想将 LEANN 的核心压缩检索技术进一步工程化,封装为面向树莓派、车载系统、工业手持终端等硬件的轻量 C/C++/Python 嵌入式 SDK,提供商业闭源支持及定制优化。
核心功能极端受限存储环境下的索引快速加载、C-API 接口封装、低功耗运行调度、设备端混合检索。
目标用户智能硬件开发商、IoT 边缘计算方案集成商、工业内网设备厂商。
难度/周期偏高 · 2-3 个月 · 成本:少量硬件测试采购成本
收费模式商业 OEM 授权费用 + 针对特定硬件平台的定制开发咨询费。
竞争风险商业决策链路长,单人开发者难以提供高等级的企业 SLA 保障及复杂硬件适配支持。
依据 尚需验证的假设
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
morluto/rea 中文介绍暂未生成
Reverse engineer anything with agents, from app behavior dow
449,278 TypeScript
openclaw/openclaw 中文介绍暂未生成
The AI that really does things. Any OS. Any Platform. The lo
394,300 TypeScript
obra/superpowers 中文介绍暂未生成
An agentic skills framework & software development methodolo
315,567 Shell
NousResearch/hermes-agent 中文介绍暂未生成
The agent that grows with you
262,358 Python
n8n-io/n8n 中文介绍暂未生成
Fair-code workflow automation platform with native AI capabi
210,004 TypeScript
firecrawl/firecrawl 中文介绍暂未生成
Supercharge your AI agents with data from the web and beyond
200,418 TypeScript
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2025-06-09,近 30 天仍在推送,发布过 31 个 Release
社区活跃Star 13,789 / Fork 1,284 / Issue 52(数据支持,可自行核实)
许可证MIT
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/StarTrail-org/LEANN.git
cd LEANN
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。