Datalab Indra OCR: Structured Document Parsing for AI and Automation Pipelines

Datalab Indra OCR Featured 2

Datalab Indra OCR: Structured Document Parsing for AI and Automation Pipelines

TL;DR

Datalab Indra OCR is a compact, CPU first OCR and document parsing model that converts PDFs and images into Markdown, plain text, or structured JSON. It is designed for high volume document ingestion, retrieval augmented generation, search indexing, and AI workflows where speed, low infrastructure cost, and structured output matter.

Unlike traditional OCR tools that mainly return raw text, Indra OCR also detects layout blocks, preserves reading order, identifies headings, lists, tables, captions, footers, and page headers, and returns bounding boxes for lines and blocks. It can read a digital PDF text layer where available and apply OCR only where needed, making it especially efficient for mixed document collections.

Indra OCR is strongest on clean printed documents, simple tables, and common scripts such as Latin, Cyrillic, Greek, Devanagari, Bengali, and Chinese. It is less suitable for handwriting, degraded historical scans, complex merged cell tables, and scripts outside its native OCR support. For those cases, teams should use a higher accuracy model or a managed document intelligence service.

ELI5 Introduction

Imagine you have thousands of PDFs: invoices, contracts, research papers, product catalogs, shipping documents, and scanned reports. A computer cannot automatically understand them because a PDF is often just a picture of words rather than editable text.

OCR, or optical character recognition, is the technology that looks at those pictures and turns the visible words into machine readable text.

Datalab Indra OCR does this job quickly on ordinary computer processors, without requiring expensive graphics cards. It reads a page and produces more than a wall of text. It can say:

  • This is a heading.
  • This is a paragraph.
  • This is a list.
  • This is a table.
  • This is a footnote.
  • This line appears here on the page.
  • This is the correct reading order.

That matters because documents are not just words. A contract has clauses. A research paper has sections and references. An invoice has tables and totals. A catalog has product names, specifications, and prices. If an OCR system loses the structure, downstream software loses meaning.

Indra OCR turns documents into formats that modern software can use:

  • Markdown for clean content and AI retrieval systems
  • Plain text for search indexes
  • JSON with boxes, labels, confidence scores, and layout information for automation workflows

In simple terms, Indra OCR is a fast translator that turns visual documents into structured digital information.

Detailed Analysis

What Is Datalab Indra OCR

Datalab Indra OCR is an open source document parsing and OCR system built around a very small recognition model. The main recognizer contains approximately one million parameters, and the model assets are roughly 18 MB when deployed through ONNX Runtime. It does not require PyTorch, which reduces installation complexity and operational overhead.

The system accepts PDFs and images and returns:

  • Markdown with headings, paragraphs, lists, and tables represented as HTML
  • Plain text arranged in reading order
  • JSON containing line level boxes, layout blocks, block labels, confidence values, rotation details, and timing information

This makes Indra OCR more than a conventional OCR engine. It is a document understanding pipeline designed to prepare unstructured files for downstream systems such as search engines, knowledge bases, compliance platforms, and large language model applications.

Why CPU OCR Matters

Many modern document AI tools depend on GPUs. GPUs can deliver excellent accuracy and speed, but they introduce cost, capacity, and infrastructure challenges. Teams may need GPU clusters, complex scheduling, specialized deployment environments, and careful cost controls.

Indra OCR takes a different approach. It is built for CPU execution, allowing organizations to process documents on standard servers, virtual machines, containers, or local workstations. This is valuable for organizations that already operate CPU based infrastructure or that want to avoid sending sensitive documents to external services.

The practical implication is simple: document processing can become a routine background task rather than a specialized AI workload. A company can ingest supplier catalogs, contracts, invoices, technical manuals, and archived reports without building a GPU pipeline first.

How Indra OCR Works

Indra OCR uses a pipeline that combines several document understanding tasks:

  1. Page preparation: It detects orientation and corrects rotated or slightly skewed pages.
  2. Text layer detection: For digital PDFs, it checks whether a usable text layer exists.
  3. Hybrid extraction: If the text layer is reliable, Indra uses it. If text is missing, such as text embedded in images, it applies OCR to those areas.
  4. Line detection and recognition: It identifies text lines and recognizes their contents.
  5. Layout analysis: It labels blocks such as headings, lists, tables, captions, footnotes, and page headers.
  6. Reading order reconstruction: It arranges content in a logical sequence, which is especially important for multi column documents.
  7. Structured output: It returns Markdown, text, or JSON depending on the use case.

The default auto mode is particularly important. Many enterprise PDF collections contain born digital files with embedded text alongside scanned pages, charts, stamps, or image based appendices. Instead of forcing OCR on every page, Indra can extract the existing text layer and OCR only the parts that require recognition.

Output Formats and Document Structure

The value of Indra OCR comes from the way it structures information.

Markdown output. Markdown is useful for content systems, documentation platforms, and retrieval augmented generation. Indra OCR converts headings into Markdown headings, preserves paragraphs and lists, and represents tables as HTML. Page headers and footers are excluded by default, although users can retain them when needed. For a research paper, this means the output can preserve the hierarchy of sections, references, and captions. For a product catalog, it can preserve product names, specification lists, and simple tables in a format that downstream systems can interpret.

JSON output. JSON is the better choice for automation. Each page can include:

  • Line level bounding boxes
  • Layout block bounding boxes
  • Block labels such as text, section header, table, caption, footnote, and form
  • Reading order
  • Confidence scores
  • Rotation and skew corrections
  • Processing timings
  • The extraction source, such as PDF text layer, OCR, or hybrid extraction

This enables use cases beyond simple text extraction. A logistics team could locate shipping identifiers on a page. A legal team could isolate clauses or footnotes. A finance team could identify table regions before sending them to a specialized extraction model.

Plain text output. Plain text remains useful for full text search, keyword matching, and lightweight indexing. Because Indra returns lines in reading order, the resulting text is more useful than unordered OCR fragments, particularly for multi column reports and academic papers.

Performance and Benchmarks

Datalab positions Indra OCR as a CPU first alternative for high throughput document conversion. In the company published OmniParseBench results, Indra OCR reached up to 49 pages per second on a 32 core CPU configuration. On four x86 vCPUs, the reported median latency was approximately 230 ms per page in default auto mode.

The benchmark compares Indra OCR with Tesseract and PaddleOCR on the same machine and pages. Datalab reports that Indra OCR achieved a text score of 41.3 on OmniParseBench, compared with 35.8 for PaddleOCR PP OCR text models and 19.3 for Tesseract in its test configuration. The headline score, which combines text, tables, and layout performance, was 62.1 for Indra OCR in auto mode, compared with 58.4 for PaddleOCR PP StructureV3.

These results should be interpreted carefully. Benchmarks are useful directional evidence, but real world performance depends on document quality, language mix, scan resolution, table complexity, and configuration. The most important takeaway is not that one tool wins in every scenario. It is that Indra OCR is designed to deliver strong throughput and structured layout output on CPU, while more complex document pipelines may offer higher accuracy in specific categories.

Related service: We set up workflow automations using n8n, Zapier, and Make.com — so your business runs on autopilot. Services start at $100. Browse Automation Services →

Language and Script Coverage

For scanned documents and images, Indra OCR supports Latin scripts across roughly 50 languages, as well as Cyrillic, Greek, Devanagari, Bengali, and Chinese in both simplified and traditional forms.

For digital PDFs, the picture is broader. Indra can read the PDF text layer for any script, provided that layer passes its quality checks. Datalab states that it tested text mode across pages from 75 language families and found that, on qualifying pages, it retained at least 98 percent of the text layer characters in every family tested. This includes Arabic, Hebrew, Persian, Urdu, Thai, Khmer, Lao, Myanmar, Georgian, Armenian, Ethiopic, Indic scripts, Chinese, Japanese, and Korean.

This distinction matters for global organizations. A company processing multilingual supplier documents, cross border invoices, customs paperwork, or international research should not assume that OCR support and PDF text extraction support are the same thing. Indra can handle many scripts through digital text layers, but its native image OCR coverage is narrower.

Mathematical Content

Indra OCR includes an optional math mode. When enabled, a classifier identifies lines containing mathematical expressions and a second recognizer converts them into inline LaTeX. This can be valuable for academic publishing, technical documentation, engineering specifications, and scientific archives.

Math mode improves math related performance substantially in Datalab published tests, but it also increases processing time and can affect table recognition because numeric table cells may be interpreted as math. Teams should enable math mode selectively, preferably only for document collections where formulas are common.

Where Indra OCR Fits in an AI Stack

Indra OCR is particularly well suited as the ingestion layer for AI systems.

Retrieval augmented generation. RAG systems depend on high quality source documents. If a PDF is poorly parsed, the AI model receives fragmented, misleading, or incomplete context. Indra OCR helps by preserving headings, lists, tables, reading order, and layout structure before text is chunked and embedded. For example, a procurement team could build a RAG assistant over supplier agreements, quality certificates, product specifications, and compliance documents. Indra OCR can convert those files into structured Markdown, allowing the retrieval system to return the relevant clause or specification rather than an unstructured text fragment.

Enterprise search. Search engines perform better when documents are clean, ordered, and enriched with metadata. Indra OCR can supply plain text for indexing and JSON for metadata enrichment. Layout labels can help distinguish body content from headers, footers, captions, and tables.

Document classification and triage. Indra OCR can act as a fast first stage model. It can extract enough structure to classify a document as an invoice, contract, report, catalog, or form. Low confidence pages, handwriting, complex tables, or degraded scans can then be routed to a more powerful model or human review queue.

Data extraction workflows. For structured extraction, Indra OCR can identify table regions, captions, form areas, and layout blocks. A downstream model can then extract fields such as invoice number, purchase order reference, product code, quantity, or total amount from the relevant region rather than processing the entire page blindly.

Implementation Strategies

Start With a Document Inventory

Before deploying any OCR system, classify the document estate. Identify:

  • Document types, such as invoices, contracts, manuals, academic papers, and reports
  • Input formats, including born digital PDFs, scanned PDFs, images, and mixed files
  • Languages and scripts
  • Table complexity
  • Page orientation and scan quality
  • Privacy, retention, and regulatory requirements
  • Downstream consumption format, such as search index, vector database, or workflow system

This inventory determines whether Indra OCR should run in auto mode, OCR mode, or text mode. It also reveals where a higher accuracy model may be required.

Choose the Right Processing Mode

Indra OCR offers three main modes:

Mode Best Use Case Practical Guidance
Auto Mixed collections containing digital PDFs and scans Use as the default. It reads reliable PDF text layers and applies OCR where needed.
OCR Image based files or pages where the text layer cannot be trusted Use when visual recognition is required for every page.
Text Digital PDFs with dependable embedded text Use for maximum speed when the source text layer is known to be reliable.

For most enterprise collections, auto mode is the sensible starting point. It avoids unnecessary recognition work while still handling scanned pages and embedded images.

Design for Structured Output

Do not treat OCR output as an undifferentiated text blob. Store the JSON output alongside the Markdown or plain text version. The JSON layer preserves provenance, confidence, coordinates, layout labels, and reading order.

A practical architecture looks like this:

  1. Ingest files from cloud storage, email, shared drives, or business systems.
  2. Run Indra OCR in batches.
  3. Store the original file, Markdown output, and JSON output.
  4. Use Markdown for retrieval and content presentation.
  5. Use JSON for quality control, field extraction, audit trails, and downstream automation.
  6. Route low confidence or structurally difficult pages to human review or a more capable model.

Build Quality Controls

OCR is not a solve once problem. Build an evaluation set from real documents, not generic samples. Include:

  • Clean digital PDFs
  • Scanned contracts
  • Multi column academic papers
  • Invoices with tables
  • Documents containing stamps, signatures, or annotations
  • Multilingual files
  • Low resolution scans
  • Pages with headers, footers, and footnotes

Measure text fidelity, table structure, reading order, field level accuracy, and downstream task performance. The correct question is not only whether the OCR reads words correctly. It is whether the final workflow produces reliable business outcomes.

Handle Exceptions Deliberately

Indra OCR has clear limitations. Datalab notes that it is built for clean print and may struggle with handwriting, complex tables with merged or spanning cells, degraded scans, vertical text, very wide pages, and certain scripts when processing images rather than digital PDF text layers.

A mature deployment should therefore include exception handling:

  • Flag pages with low confidence scores.
  • Detect documents with dense tables or unusual layouts.
  • Send handwritten forms to a specialized handwriting model.
  • Use a higher accuracy document intelligence service for degraded archives.
  • Preserve the original file for audit and reprocessing.
  • Monitor failure reasons and processing source for every page.

Need help turning document parsing into a production pipeline? Our AI Document Processing Service deploys CPU friendly parsing like Indra OCR, routes exceptions, and wires structured output into your search, RAG, and automation stack.


Explore AI Document Processing →

Best Practices & Case Studies

Best Practice: Use Hybrid Extraction First

For organizations with large PDF archives, hybrid extraction is often the highest value starting point. Many business PDFs already contain a text layer. Running OCR on every page wastes compute and can introduce errors where none existed.

Indra OCR auto mode addresses this by reading the PDF text layer where it passes quality checks and applying OCR only where needed. This makes it suitable for mixed archives containing both digital and scanned documents.

Best Practice: Preserve Layout, Not Just Text

A common OCR mistake is treating a document as a sequence of words. That approach fails for contracts, research papers, financial reports, and technical manuals.

Indra OCR returns layout blocks and reading order, allowing systems to understand that a heading precedes a section, a caption belongs to a table, and a footnote is separate from main body content. This improves retrieval quality, summarization quality, and automated extraction accuracy.

Best Practice: Match the Tool to Document Difficulty

Indra OCR is optimized for speed on clean printed material. It should not be treated as a universal solution for every document type.

For example, a company processing modern supplier catalogs, product datasheets, and standard commercial invoices may find Indra OCR highly effective. The same company processing century old handwritten customs records, faded carbon copies, or engineering drawings with dense merged tables may need a different model or a managed service.

Datalab itself positions Indra OCR for fast CPU processing and directs users needing higher accuracy on handwriting, math, complex tables, and degraded scans toward its managed Chandra platform.

Case Example: Procurement Knowledge Base

Consider a global sourcing organization with supplier contracts, quality certificates, product specifications, and compliance documents in multiple languages.

A traditional OCR workflow might extract raw text but lose table boundaries and section hierarchy. A procurement assistant built on that output may struggle to answer questions such as:

  • What payment terms apply to this supplier?
  • Which certificate covers this product category?
  • What are the packaging requirements for this item?

With Indra OCR, the organization can convert documents into Markdown while preserving headings, lists, and simple tables. The JSON layer can identify table regions and captions. The retrieval system can then return precise passages, while the sourcing team retains coordinates and confidence scores for audit purposes.

Case Example: Research and Technical Documentation

A publisher, engineering firm, or research organization may need to make large archives searchable. Academic papers often contain multi column layouts, equations, references, captions, and tables.

Indra OCR can reconstruct reading order, identify section headers, and optionally convert mathematical expressions into LaTeX. This creates a more usable knowledge base for researchers, engineers, and AI assistants. However, teams working heavily with formulas should test math mode carefully because it trades processing speed for improved math representation.

Case Example: Invoice and Form Automation

An accounts payable team may use Indra OCR as a preprocessing layer. The model identifies form regions, tables, captions, and layout blocks. A downstream extraction model can then focus on the relevant regions to identify vendor names, invoice numbers, line items, and totals.

This layered approach reduces the burden on expensive extraction models. Indra handles fast document parsing, while specialized models handle business logic, validation, and exception handling.

Ready to automate the pipeline around Indra OCR? Our AI Workflow Automation Service connects ingestion, parsing, review queues, and downstream systems so document intelligence runs end to end without manual steps.


See AI Workflow Automation →

Actionable Next Steps

  1. Run a proof of concept on real documents. Select a representative sample of clean PDFs, scans, tables, multilingual files, and difficult edge cases.
  2. Compare output formats. Evaluate Markdown for content workflows, JSON for automation, and plain text for search indexing.
  3. Measure business level accuracy. Track not only character recognition but also table integrity, reading order, field extraction, and downstream AI answer quality.
  4. Use auto mode initially. Let the system use reliable PDF text layers and apply OCR where necessary.
  5. Create a review queue. Route low confidence, handwritten, degraded, or structurally complex pages to specialized processing.
  6. Store provenance data. Retain JSON output, source labels, confidence scores, and processing timings for auditability.
  7. Review licensing before production. The Indra OCR code is Apache 2.0, while the model weights use a modified OpenRAIL M license with conditions that differ for research, personal use, smaller startups, and broader commercial deployment.
  8. Plan for escalation. Define when Indra OCR is sufficient and when a higher accuracy model, managed service, or human reviewer should take over.

Conclusion

Datalab Indra OCR represents a pragmatic shift in document intelligence: fast, lightweight, CPU friendly parsing that produces structured, usable output rather than raw text alone. Its combination of OCR, PDF text layer extraction, layout detection, reading order reconstruction, and Markdown or JSON output makes it a strong candidate for RAG ingestion, enterprise search, document classification, and automation pipelines.

The strategic decision is not simply whether Indra OCR is accurate. It is whether its speed, structured output, and CPU deployment model fit the organization document mix and downstream workflow. For clean printed documents, simple tables, and high volume ingestion, it offers a compelling foundation. For handwriting, degraded scans, complex tables, and unsupported image scripts, teams should design an escalation path to more specialized models or managed services.

If you want a document intelligence stack tailored to your specific documents, languages, and downstream workflows, our team can build a custom AI document processing agent that handles routing, escalation, and integration end to end.

Organizations that treat OCR as a data quality discipline, rather than a one time conversion task, will gain the most value. Start with representative documents, preserve structure and provenance, measure downstream outcomes, and route exceptions deliberately. That approach turns document parsing from a technical utility into a scalable foundation for enterprise AI.

Need Help With Automation?

We set up workflow automations using n8n, Zapier, and Make.com — so your business runs on autopilot. Services start at $100.

Browse Automation Services
Shopping Cart

Your cart is empty

You may check out all the available products and buy some in the shop

Return to shop