According to Dynamic Beating monitoring, LlamaIndex has announced the open-sourcing of its document parsing library LiteParse, completely rewritten in Rust, with the release of version 2.0. The core parser, after refactoring, has achieved a 100x speedup when processing small documents and nearly a 3x speedup when parsing large documents. The refactoring aims to provide a local, high-speed, and lightweight parsing foundation for AI agents and retrieval-enhanced RAG pipelines, without the need to invoke large models.
LiteParse 2.0 maintains its design for local execution without relying on large models. It integrates a deeply customized branch of PDFium for spatial layout analysis and incorporates the tesseract-rs library for on-device Optical Character Recognition (OCR) capabilities. The tool currently supports PDF and various Office document formats including DOCX, XLSX, and PPTX. The parser projects text into a two-dimensional space based on the document layout, producing structured text that retains positional and layout relationships to provide high-fidelity positioning and context preservation for large models with minimal power consumption.
Regarding ecosystem integration and distribution, LlamaIndex offers native package support across mainstream runtimes. Developers can easily integrate LiteParse into their workflows through Python with pip install liteparse, JavaScript with npm i @llamaindex/liteparse, and Rust via the Cargo repository. Built on Rust at its core, the new version compiles to WebAssembly, enabling local execution capabilities across browsers and edge computing nodes. It is worth noting that due to the constrained runtime environment, OCR functionality in the WebAssembly environment is not built-in, and developers need to inject it through external callbacks (such as invoking tesseract.js) to enable file scanning.
