# Your RAG system can only answer from what it managed to read

> OCRia-nano-1 is LlamaIndex's 8.1M-parameter open-weights parser that runs on a CPU. How it works, its reported numbers, and when to use a bigger model.

- Author: Hashan Jayalath, full-stack and AI lead at Allsopp & Allsopp (https://www.hashanj.com/)
- Published: 2026-11-30
- Updated: 2026-11-30
- Reading time: 5 min
- Topics: OCRia-nano-1, RAG, document parsing, LiteParse, LlamaIndex, OCR for RAG, PDF parsing, ParseBench-2, LLMs in production
- Video: https://www.hashanj.com/videos/ocria-nano-document-parsing.mp4
- Cover image: Dark graphic with the headline "Your AI can only answer from what it could read." on the left. On the right, a card labelled "Example · invoice_0412.pdf · scanned" shows five blurred horizontal lines, not readable text. The footer reads "LlamaIndex OCRia-nano-1 · 23 Nov 2026".
- URL: https://www.hashanj.com/articles/ocria-nano-document-parsing

When a RAG answer is wrong, it is tempting to start with chunking, embeddings or the reranker. I would start earlier: did the parser actually read the page?

On 23 November 2026, LlamaIndex released [OCRia-nano-1](https://www.llamaindex.ai/blog/introducing-ocria-nano-1), an 8.1-million-parameter, open-weights document parser that runs on a CPU. They present it as a "default first pass" for document collections, with larger vision models kept for the hardest pages.

## What the short film is showing

The film on this page is an illustration. The invoice is labelled Example and named invoice_0412.pdf, and it is made up, not a real document or a model run. The 8.1 million parameters and 426 milliseconds per page in the film are LlamaIndex's own reported figures, and the film marks them as such.

The scanned page starts as blurred lines and then becomes readable text. The film's point is the order of work: most pages are ordinary invoices, contracts, reports and scans, so a small CPU model can be the first pass, and handwriting, charts and bad scans go to a bigger model. It closes with the line I use too: fix the reading before you blame the answers.

## How OCRia-nano-1 reads a PDF inside LiteParse

LiteParse is LlamaIndex's open-source local parser, and it is licensed under Apache 2.0. The [LiteParse docs for OCRia-nano-1](https://developers.llamaindex.ai/liteparse/guides/ocria-nano/) and the announcement describe the pipeline like this:

1. If the file has a usable text layer, LiteParse reads it directly.
2. Where that layer is missing or unreadable, such as scans and embedded images, the OCR models read the text. A script router sends each line to a Latin, CJK (Chinese, Japanese and Korean), right-to-left or world-script recognizer.
3. A table and layout model, LayoutNet, rebuilds tables, headings and lists.
4. You get Markdown, or JSON with bounding boxes and OCR confidence.

The 8.1 million parameters are spread across seven models: a line detector, the script router, the four recognizers, and LayoutNet. The weights are on Hugging Face. You run them through [LiteParse](https://github.com/run-llama/liteparse).

## The reported numbers, and whose they are

The figures below are LlamaIndex's own reported results, from the 23 November announcement and the model card. I have not rerun the benchmarks.

On a single CPU core, they report an average of 426 milliseconds per page, with 90% of measured pages finishing within 862 milliseconds. Those timings include the complete LiteParse pipeline, from text recognition to structure recovery. With 16 single-core workers, they report 27.8 pages per second.

On their ParseBench-2 benchmark, LiteParse with OCRia-nano-1 scores 59.2 overall, including 59.5 on tables, against 48.7 for the same parser with Tesseract.

If you adopt the model, measure it on your own documents. Vendor benches are a starting point, not a substitute for a sample of your own scans and tables.

## Why parsing breaks RAG before retrieval runs

A retriever can only search the text you stored. If a scanned page produced no text, or a table was flattened into one long line, the index is already wrong. No retriever fixes a page that was never read.

I wrote about the retrieval side in [S3 Vectors hybrid search](https://www.hashanj.com/articles/s3-vectors-hybrid-search). That only helps once the page is actually in the index. After the answer is written, I would still [check what the answer cites](https://www.hashanj.com/articles/shellbench-agent-evals). There is [more on LLMs in production](https://www.hashanj.com/articles/topic/ai-llm) on the topic page.

## When to send a page to a bigger model

LlamaIndex's guidance is to use OCRia-nano-1 for everyday documents: digitally generated reports, straightforward contracts, invoices with simple tables, and routine scans. They point to OCRia-1 for complex tables, handwriting, heavily degraded scans, scanned mathematical notation, and chart-to-table extraction. Nano has no chart model and keeps charts as images.

This next part is my view, not a LlamaIndex claim.

I would parse every page with the cheap model first. I would send a page to a bigger model when its OCR confidence is low, or when the page holds handwriting, charts or a degraded scan. The JSON confidence scores give you a signal for that routing, as long as you test the threshold on your own documents.

## The licence check

The model weights are not open source. They are released under a modified Open RAIL-M licence, which LlamaIndex's docs describe as for personal and research use. The full terms are on the [Hugging Face model card](https://huggingface.co/llamaindex/OCRia-nano-1). LiteParse itself stays under Apache 2.0. Read the model licence before you put this in a production pipeline.

## The rule I use

Parse every page with the cheap model first. Inspect the parsed text, and the OCR confidence, before you tune retrieval or blame the model that answers. Send a page to a bigger model when confidence is low or the page has handwriting, charts or a hard scan. Read the model licence before production.

A few questions to ask first:

- Have I inspected a sample of parsed pages, including scans and tables, before I tune chunking or embeddings?
- Do I route low-confidence, handwritten, chart-heavy or badly scanned pages to a larger model?
- If a source page was never read cleanly, does my eval fail the answer?
- Have I read the OCRia-nano-1 licence, not only LiteParse's Apache 2.0 terms?

The figures and product details above come from the [OCRia-nano-1 announcement on 23 November 2026](https://www.llamaindex.ai/blog/introducing-ocria-nano-1), the [LiteParse guide](https://developers.llamaindex.ai/liteparse/guides/ocria-nano/), the [model card on Hugging Face](https://huggingface.co/llamaindex/OCRia-nano-1), and the [LiteParse repository](https://github.com/run-llama/liteparse).

If you want help checking that your document pipeline actually reads the page, [get in touch](https://www.hashanj.com/contact).
