最后更新:10/20/2026最后核验:2026-09-23
LiteParse 是什么
LiteParse 是 LlamaIndex 推出的开源、本地优先文档解析库和命令行工具。它可将 PDF、Office 文档和图像转换为空间定位文本及结构化 Markdown,同时保留边界框、图像、注释和表单字段等信息。LiteParse 支持 Node.js、TypeScript、Python、Rust,以及基于浏览器 WebAssembly 的工作流。
核心功能
- 将 PDF、Office 文档和图像解析为文本及结构化 Markdown
- 通过边界框和文档元素位置保留空间上下文
- 提取嵌入式图像、矢量图形、注释、表单字段和带标签的 PDF 结构
- 扫描件可使用内置 Tesseract OCR 或配置自己的 OCR server。
- 在路由处理前检测文档复杂度,包括扫描页面、多栏页面和表格密集型页面
- 为 Node.js、TypeScript、Python、Rust 及基于浏览器的 WASM 应用提供命令行和库 API
- 采用本地优先架构,适合需要在本地处理文档的工作流
- 官网明确列出 PDF、DOCX、XLSX、PPTX、PNG、JPG;部分格式通过自动转换处理。
最适合
构建文档摄取或检索流水线的开发者需要从 PDF 和 Office 文件中获取空间定位文本的 AI 研究工作流使用 OCR 和页面复杂度检测处理扫描文档从表单、注释、带标签的 PDF 及图像丰富型文档中提取结构化内容开发跨语言或基于浏览器的文档解析应用的团队需要可重复执行本地文档转换的命令行工作流
定价
LiteParse 采用 Apache-2.0 开源许可证,可在本地运行,无需云服务或 API key。外部 OCR 服务、设备资源或另购支持不属于软件许可证包含的免费服务。
优缺点
优点
- 采用开源、本地优先的方案
- 支持 PDF、Office 文档和图像
- 生成空间定位文本和结构化 Markdown
- 除纯文本外,还能提取丰富的文档元素
- 内置 OCR 和文档复杂度检测功能
- 覆盖 Node.js、TypeScript、Python、Rust 及基于浏览器的 WASM,提供相应 API 和工具
缺点
- CLI 和库的部署、集成需要开发者配置。
- 表格、多栏、表单和扫描件的实际提取质量仍需用自有文件验证;本文未做准确率或性能实测。
- 浏览器 WASM 与原生环境不应假定完全等效,采用前检查当前浏览器文档和依赖。
常见问题
详情
平台
网页版macOSWindowsLinux
功能特性
- Parses PDFs, Office documents, and images into spatially grounded text and structured Markdown
- Extracts bounding boxes, embedded images, vector graphics, annotations, form fields, and tagged PDF structures
- Runs built-in or external OCR and detects scanned, multi-column, table-heavy, and otherwise complex pages before routing
- Provides CLI and library APIs for Node.js/TypeScript, Python, Rust, and browser-based WASM workflows
支持语言
en
已知限制
- LiteParse runs locally and does not add cloud models or LLM reasoning, so complex documents can require routing to a more advanced parsing pipeline
- OCR quality and support depend on the configured built-in Tesseract or external OCR server
- Document-complexity scoring identifies difficult layouts but does not itself resolve extraction errors
- The project documentation and primary interfaces are currently English-first
替代工具
LlamaParse — Hosted LlamaIndex parsing platform for more advanced cloud document-processing workflows
MarkItDown — Open-source document-to-Markdown converter with a different extraction and layout focus
Unstructured — Document-ingestion platform with hosted and self-managed processing options








