# LlamaIndex

LlamaIndex 是一个开源 [Python](https://www.edgepedia.org/zh/python-programming-language) 框架，用于把大语言模型（LLM）连接到外部数据；它围绕摄取、索引、检索和查询工具构建，服务于检索增强生成（RAG），近来也服务于智能体文档处理。该框架于 2022 年末发布；其背后的公司成立于 2023 年，在这套免费框架之上销售托管平台 LlamaCloud。<sup>[1](https://www.llamaindex.ai/blog/llamaindex-is-more-than-a-rag-framework)</sup><sup> • </sup><sup>[2](https://www.prnewswire.com/news-releases/llamaindex-secures-19-million-series-a-to-power-enterprise-grade-knowledge-agents-302390936.html)</sup> GitHub 仓库将该开源包描述为“一个帮助你构建 LLM 应用的‘数据框架’”，并以 Parse（LlamaParse）作为企业平台，用于“智能体 OCR、解析、抽取、索引等”。<sup>[3](https://github.com/run-llama/llama_index)</sup> 它所调用的底层模型以及公司本身，另见他文。

该框架所解决的问题是上下文增强：一次普通的 LLM API 调用只知道训练数据里的内容，因此要在私有文档上回答问题的应用，必须在推理时检索相关上下文，并将其与模型结合。LlamaIndex 将检索增强生成定位为这一模式最流行的例子，并为其提供管道设施。<sup>[4](https://developers.llamaindex.ai/python/framework/)</sup>

| 事实 | 详情 |
|---|---|
| 开源发布 | 2022 年末，RAG 浪潮之初<sup>[1](https://www.llamaindex.ai/blog/llamaindex-is-more-than-a-rag-framework)</sup> |
| 公司成立 | 2023 年<sup>[2](https://www.prnewswire.com/news-releases/llamaindex-secures-19-million-series-a-to-power-enterprise-grade-knowledge-agents-302390936.html)</sup> |
| 融资 | 总计 2750 万美元；2025 年 3 月 4 日由 Norwest Venture Partners 领投、Greylock 参与的 1900 万美元 A 轮融资<sup>[2](https://www.prnewswire.com/news-releases/llamaindex-secures-19-million-series-a-to-power-enterprise-grade-knowledge-agents-302390936.html)</sup> |
| 托管产品 | LlamaCloud，2025 年 3 月正式可用；提供 SaaS 或虚拟私有云，支持 RBAC 与 SSO<sup>[2](https://www.prnewswire.com/news-releases/llamaindex-secures-19-million-series-a-to-power-enterprise-grade-knowledge-agents-302390936.html)</sup> |
| 当前版本 | PyPI 上的 llama-index 0.14.24，2026 年 9 月<sup>[6](https://www.pypi.org/project/llama-index)</sup> |
| 采用情况（厂商自报，2026 年） | 47,000 个 GitHub 星标，每月 520 万次下载<sup>[1](https://www.llamaindex.ai/blog/llamaindex-is-more-than-a-rag-framework)</sup> |
| 定位（2026 年） | 智能体文档处理：OCR、抽取、工作流<sup>[1](https://www.llamaindex.ai/blog/llamaindex-is-more-than-a-rag-framework)</sup> |

## 历史与版本

LlamaIndex 于 2022 年末作为开源框架出现，公司把那一刻描述为 RAG 浪潮的开端。公司本身成立于 2023 年，推出该开源项目时带有数据连接器、用于组织数据的索引，以及高级检索。<sup>[1](https://www.llamaindex.ai/blog/llamaindex-is-more-than-a-rag-framework)</sup><sup> • </sup><sup>[2](https://www.prnewswire.com/news-releases/llamaindex-secures-19-million-series-a-to-power-enterprise-grade-knowledge-agents-302390936.html)</sup>

llama-index 的 v0.14.16 版本于 2026 年 3 月 10 日发布，捆绑了 llama-index-core 0.14.16，并在模型集成中包含 llama-index-llms-anthropic 0.10.11。<sup>[5](https://github.com/run-llama/llama_index/releases/tag/v0.14.16)</sup> 到 2026 年 9 月，PyPI 上的总包版本为 v0.14.24。<sup>[6](https://www.pypi.org/project/llama-index)</sup> 商业史上有两个里程碑：LlamaCloud 在 2025 年 3 月融资公告的同时正式可用；2026 年，公司正式从“RAG 框架”重新定位为“智能体文档处理”。<sup>[2](https://www.prnewswire.com/news-releases/llamaindex-secures-19-million-series-a-to-power-enterprise-grade-knowledge-agents-302390936.html)</sup><sup> • </sup><sup>[1](https://www.llamaindex.ai/blog/llamaindex-is-more-than-a-rag-framework)</sup>

## 工作原理

一个 LlamaIndex 应用由开发者文档中描述的一小组抽象组装而成：<sup>[4](https://developers.llamaindex.ai/python/framework/)</sup>

- **数据连接器**从原生来源和格式摄取数据，包括 API、PDF 和 SQL。
- **数据索引**为检索而组织摄取的数据。
- **查询引擎**是用于问答的接口，例如 RAG 流程；**对话引擎**是会话式接口，用于与你的数据进行多条消息的往返交互。
- **智能体**以及**可观测性/评估集成**补全了这套工具。
- **工作流**把智能体、数据连接器和其他工具组合成事件驱动的多步流程，文档称其比基于图的方法更灵活；它们可以作为生产微服务部署。<sup>[4](https://developers.llamaindex.ai/python/framework/)</sup>

在一次典型的检索增强查询中，连接器把文档带入，索引将其组织，检索器选出与问题相关的上下文，查询引擎把该上下文连同问题一起传给 LLM。LlamaIndex 自己对这一层为何存在的说法是：在推理时把上下文与模型结合，能产生裸模型调用无法给出的答案。<sup>[4](https://developers.llamaindex.ai/python/framework/)</sup>

## LlamaCloud 与定价

LlamaCloud 是托管的商业产品。它于 2025 年 3 月正式可用，可以部署为 SaaS 或部署在虚拟私有云中，支持基于角色的访问控制（RBAC）和单点登录（SSO）。<sup>[2](https://www.prnewswire.com/news-releases/llamaindex-secures-19-million-series-a-to-power-enterprise-grade-knowledge-agents-302390936.html)</sup> 其解析组件 LlamaParse 由视觉语言模型（VLM）驱动，面向嵌套表格、内嵌图表或图像等复杂文档。<sup>[4](https://developers.llamaindex.ai/python/framework/)</sup> LlamaCloud 提供 SaaS 和自托管方案，新注册用户每月获赠 10,000 个免费额度。<sup>[4](https://developers.llamaindex.ai/python/framework/)</sup>

一份 2026 年的第三方评测（未与官方定价页核对）描述了这样一种额度模式：1,000 个额度收费 1 美元；免费方案每月约 10,000 个额度；Starter 方案每月 50 美元（约 40,000 个额度）；Pro 方案每月 500 美元（约 400,000 个额度）；另有定制的 Enterprise 档。据同一评测，每个档位都包含全部产品模块（Parse、Extract、Classify、Split 和 Index），档位差别在于用量、并发、支持和部署选项；额度消耗随文档复杂度而变化，因此一页密集、表格繁多的文档比一页简单文本消耗更多额度。<sup>[7](https://aiagentsquare.com/agents/llamaindex)</sup> 开源框架本身在宽松许可证下免费；构建者无需向 LlamaIndex 付费，只需承担底层 LLM 调用成本。<sup>[7](https://aiagentsquare.com/agents/llamaindex)</sup>

## 数据一览

采用数据大多来自公司，应视为厂商自报。2025 年 3 月，新闻稿称各开源包每月下载量超过 300 万次、GitHub 星标超过 38,000 个、LinkedIn 关注者 23 万。<sup>[2](https://www.prnewswire.com/news-releases/llamaindex-secures-19-million-series-a-to-power-enterprise-grade-knowledge-agents-302390936.html)</sup> 一份 2026 年的公司博客文章报告 47,000 个 GitHub 星标和每月 520 万次下载，这一增长与早先数字一致，但仍属自报。<sup>[1](https://www.llamaindex.ai/blog/llamaindex-is-more-than-a-rag-framework)</sup> 公司还报告称，LlamaParse 已在 50 多种文件格式上处理超过 5 亿页。<sup>[1](https://www.llamaindex.ai/blog/llamaindex-is-more-than-a-rag-framework)</sup>

在商业方面，公司于 2025 年 3 月表示将向等候名单上的 10,000 多家组织提供服务，其中包括 90 家《财富》500 强公司，并点名 Rakuten、Carlyle 和 [Salesforce](https://www.edgepedia.org/zh/salesforce) 为客户。<sup>[2](https://www.prnewswire.com/news-releases/llamaindex-secures-19-million-series-a-to-power-enterprise-grade-knowledge-agents-302390936.html)</sup> 2026 年的博客文章又加入 Carlyle、Cemex 和 KPMG 作为企业用户。<sup>[1](https://www.llamaindex.ai/blog/llamaindex-is-more-than-a-rag-framework)</sup> 唯一可独立核实的数量是 PyPI 上的包版本：截至 2026 年 9 月为 0.14.24。<sup>[6](https://www.pypi.org/project/llama-index)</sup>

## 重新定位、反响与批评

2025—2026 年最重要的进展，是公司对自身类别的重新评估。在 2026 年的一篇博客文章中，LlamaIndex 表示，通用 LLM 框架“即 LlamaIndex 和 LangChain（以及其他一些）所构建的那类东西，已不如从前那样居于中心”。它给出的理由是：技能与 MCP（[模型上下文协议](https://www.edgepedia.org/zh/model-context-protocol)）为智能体访问能力创造了标准化方式，无需框架级集成；而且“当 Claude Code 或 Cursor 能直接替你写 Python 时，框架抽象的价值就大幅下降”。它的回应是专注于智能体文档处理、OCR、抽取和工作流，并宣称使命是“为文档之上的知识工作自动化提供核心基础设施”。<sup>[1](https://www.llamaindex.ai/blog/llamaindex-is-more-than-a-rag-framework)</sup> 智能体侧的产品是 LlamaAgents，一个用代码或通俗英语构建文档工作流的平台，由事件驱动的 Workflows 框架驱动。<sup>[1](https://www.llamaindex.ai/blog/llamaindex-is-more-than-a-rag-framework)</sup><sup> • </sup><sup>[4](https://developers.llamaindex.ai/python/framework/)</sup>

关于失败模式，公司自己的说法对文档解析相当坦率：它说，现有的 OCR 工具会使表格错位、忽略图表，并引入乱码文本而非连贯的阅读顺序，从而导致下游答案出现幻觉。LlamaParse 被呈现为解决方案。<sup>[1](https://www.llamaindex.ai/blog/llamaindex-is-more-than-a-rag-framework)</sup> 在现有证据中，没有对 RAG 框架质量提升的独立评估，也没有涉及许可证变更、安全事件或基准争议的资料；这些问题仍然悬而未决。

## References

1. [LlamaIndex is more than a RAG Framework. It is Agentic Document Processing.](https://www.llamaindex.ai/blog/llamaindex-is-more-than-a-rag-framework) — LlamaIndex blog, 2026.
2. [LlamaIndex Secures $19 Million Series A to Power Enterprise-Grade Knowledge Agents](https://www.prnewswire.com/news-releases/llamaindex-secures-19-million-series-a-to-power-enterprise-grade-knowledge-agents-302390936.html) — PR Newswire, March 2025.
3. [run-llama/llama_index — GitHub](https://github.com/run-llama/llama_index).
4. [Welcome to LlamaIndex — Developer Documentation](https://developers.llamaindex.ai/python/framework/) — LlamaIndex.
5. [Release v0.14.16](https://github.com/run-llama/llama_index/releases/tag/v0.14.16) — GitHub, March 10, 2026.
6. [llama-index v0.14.24 - PyPI](https://www.pypi.org/project/llama-index).
7. [LlamaIndex Review 2026: Features, Pricing & Verdict](https://aiagentsquare.com/agents/llamaindex) — AI Agent Square, 2026 (third-party review).

---
*Initially written Sep 17, 2026 · Edited: Oct 11, 2026; Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › 基础模型方法与训练 › 提示、推理与智能体

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/llamaindex

English original: https://www.edgepedia.org/llamaindex
