Description
OCRia-nano-1 is an advanced 8.1-million-parameter model pipeline developed by LlamaIndex, specifically engineered for robust document parsing on CPU environments. It represents a significant distillation from the larger OCRia-1, achieving comparable performance with a fraction of the parameters (1/500th), making it highly efficient for local deployments.
Read More
The model operates by pairing a sophisticated detector-recognizer OCR stack with LayoutNet, a specialized model for joint table and layout analysis. This integrated system runs within LiteParse, an open-source local document parser, enabling comprehensive extraction of information from various document types. OCRia-nano-1 demonstrates superior accuracy, scoring 59.2 on ParseBench-2, outperforming other CPU parsers like Indra (55.1) and Marker (52.5), and significantly improving LiteParse's performance from 48.7 with Tesseract.
Beyond accuracy, OCRia-nano-1 offers impressive speed, processing 27.8 pages per second on a 16-vCPU setup, or 426 milliseconds per page on a single core, which is twice as fast as LiteParse with Tesseract. Its LayoutNet component is adept at identifying tables, including rows, columns, and spanning header cells, and classifying layout blocks such as headings, lists, captions, and page headers/footers on both scanned and born-digital documents.
The model features a script router that intelligently directs each text line to one of four specialized recognizers: Latin, CJK (Chinese, Japanese, Korean), right-to-left scripts (Arabic, Hebrew), and a world-script model covering approximately 17 additional scripts. This multilingual capability ensures broad applicability across diverse document sets.
OCRia-nano-1 is designed for CPU runtime and is compatible with LiteParse across various platforms, including the CLI, Python, and Node.js on Linux, macOS, and Windows, as well as browser and edge runtimes via WebAssembly. It processes inputs such as PDFs, images, and Office documents (through LiteParse's conversion), rendering pages at 250 DPI for optimal OCR. The output can be generated in LiteParse's Markdown, plain text, or JSON formats, providing structured content including tables, headings, lists, and layout blocks with bounding boxes and OCR confidence scores.
- CategoryAI Models & LLMs
- Pricing ModelOpen source
- DeploymentCPU, WebAssembly
- PlatformsLinux, macOS, Windows
OCRia-nano-1 Highlights
8.1M-parameter model pipeline for document parsing
Detector-recognizer OCR stack for text extraction
LayoutNet for joint table and layout analysis
Runs on CPU within LiteParse framework
High accuracy: 59.2 on ParseBench-2
Fast processing: 27.8 pages per second on 16 vCPUs
Identifies tables, rows, columns, and spanning header cells
Classifies layout blocks: headings, lists, captions, page headers/footers
Multilingual script router: Latin, CJK, RTL (Arabic, Hebrew), and 17+ world scripts
Supports PDF, image, and Office document inputs
Outputs Markdown, text, or JSON with bounding boxes
Compatible with Linux, macOS, Windows, browser, and edge runtimes
Distilled from OCRia-1 with 1/500th of its parameters
Open-source local document parser integration
Getting Started with OCRia-nano-1
Install LiteParse: Use pip install liteparse, npm i -g @llamaindex/liteparse, or cargo install liteparse to set up the parser.
Pull models: Run lit models pull to download OCRia-nano-1 files, ONNX Runtime, and verify file integrity.
Process documents (Python): Integrate LiteParse into your Python application to use OCRia-nano-1 as the default OCR backend.
Process documents (Node.js): Utilize LiteParse within Node.js projects for document parsing with OCRia-nano-1.
Process documents (WebAssembly): Deploy OCRia-nano-1 in browser and edge runtimes via WebAssembly for client-side parsing.
Configure output: Specify output format (Markdown, text, JSON) and options like --keep-headers-footers or --extract-blocks for detailed content.
OCRia-nano-1's Use Cases
- Document Digitization
- Data Extraction
- Multilingual OCR
- Local Document Processing
- Structured Content Generation
- Research and Development










