LlamaIndex FrameworkLlamaIndex Framework
一句话说清:LlamaIndex 是一个 Python 库。它把外部数据接进来做检索问答。
⚠ 但有件事必须先说。
官方已明确把公司重心从「编排框架」移走:
The current focus of LlamaIndex is to build the best AI-powered engine for document parsing and extraction. LlamaParse is our enterprise platform for agentic OCR, parsing, extraction, indexing and more. ...the company itself has undergone an evolution since when this OSS framework first launched 3 years ago in 2023. While we still have the OSS framework available as an open toolkit that you're welcome to use, our primary focus has shifted towards LlamaParse...
这句话的选型含义很直接。 公司的资源向文档解析倾斜是真的,但编排能力没有离开 OSS:
- README 把 Workflows 写在商业平台那一节(链接指向
cloud/llamaagents) - 官方框架文档则明示
llama-index-core仍含稳定版 Workflows(2026-10-08 核验)
它现在实质提供什么,README 自己列得最准:
- data connectors to ingest your existing data sources and data formats (APIs, PDFs, docs, SQL, etc.) - ways to structure your data (indices, graphs) - an advanced retrieval/query interface over your data - easy integrations with your outer application framework
把这些合起来,OSS 框架现在实质提供五样东西:
- 数据接入
- 索引 / 图结构
- 检索查询接口
- 300+ 集成
- Workflows 编排
这条档案的价值在别处。
- 收录判断:符合 v3 铁律「近 30 天有实质更新」(推送 2026-09-29,仍活跃)
- 真正价值:如实记录这个转折 —— 52,625★ 背后的公司正往文档解析 / agentic OCR 走
- 那是 LlamaParse 与 ParseBench 的战场,不是这个开源框架的
In one sentence: LlamaIndex is a Python library. It pulls external data in for retrieval and question answering.
⚠ But one thing has to be said first.
The project has explicitly moved its company focus away from "orchestration frameworks":
The current focus of LlamaIndex is to build the best AI-powered engine for document parsing and extraction. LlamaParse is our enterprise platform for agentic OCR, parsing, extraction, indexing and more. ...the company itself has undergone an evolution since when this OSS framework first launched 3 years ago in 2023. While we still have the OSS framework available as an open toolkit that you're welcome to use, our primary focus has shifted towards LlamaParse...
The selection implication is direct. The company's resources really have tilted towards document parsing, but the orchestration capability has not left the OSS:
- The README puts Workflows in the commercial-platform section (the link points at
cloud/llamaagents) - The official framework docs state that
llama-index-corestill ships a stable version of Workflows (checked 2026-10-08)
What it actually provides now, the README itself lists best:
- data connectors to ingest your existing data sources and data formats (APIs, PDFs, docs, SQL, etc.) - ways to structure your data (indices, graphs) - an advanced retrieval/query interface over your data - easy integrations with your outer application framework
Put together, the OSS framework now really provides five things: data ingestion, indices / graph structures, a retrieval query interface, 300+ integrations, and Workflows orchestration.
The value of this entry lies elsewhere — it meets the v3 rule "a substantive update within 30 days" (pushed 2026-09-29, still active), but its real value is recording that turn honestly: behind 52,377★ the company is heading towards document parsing / agentic OCR, which is LlamaParse and ParseBench territory, not this open-source framework's.
适合与不适合When to use it, when not to
适合这些场景:
- 核心任务是把外部数据源(API / PDF / 文档 / SQL)接进来做检索与问答
- 需要 300+ 现成集成里的某一个
- 团队是 Python 栈
- 明确要用 LlamaParse 的解析能力(那走商业平台)
不适合这些场景:
- 要商业平台的托管编排与 Agent Builder(LlamaAgents)
- 需要 agent 在自己项目目录里读写文件并跑命令 —— 那是 Deep Agents 那一类「工作区文件系统」
- 需要明确的沙箱与权限边界 —— 官方框架文档无此类机制
- 需要「关机后托管续跑」—— 走 LlamaAgents 平台侧
Fits: bringing external data sources in for retrieval and question answering; needing one of the 300+ ready-made integrations; a Python stack; explicitly wanting LlamaParse's parsing capability (that goes through the commercial platform).
Not a fit for: wanting the commercial platform's managed orchestration and Agent Builder (LlamaAgents); agents that read and write files in your project directory and run commands — that is the Deep Agents "workspace filesystem" category; needing explicit sandbox and permission boundaries — the official framework docs provide no such mechanism; needing managed "keep running after shutdown" execution — that is the LlamaAgents platform side.
中文生态China availability 国产 / 国内可直接用 / 备案状态 · 快照domestic / direct access / CAC filing · snapshot 2026-10-20
- 出品属地Origin
- 国外出品foreign-made 国外主体(网信办公示名单未见对应备案主体)。foreign entity (no matching filing entity in the CAC registry).
- 国内使用Direct access
- 大陆可直连direct OK 官网直连实测 200。official site measured 200 direct.
- 备案状态CAC filing
- 未见于备案名单not in filing list:未见于网信办公示名单(2026-10-20 检索 13 批附件,https://www.cac.gov.cn/2024-04/02/c_1713729983803145.htm);该产品未面向大陆公众提供服务,备案不适用。not in the CAC public registry (13 batch attachments searched 2026-10-20, https://www.cac.gov.cn/2024-04/02/c_1713729983803145.htm); the product does not serve the mainland public, so filing does not apply.
备案信息以网信办《生成式人工智能服务已备案信息》公示名单为准(按批次滚动更新,本站只抄编号不解读);「大陆可直连」是本站从大陆网络直连实测的结果,不是厂商承诺。GitHub 类站点当日实测有波动,口径写在依据里。Filing status is quoted from the CAC public registry (updated batch by batch; this site copies the number and does not interpret it). "Direct access" is this site's own reachability measurement from a mainland network, not a vendor promise. GitHub-hosted sites fluctuated on the measurement day — the note says so.
固定坐标系Fixed coordinate system
8 个维度dimensions, 与同分区其他对象逐项可比each comparable item by item against others in the same section.
- 模型与开放条件Model & openness
接入方式是「300+ 分散的集成包」,不是统一网关。
- 官方在 integrations 页统称它们 "community integrations"(社区集成)
- 也就是说,多数由社区维护,不是官方自己一个个养
"There are over 300 LlamaIndex integration packages that work seamlessly with core, allowing you to build with your preferred LLM, embedding, and vector store providers."
命名空间规则一眼能记住:
- 带
.core的(from llama_index.core.xxx)是核心 - 不带的(
from llama_index.xxx.yyy)是集成包
新集成要过维护者审核。
README 写明:"some integrations may be declined"。
未知:官方未公布集成包的质量分层与维护活跃度分级。 (已查 README 与 integrations 页。)
The integration surface is "300+ separate integration packages", not a unified gateway.
- The official integrations page calls them all "community integrations"
- That is, most are community-maintained, not hand-fed by the vendor one by one
"There are over 300 LlamaIndex integration packages that work seamlessly with core, allowing you to build with your preferred LLM, embedding, and vector store providers."
The namespace rule is easy to remember:
- With
.core(from llama_index.core.xxx) = core - Without it (
from llama_index.xxx.yyy) = an integration package
New integrations go through maintainer review.
The README states: "some integrations may be declined".
Unknown: the official docs publish no quality tiering or maintenance-activity grading for the integration packages. (Checked — README and the integrations page.)
- 运行位置Where it runs
OSS 形态是纯库,有两个安装档位;托管运行在商业平台那一侧。
安装档位有两个(README Getting Started):
- Starter ——
llama-index(PyPI):核心 + 一批常用集成的合集 - Customized ——
llama-index-core:只装核心,再按需从集成页挑包
框架本身是被 import 的库。 接入方式是跟外部应用框架对接, 这也是 README Proposed Solution 第四条:
"integrations with your outer application framework"
官方另有一套托管 / 部署路径。LlamaAgents 的
llamactlCLI 可以这样用:官方原文:"serve locally, and deploy to LlamaCloud or export for self-hosting"
LlamaCloud 另有托管 Index。
- 托管是 LlamaCloud / LlamaAgents 那一层(商业)
- 它不是 OSS 自带的运行形态
The OSS form is a pure library with two install tiers; hosted execution lives on the commercial-platform side.
Two install tiers (README Getting Started):
- Starter —
llama-index(PyPI): core plus a bundle of common integrations - Customized —
llama-index-core: core only, then pick packages from the integrations page
The framework itself is a library you import. The way in is to connect with your outer application framework, which is also the fourth item of the README's Proposed Solution:
"integrations with your outer application framework"
The vendor has a separate hosted/deployment path. LlamaAgents'
llamactlCLI can be used like this:Official wording: "serve locally, and deploy to LlamaCloud or export for self-hosting"
LlamaCloud also offers hosted Indexing.
- Hosting is the LlamaCloud / LlamaAgents layer (commercial)
- It is not a run form that ships with the OSS framework
- Starter ——
- 本地文件Local files
它读本地文件是为了建索引,不是给 agent 一个工作区。
官方
SimpleDirectoryReader文档把这句说得很直白:"the simplest way to load data from local files into LlamaIndex"
可传的参数:
input_dir、recursive=Trueexclude、required_exts、num_files_limit- 远程文件系统走
fsspec(S3、GDrive 等)
索引默认存内存。 两个官方示例动作:
- 落盘:
index.storage_context.persist()写到./storage - 重载:
load_index_from_storage
本站记这一轴用的是「索引层视角」。
它不是「agent 工作区」文件系统。 而是「数据源接入 + 索引」层的本地文件读取。
它读盘是为了把文档变成可检索的索引。 这与 Deep Agents 那种「agent 在工作区里改文件」不是一回事。
It reads local files to build indexes, not to give an agent a workspace.
The official
SimpleDirectoryReaderdocs put it plainly:"the simplest way to load data from local files into LlamaIndex"
Parameters you can pass:
input_dir,recursive=Trueexclude,required_exts,num_files_limit- Remote file systems go through
fsspec(S3, GDrive, etc.)
Indexes live in memory by default. Two official example actions:
- Persist:
index.storage_context.persist()writes to./storage - Reload:
load_index_from_storage
This site records this axis from the "index layer" perspective.
It is not an "agent workspace" file system. It is local file reading at the "data-source ingestion + indexing" layer.
It reads disk to turn documents into retrievable indexes. That is not the same thing as Deep Agents' "agent editing files in a workspace".
- 关机后的任务Tasks after shutdown
它没有「关机后继续跑」的托管执行。 但编排(Workflows)确实还在 OSS 里。
有一处容易被 README 误导。 README 把 Workflows 列在 LlamaParse 平台的 Agents 节,官方框架文档却说得很清楚:
"llama-index-core comes with a stable version of Workflows included"
也就是说编排没被移出 OSS。两个入口:
- import 路径
llama_index.core.workflow - 也可独立
pip install llama-index-workflows
后台执行这一项是缺的。 官方框架文档未提供「关机续跑」的托管运行时, 进程要你自己跑。需要托管时走 LlamaAgents /
llamactl:"deploy them to LlamaCloud or your own infrastructure"
而那是平台侧。
There is no hosted execution that "keeps running after shutdown". But orchestration (Workflows) really is still in the OSS.
One spot is easy to misread from the README. The README lists Workflows under the LlamaParse platform's Agents section, while the official framework docs are explicit:
"llama-index-core comes with a stable version of Workflows included"
So orchestration has not been moved out of the OSS. Two entry points:
- Import path
llama_index.core.workflow - Also standalone:
pip install llama-index-workflows
Background execution is the missing item. The official framework docs offer no hosted runtime for "keep-running-after-shutdown"; you run the process yourself. For hosting, go through LlamaAgents /
llamactl:"deploy them to LlamaCloud or your own infrastructure"
and that is the platform side.
- import 路径
- 工具与扩展Tools & extensions
工具层两件事:社区 ToolSpec,加一个官方的 MCP 接入包。
官方 tools 文档给了
FunctionTool。 还有QueryEngineTool。另有 "Community contributed ToolSpecs"。
处理「工具返回超大输出」的是 Utility Tools:
OnDemandLoaderToolLoadAndSearchToolSpec
MCP 官方支持,而且是独立包。 文档原文:"LlamaIndex provides robust support for consuming MCP servers through the
llama-index-tools-mcppackage"它的 MCP 面:
- 三种传输都支持:SSE / Streamable HTTP / stdio
- 能把 Workflow 反发布为 MCP server
- 官方另托管
mcp.llamaindex.ai(文档检索 / LlamaParse 的 MCP 服务)
Two things at the tool layer: community ToolSpecs, plus one official MCP connector package.
The official tools docs give
FunctionTool. There is alsoQueryEngineTool. Plus "Community contributed ToolSpecs".Handling "a tool returns an oversized output" is what Utility Tools do:
OnDemandLoaderToolLoadAndSearchToolSpec
MCP is officially supported, as a separate package. Docs wording: "LlamaIndex provides robust support for consuming MCP servers through the
llama-index-tools-mcppackage"Its MCP surface:
- All three transports supported: SSE / Streamable HTTP / stdio
- A Workflow can be re-published as an MCP server
- The vendor also hosts
mcp.llamaindex.ai(a docs-retrieval / LlamaParse MCP service)
- 上下文与记忆Context & memory
这一维度官方有具体机制,不是空白。
官方把框架叫 "data framework"。
核心是 structure your data(indices, graphs)。 再加 retrieval/query interface。
也就是「把外部数据变成可检索的上下文」。
检索结果怎么塞进上下文窗口? 官方用 Response Synthesizer 回答:
compact(默认)—— "stuff as many text ... that can fit within the context window"refine—— 逐块精炼tree_summarize—— 递归摘要simple_summarize—— 截断到单 prompt
这就是它的上下文裁剪与摘要机制:先按窗口装箱,装不下再切块,摘要类模式做压缩。
This dimension has concrete official mechanisms; it is not blank.
The official docs call the framework a "data framework".
The core is structure your data (indices, graphs). Plus a retrieval/query interface.
That is, "turn external data into retrievable context".
How do retrieval results get packed into the context window? The official answer is the Response Synthesizer:
compact(default) — "stuff as many text ... that can fit within the context window"refine— refine chunk by chunktree_summarize— recursive summarizationsimple_summarize— truncate to a single prompt
That is its context-trimming and summarization mechanism: pack to the window first, split into chunks when it does not fit, compress via the summarize-style modes.
- 权限与限制Permissions & limits
⚠ 这是一个明确的重大信息缺口,选型前必须自己确认。
官方 README 全文没写的东西:沙箱、文件权限模型、 网络访问控制、人工确认机制 —— 一个都没有。
与本站收录的其它编排框架对照:
- Google ADK 有 Tool Confirmation(HITL)
- CrewAI 有 guardrails(机制未说明)
- LangGraph 有 interrupts(可检查并修改状态)
- LlamaIndex —— README 全文里连一个名词都没有
⚠ 风险面的性质不一样。 它的主战场是文档解析与 RAG, 处理的通常是用户上传的数据。
这与「agent 动你本地文件」是两类风险(数据泄露面 vs 主机操作面)。
但 README 未讨论数据权限与隔离。
⚠ This is a clear, major information gap; confirm it yourself before choosing.
Things the official README never mentions: sandboxing, a file-permission model, network access controls, human-in-the-loop confirmation — not one.
Compared against the other orchestration frameworks this site files:
- Google ADK has Tool Confirmation (HITL)
- CrewAI has guardrails (mechanism undocumented)
- LangGraph has interrupts (state can be inspected and modified)
- LlamaIndex — the README does not even name the concept
⚠ The nature of the risk surface is different. Its main battleground is document parsing and RAG; what it handles is usually user-uploaded data.
That is a different class of risk from "an agent touching your local files" (data-leakage surface vs host-operation surface).
But the README does not discuss data permissions or isolation.
- 适合什么任务Best for
适合:把外部数据接进来做检索问答。
- 核心任务是把外部数据源(API / PDF / 文档 / SQL)接进来做检索与问答
- 需要 300+ 现成集成里的某一个
- 团队是 Python 栈
- 明确要用 LlamaParse 的解析能力(那走商业平台)
不太适合三种情况。
- 需要 agent 在自己项目目录里读写文件并跑命令 —— 那是 Deep Agents 那一类「工作区文件系统」
- 需要明确的沙箱与权限边界 —— 官方框架文档无此类机制
- 需要「关机后托管续跑」—— 走 LlamaAgents 平台侧
A fit: bringing external data in for retrieval-augmented Q&A.
- The core task is ingesting external data sources (APIs / PDFs / docs / SQL) for retrieval and Q&A
- You need one of the 300+ ready-made integrations
- The team is on the Python stack
- You explicitly want LlamaParse's parsing capabilities (that goes through the commercial platform)
Not a fit in three situations.
- You need an agent to read/write files in your own project directory and run commands — that is the Deep Agents class of "workspace file system"
- You need explicit sandboxing and permission boundaries — the official framework docs have no such mechanisms
- You need "hosted continuation after shutdown" — that goes through the LlamaAgents platform side
头号误解Top misconception
- 看到 52k★ 就以为是「一个活跃的编排框架」—— 官方首屏已声明 primary focus 转向文档解析Reading 52k★ as "an actively developed orchestration framework" — the official front page states the primary focus has shifted to document parsing
- 以为 workflow / agent 编排在 OSS 里 —— README 把 Workflows 写在商业平台 LlamaAgents 那一节Assuming workflow / agent orchestration lives in the OSS — the README puts Workflows in the section about the commercial LlamaAgents platform
- 把 LlamaIndex 的「data connectors」与 Deep Agents 的「filesystem」混为一谈 —— 前者是数据源接入与解析,后者是 agent 的工作区文件操作Conflating LlamaIndex's "data connectors" with Deep Agents' "filesystem" — the former is data-source ingestion and parsing, the latter is an agent's workspace file operations
- 把 LlamaParse 当免费开源件 —— 它是商业平台,需注册取 keyTreating LlamaParse as a free open-source component — it is a commercial platform and you must sign up for a key
- 以为 300+ 集成等于都同等可靠 —— 官方原话 work seamlessly,本站未做端到端实测对齐度Reading 300+ integrations as equally reliable — the official wording is "work seamlessly"; this site has not measured how well they align
- 没注意 README 自己写的 NOTE —— 原文"This README is not updated as frequently as the documentationMissing the NOTE the README writes about itself — "This README is not updated as frequently as the documentation"
未知项清单Known unknowns
- 300+ 集成包的官方 vs 社区比例与维护活跃度分层
- 检索结果的端到端上下文裁剪行为(合成模式已有官方文档,实际行为待实测)
- LlamaParse 的 credits 换算口径(官方只给单价,不给每页消耗)
- LiteParse 与框架的集成方式
- TypeScript 版的能力对齐度
- README 自己声明更新频率低于文档 —— 细节需查文档站而非 GitHub
- The official-vs-community ratio of the 300+ integration packages and the maintenance-activity tiering
- End-to-end context trimming of retrieval results (synthesis modes are officially documented; actual behaviour awaits measurement)
- LlamaParse's credits conversion basis (the official page gives unit prices but not per-page consumption)
- How LiteParse integrates with the framework
- Capability alignment of the TypeScript version
- The README itself states it is updated less often than the docs — details require checking the docs site rather than GitHub
证据来源Evidence sources
判断可回到以下一手源复核。本站核验日Every judgement can be rechecked against the primary sources below. Verified on 2026-10-23,内容更新日content updated on 2026-10-01。
| 类型Type | 名称Name | 链接Link |
|---|---|---|
| repo | run-llama/llama_index · 仓库(52,625★,MIT,滚动核验 2026-10-23)run-llama/llama_index · repository (52,625★, MIT, rolling re-check 2026-10-23) | https://github.com/run-llama/llama_index |
| docs | 主 README(首屏 NOTE 战略声明、两个安装档位与命名空间规则、LlamaParse 商业段、Proposed Solution 四条)Main README (front-page NOTE strategic statement, the two install tiers and namespace rule, the LlamaParse commercial section, the four Proposed Solution items) | https://github.com/run-llama/llama_index/blob/main/README.md |
| docs | 官方文档 · LlamaIndex Framework(README 指向)Official docs · LlamaIndex Framework (pointed to by the README) | https://developers.llamaindex.ai/python/framework/ |
| docs | 官方文档 · LlamaAgents(Workflows / Agent Builder,商业平台侧)Official docs · LlamaAgents (Workflows / Agent Builder, commercial-platform side) | https://developers.llamaindex.ai/python/llamaagents/overview/ |
| docs | LlamaParse 商业平台(README 称其为 enterprise platform)LlamaParse commercial platform (the README calls it an enterprise platform) | https://cloud.llamaindex.ai |
| pricing | LlamaParse 官方定价页(Free/Starter/Pro 三档 credits 额度与加购上限;报价按本站的报价记录约定不存;LiteParse 免费 OSS,核验 2026-10-01)LlamaParse official pricing page (Free/Starter/Pro credit quotas and add-on caps; prices not stored per our price-recording policy; LiteParse is free OSS, verified 2026-10-01) | https://www.llamaindex.ai/pricing |
| repo | run-llama/liteparse · 免费快速文本解析器(官方另立项目)run-llama/liteparse · free fast text parser (a separate official project) | https://github.com/run-llama/liteparse |
| changelog | Releases(v0.14.25 @ 2026-09-21)Releases (v0.14.25 @ 2026-09-21) | https://github.com/run-llama/llama_index/releases |
| docs | 官方文档 · Workflows(llama_index.core.workflow 仍在 OSS core,核验 2026-10-08)Official docs · Workflows (llama_index.core.workflow still in OSS core, verified 2026-10-08) | https://developers.llamaindex.ai/python/framework/module_guides/workflow/ |
| docs | 官方文档 · MCP(llama-index-tools-mcp 消费 MCP、Workflow 转 MCP server)Official docs · MCP (llama-index-tools-mcp consumes MCP; Workflow-to-MCP-server) | https://developers.llamaindex.ai/python/framework/module_guides/mcp/llamaindex_mcp/ |
| docs | 官方文档 · Response Synthesizers(compact/refine/tree_summarize 的窗口装箱与摘要)Official docs · Response Synthesizers (compact/refine/tree_summarize window packing and summarization) | https://developers.llamaindex.ai/python/framework/module_guides/querying/response_synthesizers/ |
| docs | 官方文档 · SimpleDirectoryReader(本地目录读取、fsspec 远程文件系统)Official docs · SimpleDirectoryReader (local directory reading, fsspec remote file systems) | https://developers.llamaindex.ai/python/framework/module_guides/loading/simpledirectoryreader/ |
| docs | 官方文档 · 社区集成(300+ 集成包被归为 community integrations)Official docs · community integrations (the 300+ packages are classed as community integrations) | https://developers.llamaindex.ai/python/framework/community/integrations/ |
实测记录Measured runs
本档未跑集成与性能实测;结论只覆盖 API 与官方文档披露的能力面。
实测建议(按「战略是否真的转移」这个问题定制):
| # | 测什么 | 为什么值得测 |
|---|---|---|
| 1 | 装 llama-index-core 后核对 llama_index.core.workflow 的 API 形态与版本 | 官方文档已明示仍在 core;实测确认可用的编排面 |
| 2 | 用 Starter 档跑一个「文档→ 检索问答」最小闭环 | 判断它现在的核心体验是否顺畅 |
| 3 | 数据接入的实际覆盖面(本次挑 PDF + SQL 各一种) | 「300+ 集成」与「API/PDF/docs/SQL」是两回事,要测具体那几个 |
| 4 | 换非OpenAI provider 后的检索质量与结构化输出 | 官方说 work seamlessly,需验证 |
| 5 | 检索结果在长文档下的上下文裁剪行为(合成模式已官方文档化) | 实际行为待实测 |
| 6 | 对比 LlamaIndex OSS 与 LlamaParse 的实际差距 | 官方自己说 focus 已转移,差距有多大要亲自看 |
This site has not completed measured runs. The test protocol is at protocols/framework/_protocol.md.
Suggested measurement (tailored to the question "has the strategy really shifted"):
| # | What to test | Why it is worth testing |
|---|---|---|
| 1 | After installing llama-index-core, check the API shape and version of llama_index.core.workflow | The official docs already state it is still in core; measurement confirms the usable orchestration surface |
| 2 | Run a minimal "documents → retrieval Q&A" loop on the Starter tier | Judge whether its current core experience is smooth |
| 3 | Actual coverage of data ingestion (this time pick one PDF + one SQL) | "300+ integrations" and "API/PDF/docs/SQL" are different claims — test the concrete ones |
| 4 | Retrieval quality and structured output after switching to a non-OpenAI provider | The official page says work seamlessly; that needs verification |
| 5 | Context trimming of retrieval results on long documents (synthesis modes are officially documented) | Actual behaviour still awaits measurement |
| 6 | Compare LlamaIndex OSS vs LlamaParse in practice | The vendor itself says focus has shifted; how big the gap is needs a first-hand look |
两个安装档位:它少见的清晰之处Two install tiers: a clarity that is rare among frameworks
README 给的两种起步方式,比很多框架都清楚。
| 档位 | 包 | 适合 |
|---|---|---|
| Starter | llama-index | 核心 + 一批常用集成,想省事 |
| Customized | llama-index-core | 只装核心,按需从集成页挑 |
命名空间规则值得记(README 代码示例):
from llama_index.core.xxx import ClassABC # 带 .core = 核心
from llama_index.xxx.yyy import SubclassABC # 不带 = 集成包
⚠ 一个定位缺口:README 里没有 CLI 启动命令、没有 Web UI、没有容器部署示例。
对比一下同分区收录的其它对象:
- Google ADK —— 有
adk deploy docker与cloud_run - OpenHands —— 四种部署形态
结论:LlamaIndex 是库,不是平台。
The two starting paths the README gives are clearer than many frameworks'.
| Tier | Package | Suits |
|---|---|---|
| Starter | llama-index | Core plus a bundle of common integrations, for convenience |
| Customized | llama-index-core | Core only, then pick from the integrations page as needed |
The namespace rule is worth remembering (README code example):
from llama_index.core.xxx import ClassABC # with .core = core
from llama_index.xxx.yyy import SubclassABC # without = an integration package
⚠ One positioning gap: the README has no CLI launch command, no Web UI, no container deployment example.
Compare with other objects filed in the same section:
- Google ADK — has
adk deploy dockerandcloud_run - OpenHands — four deployment forms
Conclusion: LlamaIndex is a library, not a platform.
300+ 集成:优势也是维护负担300+ integrations: the strength is also the maintenance burden
⚠ 官方原话是 "work seamlessly"。 本站未做端到端实测,无法判断跨 provider 的能力对齐度。
选型时不能只看包名存在,还要看那个集成包的维护状态与 issue。
⚠ The official wording is "work seamlessly." This site has not measured cross-provider capability alignment for any of them.
When choosing, do not just check that a package name exists — also check that integration package's maintenance status and issues.
最需要区分的一处:数据接入 ≠ agent 文件操作The distinction that matters most: data ingestion ≠ agent file operations
这是本站认为最容易被误读的地方。
| 对象 | 能力 | 性质 |
|---|---|---|
| LlamaIndex | data connectors 接入 API / PDF / docs / SQL,解析、索引、检索 | 数据源层 |
| Deep Agents | filesystem,agent 在工作区里读写文件 | 工作区层 |
两者都叫「文件相关」,但完全不是一回事。
选型时先问自己是哪一种:
- 要「把一堆文档变成可检索的知识库」
- 要「让 agent 在我的项目目录里干活」
This is the spot this site thinks is most easily misread.
| Object | Capability | Nature |
|---|---|---|
| LlamaIndex | data connectors ingest APIs / PDFs / docs / SQL; parsing, indexing, retrieval | Data-source layer |
| Deep Agents | filesystem; the agent reads/writes files in a workspace | Workspace layer |
Both get called "file-related", but they are completely different things.
When choosing, first ask which one you need:
- "Turn a pile of documents into a retrievable knowledge base"
- "Let an agent work inside my project directory"
上下文维度:它管「获取」,摘要机制另有官方文档The context dimension: it handles "acquisition"; the summarization mechanism has its own docs
官方把框架定位成 "data framework"。
核心是 structure your data(indices, graphs)。 再加 retrieval/query interface。
本站的判断(推断):它解决的是「把外部数据变成可检索的上下文」——
在本站的坐标系里属于上下文获取层。
已知:检索结果怎么塞进上下文窗口,官方有明确回答。
机制是 Response Synthesizer,四种模式见 context 维度。
未核验:端到端裁剪行为。README 本身没有压缩 / 摘要机制的表述。
The official docs position the framework as a "data framework".
The core is structure your data (indices, graphs). Plus a retrieval/query interface.
This site's judgement (inference): what it solves is "turning external data into retrievable context" —
in this site's coordinate system that belongs to the context-acquisition layer.
Known: how retrieval results get packed into the context window has a clear official answer.
The mechanism is the Response Synthesizer; the four modes are in the context dimension.
Not verified: end-to-end trimming behaviour. The README itself has no statement about compression / summarization mechanisms.
权限维度:README 里连一个名词都没有The permissions dimension: the README does not even name the concept
这是本站明确的重大信息缺口。 对照同分区的其它三个:
| 对象 | 权限机制 | 来自 |
|---|---|---|
| Google ADK | Tool Confirmation(HITL) | README 明文 |
| LangGraph | interrupts(可检查并修改状态) | README 明文 |
| CrewAI | guardrails(只有名字) | 配置项清单 |
| LlamaIndex | 无 | README 全文无相关表述 |
⚠ 一个补充判断:它的主战场是文档解析与 RAG。
它处理的通常是用户上传的数据。
这个风险面与「agent 动你本地文件」性质不同(数据泄露面 vs 主机操作面)。
但 README 未讨论数据权限与隔离。
This is a gap this site states explicitly. Compared against the other three in the same section:
| Object | Permission mechanism | Source |
|---|---|---|
| Google ADK | Tool Confirmation (HITL) | README, explicit |
| LangGraph | interrupts (state inspectable and modifiable) | README, explicit |
| CrewAI | guardrails (name only) | config-option list |
| LlamaIndex | None | No related wording anywhere in the README |
⚠ One supplementary judgement: its main battleground is document parsing and RAG.
What it handles is usually user-uploaded data.
That risk surface differs in nature from "an agent touching your local files" (data-leakage surface vs host-operation surface).
But the README does not discuss data permissions or isolation.
核验说明Verification notes
为什么仍是 confidence: partial。
判定依据是 2026-10-08 更新。
原三项「为什么不是 verified」已全部核实并写进维度:
- ① OSS 侧编排仍在(
llama_index.core.workflow,官方框架文档) - ② 权限维度(官方未给沙箱 / 权限收敛机制,结论见 permissions 维度)
- ③ MCP 支持(官方
llama-index-tools-mcp,含 SSE / HTTP / stdio)
confidence 是否升级由上层批次统一裁定,仅更新维度与说明。
已核验(存量):
- 仓库存在与星数(52,625 · 滚动核验 2026-10-23)
- 许可(MIT,经license API)
- 最近推送(2026-10-21,仍活跃)
- 最新版 v0.14.25(releases @ 2026-09-21;2026-10-23 滚动核验时主包无新版本)
README 全文 223 行,覆盖:
- 首屏 NOTE 战略声明全文
- 两个安装档位与命名空间规则
- LlamaParse 商业段七条
- Proposed Solution 四条、Overview 段
- 以及 README 自己声明的 "not updated as frequently as the documentation"
未核验:
- 300+ 集成包的质量与维护分层
- 本地模型经 LiteParse 的集成方式
- 检索结果的端到端上下文裁剪行为
- LlamaParse 的 credits 换算口径(每页消耗未公开)
Why it is still confidence: partial.
The basis is the 2026-10-08 update.
All three original "why not verified" items have been checked and written into the dimensions:
- ① Orchestration is still on the OSS side (
llama_index.core.workflow, official framework docs) - ② Permissions dimension (the official docs give no sandbox / permission-convergence mechanisms; conclusion in the permissions dimension)
- ③ MCP support (official
llama-index-tools-mcp, including SSE / HTTP / stdio)
Whether confidence gets upgraded is decided uniformly by the upper-level batch; the 2026-10-08 check only updates dimensions and notes.
Verified (standing record):
- Repository existence and star count (52,625 · rolling re-check 2026-10-23)
- Licence (MIT, via the license API)
- Latest push (2026-10-21, still active)
- Latest version v0.14.25 (releases @ 2026-09-21; no new main-package version at the 2026-10-23 rolling re-check)
The README is 223 lines in total, covering:
- The full front-page NOTE strategic statement
- The two install tiers and the namespace rule
- The seven items of the LlamaParse commercial section
- The four Proposed Solution items, the Overview paragraph
- And the README's own note: "not updated as frequently as the documentation"
Not verified:
- Quality and maintenance tiering of the 300+ integration packages
- How local models integrate via LiteParse
- End-to-end context trimming of retrieval results
- LlamaParse's credits conversion basis (per-page consumption not published)
相关条目Related entries
- LangGraphLangGraph编排家族对照,也最能说明「转向」问题 LangGraph 把状态持久化做在核心(每 superstep checkpoint),且完全 OSS LlamaIndex 的 Workflows 同样仍在 OSS core 差别在公司投入的重心,不在代码归属Orchestration-family contrast, and the one that best illustrates the "pivot" question LangGraph builds state persistence into its core (a checkpoint every superstep), and is fully OSS LlamaIndex's Workflows are likewise still in OSS core The difference is where the company invests, not where the code lives
- Google ADKGoogle ADK(Agent Development Kit)同为编排家族,但给的东西不同 ADK 给的是 agent 工作流的图执行引擎 + 三种部署命令 LlamaIndex 给的是数据接入与检索 两者都不是「谁能接 300+ 集成」这一格Same orchestration family, but they give different things ADK gives a graph execution engine for agent workflows + three deployment commands LlamaIndex gives data ingestion and retrieval Neither one occupies the "who can connect 300+ integrations" cell
- CrewAICrewAI同为编排框架,抽象中心不同 Crew 角色协作 / Flow 事件驱动 vs 数据管线与检索Also an orchestration framework, different centre of abstraction Crew role collaboration / Flow event-driven vs data pipelines and retrieval
- Deep AgentsDeep Agents最需要区分的一对 Deep Agents 的 filesystem 是 agent 工作区文件操作 LlamaIndex 的 data connectors 是数据源接入与解析,两者常被混为一谈The pair that most needs distinguishing Deep Agents' filesystem is agent workspace file operations LlamaIndex's data connectors are data-source ingestion and parsing; the two are often conflated
- Knowledge Graph Memory ServerKnowledge Graph Memory Server另一层 · MCP 工具Other layer · MCP tools
本页由This page is generated from the ai-handbook 数据层生成(CC BY 4.0)。data layer (CC BY 4.0).
方法论与坐标系定义见仓库内For the methodology and coordinate definitions, see METHODOLOGY.md.