# LightRAG

框架 · https://godooo.ai/zh/framework/lightrag

> LightRAG 是开源 AI 开发框架，2024 年推出，面向开发者。

同时借助知识图谱和向量检索的轻量 RAG 框架。

主打：知识库检索。开源，可以免费使用。使用方式：自部署、API、本地离线运行。

## 速览

- **类别:** [框架](https://godooo.ai/zh/browse#framework)
- **推出于:** 2024
- **所属星系:** [模型与 API](https://godooo.ai/zh/galaxy/builders)
- **是否开源:** 是 · MIT
- **源代码:** [github.com/HKUDS/LightRAG](https://github.com/HKUDS/LightRAG)
- **GitHub 星标:** 39,842
- **使用方式:** 可自部署 · API · 可离线本地运行
- **适合谁:** 开发者
- **官网:** [github.com](https://github.com/HKUDS/LightRAG)

## 能做什么

- **[知识库检索](https://godooo.ai/zh/capability/knowledge-base)** — 主打, _由机器提出，尚待校准_. “LightRAG is a lightweight knowledge-graph RAG framework and an efficient alternative to Microsoft GraphRAG.” (摘自 [github.com](https://github.com/HKUDS/LightRAG)，2026-09-24)
- **[向量检索](https://godooo.ai/zh/capability/vector-search)** — 支持, _由机器提出，尚待校准_. “It adopts a dual-layer architecture to manage both knowledge graphs (KGs) and vector embeddings” (摘自 [github.com](https://github.com/HKUDS/LightRAG)，2026-09-24)
- **[文档问答](https://godooo.ai/zh/capability/document-qa)** — 支持, _由机器提出，尚待校准_. “an interface that allows you to insert, query, and visualize LightRAG knowledge through an intuitive web-based dashboard” (摘自 [github.com](https://github.com/HKUDS/LightRAG)，2026-09-24)

## 平替与同类

- **[GraphRAG](https://godooo.ai/zh/framework/graphrag)** (开源免费): 同样能做：知识库检索、文档问答
- **[RAGFlow](https://godooo.ai/zh/product/ragflow)** (开源免费): 同样能做：文档问答、知识库检索、向量检索
- **[QAnything](https://godooo.ai/zh/product/qanything)** (开源免费): 同样能做：文档问答、知识库检索、向量检索
- **[LlamaIndex](https://godooo.ai/zh/framework/llamaindex)** (开源免费): 同样能做：知识库检索、向量检索、文档问答
- **[AnythingLLM](https://godooo.ai/zh/product/anythingllm)** (开源免费): 同样能做：文档问答、知识库检索；不用写代码
- **[Khoj](https://godooo.ai/zh/product/khoj)** (开源免费): 同样能做：文档问答、知识库检索；不用写代码
- **[kotaemon](https://godooo.ai/zh/product/kotaemon)** (开源免费): 同样能做：文档问答、知识库检索；不用写代码
- **[Langchain-Chatchat](https://godooo.ai/zh/product/langchain-chatchat)** (开源免费): 同样能做：文档问答、知识库检索
- **[PrivateGPT](https://godooo.ai/zh/framework/privategpt)** (开源免费): 同样能做：文档问答、知识库检索
- **[Haystack](https://godooo.ai/zh/framework/haystack)** (开源免费): 同样能做：知识库检索、向量检索
- **[MaxKB](https://godooo.ai/zh/product/maxkb)** (开源免费): 同样能做：知识库检索、文档问答；不用写代码
- **[NotebookLM](https://godooo.ai/zh/product/notebooklm)** (免费版 + 付费升级): 同样能做：文档问答、知识库检索；不用写代码

## 关系

- **应用了:** [Retrieval-Augmented Generation (RAG)](https://godooo.ai/zh/concept/rag), [Knowledge Graph](https://godooo.ai/zh/concept/knowledge-graph)

## 常见问题

### LightRAG 是什么？

LightRAG 是开源 AI 开发框架，2024 年推出，面向开发者。同时借助知识图谱和向量检索的轻量 RAG 框架。

### LightRAG 免费吗？

免费。LightRAG 是开源软件（MIT）。

### LightRAG 开源吗？

开源，许可证是 MIT。源代码在 https://github.com/HKUDS/LightRAG。

### LightRAG 能本地运行吗？

能，可以在自己的电脑上离线运行。也可以部署在自己的服务器上。

### LightRAG 能做什么？

主打：知识库检索。也能做：向量检索、文档问答。

### LightRAG 有哪些开源替代品？

开源的有：GraphRAG、RAGFlow、QAnything、LlamaIndex、AnythingLLM、Khoj、kotaemon、Langchain-Chatchat。其他：NotebookLM。

## 来源

- [github.com](https://github.com/HKUDS/LightRAG) — 核实于 2026-09-24

---

最后更新 2026-09-24 · 来源核实于 2026-09-24 · 这是 https://godooo.ai/zh/framework/lightrag 的 Markdown 版本。本站每个页面都有：在地址后面加 .md。
