Citation and evidence

OCRia-nano-1

Report a problem with this article

Edit article
More

Use this article

Raw MarkdownExplore connections

Improve this page

Revision historyDiscuss this article

Topics

AI ModelsComputer VisionDeveloper Tools

Cite this article

OCRia-nano-1 is a document-parsing pipeline from LlamaIndex, released on November 23, 2026. Its seven learned components total approximately 8.1 million parameters and run on a CPU through LiteParse. It combines optical character recognition with table and page-layout recovery, producing structured document content for applications such as retrieval-augmented generation.[1] The downloadable weights have a restricted model license; LiteParse's separate software license is Apache 2.0.[6][7]

Architecture and document processing

OCRia-nano-1 is a collection of cooperating models rather than a single conversational language model. The released package identifies a detector, a script router, four text recognizers, and LayoutNet. Its configuration names the individual ONNX files and supplies LayoutNet in ONNX and binary forms.[4]

ComponentPublished approximate parametersFunction
Line detector0.08MLocate text lines
Script router0.04MSelect a recognizer and identify upside-down lines
Latin recognizer0.80MRecognize Latin-script text
CJK recognizer1.27MRecognize Chinese, Japanese and Korean text
Right-to-left recognizer0.71MRecognize Arabic and Hebrew text
World-script recognizer0.98MRecognize approximately 17 additional scripts
LayoutNet4.27MRecover tables and layout blocks

Expanded article table

These rounded counts follow the model card. LayoutNet uses six transformer layers with an image-processing branch; its outputs cover table relationships and 13 layout classes.[2]

LiteParse first extracts usable native PDF text and positions. OCR supplies text missing from that layer, after which the pipeline combines recognized and native text with learned structure recovery.[1] The recognizers use connectionist temporal classification, or CTC.[2] CTC learns label sequences without requiring a separate training alignment for each character position; it was introduced for unsegmented sequence labelling, rather than free-form language generation.[12]

The models were distilled using OCRia-1 to generate training transcriptions, table annotations and layout labels.[1]

Local use and deployment

LiteParse provides a Rust engine with Python, Node.js/TypeScript and browser bindings. Its native packages support Linux, macOS and Windows. It can extract document text and bounding boxes without calling a hosted language model.[5]

The OCR configuration guide documents installation and explicit backend selection:[8]

pip install liteparse
lit models pull ocria-nano
lit parse document.pdf --format markdown

Pulling the package downloads the models and ONNX Runtime and checks their hashes. Once installed, ocria-nano becomes the default OCR backend. A single run can select Tesseract with --ocr-backend tesseract. The documentation estimates a 60-75 MB installation including the runtime, rather than describing that number as model parameters or RAM usage.[8]

With Nano selected, pages render at 250 DPI unless overridden. Script selection is automatic, so --ocr-language does not choose its recognizer. LayoutNet still runs when OCR is disabled with --no-ocr, allowing learned structure recovery from native text. An offline installation can use lit models pull ocria-nano --from <dir> with previously downloaded package files.[8]

File formats and output

The native LiteParse pipeline handles PDF and image input. Office documents, including DOCX, XLSX and PPTX, are converted to PDF through LibreOffice before parsing. Images are converted using Rust libraries. Office-file support therefore depends on the surrounding converter, rather than being a separate native input modality of each Nano model.[9]

The output can be Markdown, plain text or JSON. Markdown reconstructs headings, lists and tables; JSON retains text locations. Running page headers and footers are omitted from Markdown by default, with a setting to retain them.[2][10] Image handling is configurable: placeholders are the default, while other modes remove image references or extract image files. Markdown output aims to recover document structure, rather than reproduce a page's exact appearance.[10]

Browser use

The WebAssembly package can run Nano locally in a browser without a server or native ONNX Runtime. Applications load the models once and can reuse them across parsers. Downloads can be restricted to selected script recognizers, and LayoutNet can be omitted when table and layout reconstruction is unnecessary.[11]

Browser support has different boundaries from native LiteParse: input is a byte array rather than a filesystem path, Office conversion through LibreOffice is unavailable, and the WASM build does not generate screenshots. Built-in Tesseract and the native HTTP OCR backend are also unavailable there; Nano or a JavaScript OCR callback supplies recognition.[11]

Reported evaluation results

LlamaIndex's November 2026 technical report evaluates the complete parsing pipeline. The following CPU results were produced by its authors, using each benchmark's designated scoring setup:[3]

CPU pipelineParseBench-2OmniParseBencholmOCR-bench
LiteParse with Tesseract48.742.345.7
Indra 1.1.255.170.960.8
Marker 2.2.0, fast mode52.569.860.8
LiteParse with OCRia-nano-159.274.860.9

Expanded article table

The report uses ParseBench-2 v2.07 with the official scorer.[3]

The benchmark's academic description covers text, formatting, tables, charts, visual grounding and forms across 4,317 pages. The scoring combines content recovery with an error-severity cap, so retaining most words cannot conceal a serious changed fact or broken table relationship. Its overall score is a benchmark aggregate, not a claim that the parser reads that percentage of all documents correctly.[13]

Speed measurements

Speed tests used 300 ParseBench-1 pages, 16 single-core workers in a 16-vCPU container, and five cloud hosts. Mean throughput was 27.8 pages per second; warm single-core latency averaged 426 ms, with a 90th percentile of 862 ms.[3]

These figures measure the complete pipeline on a defined workload. Indra's throughput was higher, at 29.6 pages per second.[3]

Limitations and model choice

Nano has no chart-understanding model and retains charts as images instead of reconstructing their data. LlamaIndex recommends its larger OCRia models for difficult tables, handwriting, heavily degraded scans and scanned mathematical notation.[1] Local execution and a small download do not establish that a document has been transcribed accurately.

The report identifies handwriting and scripts with limited training data as weaknesses, and reports no equation recovery in its scanned-mathematics test category.[3] Recognition errors can affect later search, analysis or model use even when an output file has usable structure.

Model and software licensing

The OCRia-nano-1 Model License is based on a modified AI Pubs Open RAIL-M license. It covers the weights and specified accompanying configuration, metadata and code. LiteParse is explicitly excluded from those licensed materials and retains its Apache 2.0 license.[6][7]

The model license provides for personal use and defined research purposes. It restricts other use when the user, employer or affiliated entity had more than US$2 million in gross revenue in the previous year, or raised more than US$2 million in total equity or debt funding. A competing document-parsing, OCR or extraction product or service is restricted regardless of those thresholds, except for research purposes. LlamaIndex offers separate licensing for restricted uses.[6]

Redistribution carries attribution and notice requirements, and model derivatives must use the same license. The licensor claims no rights in generated outputs, subject to the agreement's use restrictions; using outputs to create model derivatives is restricted to research purposes. The software and runtime dependencies retain their own licenses.[6] Describing the weights as open for download therefore does not make them unrestricted open-source software.

Continue reading

More to read

Topics:AI ModelsComputer VisionDeveloper Tools

References

  1. ^1 ^2 ^3 ^4Markewich, Logan, and Gauthami Polasani. Introducing OCRia-nano-1. LlamaIndex, November 23, 2026.
  2. ^1 ^2 ^3LlamaIndex. OCRia-nano-1 model card. Revision 53d45fe6803a568deedb081550c2fdb97cc99f97; accessed November 25, 2026.
  3. ^1 ^2 ^3 ^4 ^5Markewich, Logan, and Simon Suo. OCRia-nano-1: Fast, Accurate CPU Parsing with 8.1M Parameters. Technical report, November 2026, especially Tables 3-5 and 9 and Appendix C.
  4. ^LlamaIndex. OCRia-nano-1 package configuration. Accessed November 25, 2026.
  5. ^LlamaIndex. LiteParse repository and README. Accessed November 25, 2026.
  6. ^1 ^2 ^3 ^4LlamaIndex. OCRia-nano-1 Model License. Accessed November 25, 2026.
  7. ^1 ^2LlamaIndex. LiteParse Apache License 2.0. Accessed November 25, 2026.
  8. ^1 ^2 ^3LlamaIndex. OCR Configuration. Developer documentation, accessed November 25, 2026.
  9. ^LlamaIndex. Multi-Format Support. Developer documentation, accessed November 25, 2026.
  10. ^1 ^2LlamaIndex. Markdown Output. Developer documentation, accessed November 25, 2026.
  11. ^1 ^2LlamaIndex. Browser Usage (WASM). Developer documentation, accessed November 25, 2026.
  12. ^Graves, Alex, Santiago Fernandez, Faustino Gomez, and Jurgen Schmidhuber. Connectionist Temporal Classification: Labelling Unsegmented Sequence Data with Recurrent Neural Networks. Proceedings of ICML, 2006, pp. 369-376.
  13. ^Doulcet, Pierre-Loic, et al. ParseBench-2: Severity-Aware Evaluation of Document Parsing. arXiv:2611.17400, November 12, 2026.

Improve this article

Add missing citations, update stale details, or write a clearer explanation. Anyone can edit: changes go live when you publish, and every edit is checked by an editor.

1 revision · v1 · 1,367 words · full history

Fact-checks are independent of edits: a reviewer re-verifies the article against its sources and stamps the date. How we verify

Research and drafting on this wiki are AI-assisted, under named human editorial standards. How AI is used here

Cite this page: AI Wiki. "OCRia-nano-1." aiwiki.ai, updated 25 Nov 2026. CC BY 4.0. https://aiwiki.ai/wiki/ocria_nano_1

Edit article

What links here