Back to Insights

November 24, 2026

We benchmarked Databricks ai_parse_document on all of OmniDocBench. Here is what it can and can’t read.

Can Databricks ai_parse_document replace a vision LLM for document extraction? We ran it against Claude Opus 4.6 and GPT-5.2 on all 1,651 OmniDocBench pages. It matches frontier LLMs on text and tables, holds up best on degraded scans, and falls behind on formulas and handwriting.

Document AI starts by turning a page image into text. If a clause, a table cell or a name gets lost there, no retriever or LLM downstream can find it or cite it. Extraction quality is the ceiling for everything that follows.

On a recent engagement, we ran a document question answering pipeline over text heavy business documents and scans. Each page went through a vision call to Claude Opus 4.6. Databricks now offers ai_parse_document, a SQL function that parses documents into typed elements (text, titles, tables, figures) with no prompt and no model to pick. It is simpler to operate and runs where the data already lives. The question was whether it is accurate enough to replace the LLM.

Databricks has published downstream question answering gains for the function, but no parsing accuracy number on a public dataset. As far as we could find, nobody had. So we measured it.

The setup

We used OmniDocBench v1.6 (OpenDataLab, CVPR 2025), the standard public benchmark for end to end page parsing: 1,651 pages across books, slides, academic papers, exam papers, newspapers, magazines, research reports, handwritten notes and historical documents, each with hand checked ground truth for text, tables (HTML), formulas (LaTeX) and reading order.

We compared four methods on every page and scored them with the benchmark’s official evaluation container:

Method What it is
ai_parse_document (v2.0) Databricks SQL function, no prompt
Opus 4.6, production prompt The extraction call we started from: plain text, image descriptions, 4,096 token cap
Opus 4.6, benchmark prompt Same model, with the prompt OmniDocBench publishes: Markdown, HTML tables, LaTeX formulas
GPT-5.2, benchmark prompt A reproduction of a published leaderboard entry, used to check our harness

The two Opus runs differ only in the prompt, which lets us isolate how much the prompt itself is worth.

The main metrics: text edit distance (share of characters you’d have to fix, lower is better), TEDS for table structure, CDM for formulas, and the leaderboard’s overall score, which averages text, tables and formulas. Since formulas are rare in legal and business documents, we also report a text + tables score that leaves them out.

The results

ai_parse_document Opus 4.6, production prompt Opus 4.6, benchmark prompt GPT-5.2, benchmark prompt
Text + tables (0 to 100) 88.3 83.8 88.1 90.0
Overall, leaderboard formula 79.0 82.5 90.2 90.5
Formulas (CDM) 60.2 79.9 94.4 91.5
Tables (TEDS) 86.6 78.8 85.6 88.2
Failed pages (of 1,651) 6 16 18 0

1. On text and tables, ai_parse_document matches a frontier LLM

At 88.3 on text + tables, it is level with Opus 4.6 and within two points of GPT-5.2. Its text error 95% confidence interval (0.090 to 0.109) overlaps Opus’s (0.084 to 0.106). On tables it beats every general purpose LLM on the public leaderboard except Gemini 3 and our GPT-5.2 run, a comparison to read as indicative (see the calibration note below).

2. It is the most robust of the four methods we tested on hard pages

This was the surprise. On dense and degraded pages, the layout first approach holds up where LLMs drop or reorder whole regions:

Text edit distance (lower is better) ai_parse_document Best of the three LLM runs
Newspapers 0.17 0.37
Irregular layout 0.13 0.20
Blurred content 0.04 0.14

The error profiles are different in kind. ai_parse_document makes small mistakes on many pages; LLMs are near perfect on most pages and then lose large chunks of a few. Opus beats it page by page more often (467 to 288), yet the averages end level because ai_parse_document rarely fails badly. Only 72 of its pages had more than half the text wrong, against 118 for Opus with the benchmark prompt. For scanned records, that predictability matters.

3. It read formulas in a different format than the benchmark

The function uses a different math formula output compared to the OmniDocBench output. That’s why its formula score (60.2) is the lowest on the leaderboard, and that alone drops its overall rank next to Marker, a PDF pipeline tool. For reports, filings and transcripts this barely matters. For scientific or engineering documents it is disqualifying. Handwriting is also a weak spot, though no method we tested did well there.

4. The prompt was worth 8 points overall, 4 on text and tables

The same Opus 4.6 model scored 82.5 overall with the extraction prompt we started from and 90.2 with the benchmark prompt. Most of that is formulas (79.9 to 94.4 CDM). On text + tables the prompt is worth 4.3 points (83.8 to 88.1). The losses trace back to four choices: tables written as plain text, no LaTeX, image descriptions mixed into the body text, and a 4,096 token output cap that truncated 27 pages, 18 of them newspapers. Fixing them means longer outputs, which may cost more per call; we did not measure it.

If you run LLM based OCR in production, audit your prompt before you audit your model.

Where this sits on the leaderboard

Small, specialized open OCR models (OXR, TeleOCR, PaddleOCR-VL, MinerU2.5-Pro, all 1 to 3B parameters) lead on every metric, with overall scores of 95 to 97. They are the most accurate option, at the price of self hosting GPU serving. Among general LLMs, Gemini 3 leads, with GPT-5.2 and Opus 4.6 a step behind alongside Qwen3-VL.

ai_parse_document lands among dots.ocr, MinerU-Pipeline (the pipeline tool variant of MinerU) and Qwen3-VL on text + tables, and is the only option in that group that is a single SQL call inside a governed lakehouse.

A calibration note: our GPT-5.2 run scored 90.5 against the leaderboard’s 86.6 for the same model, prompt and pages. We don’t know why (a newer model version behind the endpoint is one candidate). That is the only run we can check against a published score, so treat our comparisons with leaderboard entries as indicative. The four methods ran through the same harness on the same pages, so the comparisons between them stand.

What we recommended

  1. Use ai_parse_document for text and tables. It is as accurate as a frontier LLM there and more reliable on degraded scans.
  2. Keep an LLM pass only where it’s needed: pages with formulas, handwriting, or images that need describing. Routing just those pages should keep cost and latency down; we did not measure either rigorously.
  3. Fix the LLM prompt regardless. Markdown with HTML tables and LaTeX, image descriptions kept separate from body text, and a higher token cap.
  4. Validate on the real corpus before rollout. Half of OmniDocBench is Chinese and none of it looks exactly like the redacted documents in the pipeline. The next step is 50 to 100 hand checked production pages, then measuring retrieval and answer quality on top of the chosen extractor.

Caveats

  • Cost and speed weren’t measured rigorously.
  • Only the OCR step was tested. The downstream effect on search and answers is still to be measured.

The takeaway

ai_parse_document is not a universal replacement for a vision LLM, but for text and table heavy business documents it is a credible, simpler default, and the strongest option we tested on messy scans.

  • What is Databricks ai_parse_document?

    ai_parse_document is a Databricks SQL function that parses documents into typed elements such as text, titles, tables and figures. It needs no prompt and no model selection, and it runs inside Databricks where the data already lives.

  • How accurate is ai_parse_document on OmniDocBench?

    In our run on all 1,651 OmniDocBench v1.6 pages, ai_parse_document scored 88.3 on text and tables, 86.6 on table structure (TEDS), 60.2 on formulas (CDM) and 79.0 overall, with 6 failed pages.

  • Can ai_parse_document replace a vision LLM for OCR?

    For text and table heavy business documents, it is a credible default: it matched Claude Opus 4.6 on text and tables and was the most robust method on degraded scans. Keep an LLM pass for pages with formulas, handwriting or images that need describing.

  • Why does ai_parse_document score low on formulas?

    It outputs math formulas in a different format from the one OmniDocBench expects, which drives its formula score down to 60.2. This matters little for reports, filings and transcripts, but rules it out for scientific or engineering documents.

  • How much does the prompt matter in LLM based OCR?

    With the same Claude Opus 4.6 model, switching to the OmniDocBench prompt raised the overall score from 82.5 to 90.2, and text plus tables from 83.8 to 88.1. Audit your prompt before you audit your model.

Aldis Stareczek
Aldis Stareczek

By Aldis Stareczek

Solutions Architect & Databricks Champion

Aldis Stareczek Ferrari is a Solutions Architect & Databricks Champion at Qubika, specializing in lakehouse architectures, data pipelines, and governance with Unity Catalog. She combines strong business understanding with deep technical expertise to design high-quality, scalable data solutions aligned with real business needs. She leads Qubika’s Databricks community initiatives, organizing meetups and tours, publishing technical guidance and reference architectures, managing Qubika’s Databricks Reddit presence, and overseeing more than 250 Databricks-certified engineers to keep credentials current and continuously strengthen Qubika’s partner status. Credentials: M.Sc. in Data Science (UTEC) and Food Engineer (Universidad de la República).

Let’s work together

Get in touch with our experts
to review your idea or product, and
discuss options for the best approach

Get started