# PrivateGPT

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

> PrivateGPT 是开源 AI 开发框架，2023 年推出，面向开发者、企业。

在本地模型上构建文档问答等私有 AI 应用的 API 层。

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

## 速览

- **类别:** [框架](https://godooo.ai/zh/browse#framework)
- **推出于:** 2023
- **所属星系:** [模型与 API](https://godooo.ai/zh/galaxy/builders)
- **是否开源:** 是 · Apache-2.0
- **源代码:** [github.com/zylon-ai/private-gpt](https://github.com/zylon-ai/private-gpt)
- **GitHub 星标:** 57,530
- **使用方式:** 可自部署 · API · 可离线本地运行
- **适合谁:** 开发者 · 企业
- **支持的协议:** [OpenAI-compatible API](https://godooo.ai/zh/protocol/openai-compatible-api)
- **官网:** [zylon.ai](https://www.zylon.ai/private-gpt)
- **别名:** private-gpt

## 能做什么

- **[文档问答](https://godooo.ai/zh/capability/document-qa)** — 主打, _由机器提出，尚待校准_. “a script that let you chat with your documents, fully offline, with no data leaving your machine” (摘自 [github.com](https://github.com/zylon-ai/private-gpt)，2026-09-24)
- **[知识库检索](https://godooo.ai/zh/capability/knowledge-base)** — 主打, _由机器提出，尚待校准_. “Retrieval with citations and agentic RAG” (摘自 [github.com](https://github.com/zylon-ai/private-gpt)，2026-09-24)
- **[大模型 API](https://godooo.ai/zh/capability/llm-api)** — 支持, _由机器提出，尚待校准_. “PrivateGPT is the open-source API layer that turns local models into production AI applications” (摘自 [github.com](https://github.com/zylon-ai/private-gpt)，2026-09-24)
- **[文档解析](https://godooo.ai/zh/capability/document-parsing)** — 支持, _由机器提出，尚待校准_. “PDF and document ingestion” (摘自 [github.com](https://github.com/zylon-ai/private-gpt)，2026-09-24)

## 平替与同类

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

## 关系

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

## 常见问题

### PrivateGPT 是什么？

PrivateGPT 是开源 AI 开发框架，2023 年推出，面向开发者、企业。在本地模型上构建文档问答等私有 AI 应用的 API 层。

### PrivateGPT 免费吗？

免费。PrivateGPT 是开源软件（Apache-2.0）。

### PrivateGPT 开源吗？

开源，许可证是 Apache-2.0。源代码在 https://github.com/zylon-ai/private-gpt。

### PrivateGPT 能本地运行吗？

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

### PrivateGPT 能做什么？

主打：文档问答、知识库检索。也能做：大模型 API、文档解析。

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

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

## 来源

- [github.com](https://github.com/zylon-ai/private-gpt) — 核实于 2026-09-24
- [zylon.ai](https://www.zylon.ai/private-gpt)

---

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