Jerry Liu· @jerryjliu0 · X·· 7 天前精选AI 评分73
AI 导读
据引用帖子称,LlamaIndex 团队开源了可在本地 CPU 运行的文档解析器 LiteParse,支持 PDF、Office 文档及图像,文本解析速度约为每页 2-5 毫秒。该工具内置 8.1M 参数的微型 OCR 模型,在 ParseBench-2 上表现优于 Marker 和 Indra。作者 Jerry Liu 认为 LiteParse 结合 ocria-nano-1 可实现无限制的 PDF 解析。
推荐理由
提供了本地解析的性能数据与安装方式,可供构建 RAG 管道的开发者评估其替代付费 API 的可行性。
正文 · 原文
liteparse + ocria-nano-1 == unlimited pdf parsing
The LlamaIndex team just open-sourced a PDF parser, and it's stupidly fast 😳 LiteParse parses PDFs and office docs locally on your own machine. No LLM, no cloud, no API key. Text parsing takes about 2-5 milliseconds per page, so your RAG pipeline stops waiting on documents. The list of what it supports is kind of ridiculous: PDF Word, Excel, PowerPoint Images Built-in Tesseract OCR Its own tiny CPU OCR model (8.1M params) PaddleOCR or EasyOCR via HTTP Markdown, JSON and plain text output Bounding boxes for every piece of text Page screenshots for AI agents Python, Node.js, Rust and the browser (WASM) Why is this worth bookmarking? Most RAG setups send every PDF to a paid parsing API, or use a slow parser that mangles tables and layouts. LiteParse runs entirely on CPU. It can even check how complex a document is before parsing it, so the hard files can go to heavier tools and the easy ones fly through. With its optional OCR model, it beats Marker and Indra on ParseBench-2 while handling about 28 pages per second on CPU. Already at 13.2K stars. Install is dead simple: pip install liteparse Then: lit parse document.pdf --format markdown -o output.md If you build RAG, knowledge bases or document AI, bookmark this one. GitHub: https://t.co/uWEpN2Kbst #LiteParse #LlamaIndex #RAG #PDF #OCR #LLM #OpenSource在 X 查看被引用的帖子
来源:Jerry Liu · x.com