Fig. 1: retrieval only finds what ingestion kept. Two routes from a file to an index, each stage with what it lost or cost on this page's runs (the topic's QASPER papers, an olmOCR-bench sample and three ViDoRe sets, Apple M1 Pro, October 2026; measured unless marked).
You need: the parent Topic: rag-and-retrieval (this page is the stage before its clean text); MaxSim from Rerankers and late interaction and patch tokens from Vision-language models for sections 10 and 11. The Parser viewer tab is a tool, not a read.
Elsewhere: chunking strategy (The retrieval pipeline), text embedders (Embedding models), freshness, deletes and access control (RAG in production), OCR for pretraining corpora (Extraction and filtering).
A PDF is a page description: drawing instructions that put glyphs at coordinates so the page looks right (ISO 32000-2:2020, PDF 2.0; overview). Paragraphs, columns, tables and captions are not stored; every parser's output is rebuilt from those instructions, or from pixels. Four facts cause most ingestion bugs:
Tm and Td move a text cursor and Tj or TJ draw glyphs there (section 9.4); nothing marks a line continuing or a second column, and spaces are often only a gap the parser must notice.A structure tree (Tagged PDF, section 14.8, required by accessibility rules such as PDF/UA, ISO 14289) does record paragraphs, headings, tables and reading order; use it when present and correct. None of the 38 arXiv PDF files downloaded for this page (24 papers, every version) has one (no StructTreeRoot, checked with PyMuPDF).
Fig. 2: the same page, three reading orders; only the layout model reads the columns as a person does. The page image lies flat; every slab is one text line at its PDF coordinates, and the purple path joins them in the order the text comes out. Predict first: which reader runs lines across both columns?
extract_text() clusters characters into lines by vertical position across the whole page width, so a line of the left column and the line beside it in the right column become one: it merges 34 of its 60 lines across the gutter. Its default 3-point x tolerance also drops many spaces on this page.A rule-based extractor rebuilds words, lines and blocks from glyph coordinates with no learned model. The steps are the same everywhere; only the thresholds and the final sort differ.
The tools differ mainly in the last step: pypdf (6.20.1) keeps content-stream order; PyMuPDF (1.28.2) too, unless sort=True sorts blocks by top then left (recipes); pdfplumber (0.11.10) clusters characters into lines (x_tolerance 3 points) and reads them across the full width; pdftotext (poppler 26.02) detects columns; pymupdf4llm (1.28.2) adds headings by font size, tables by ruling lines, Markdown, and here called RapidOCR on pages it judged to be images. Milliseconds per page and no model: the right first stage for clean single-column files; columns, headers, footnotes, tables and scans break the rules.
class LAParams:
line_overlap = 0.5 # overlap, relative to the smaller char height, to share a line
char_margin = 2.0 # chars closer than 2 char widths join the same line
line_margin = 0.5 # lines closer than 0.5 line heights join the same box
word_margin = 0.1 # a gap over 0.1 char widths inserts a space
boxes_flow = 0.5 # -1: order boxes by x only ... +1: by y only; None: no grouping
pdfminer/layout.py, pdfminer.six 20260107, lines 48 to 90; comments condensed from the docstring at lines 50 to 74. With boxes_flow set, LTLayoutContainer.analyze (lines 907 to 937) merges the closest pair of boxes again and again into a tree (group_textboxes, line 814) and reads the tree in order; with None it sorts boxes top to bottom, left to right.
Glyphs to words and lines, lines to boxes, boxes to an order, with pdfminer.six's LAParams defaults on illustrative glyphs: word_margin 0.1, char_margin 2.0, line_overlap 0.5, line_margin 0.5. The final sort decides columns: top to bottom over the full width interleaves them.
A person finds columns, headers and tables by looking. A layout-aware parser renders the page and runs a layout detection model, an object detector trained on labelled pages (the eleven classes of IBM's DocLayNet: Text, Title, Section-header, Table, Picture, Caption, Formula, List-item, Page-header, Page-footer, Footnote); it fills each box from the text layer where it is good and OCR where not, orders the boxes, sends tables to a table-structure model, and drops headers and footers by class, not by guessing.
Four open layout-aware parsers ran here on the CPU: Docling, Marker (fast mode, OCR off, so it reads scans like a text extractor), MinerU and Unstructured. Licences differ: Docling MIT, Unstructured Apache 2.0, MinerU its own licence with extra conditions, and Marker's model weights a modified OpenRAIL-M, free below $5M revenue.
| Tool (version run) | Layout | Tables | Text and OCR | Licence |
|---|---|---|---|---|
| Docling 2.138.0 (IBM, LF AI and Data) | docling-layout-heron detector (RT-DETRv2; Livathinos et al., 2025) | TableFormer, cells matched to the text layer | own PDF backend; OCR engine chosen at start-up | MIT code, models on Hugging Face |
| Marker 2.0.0 (Datalab) | fast (default on CPU and Apple MPS): rf-detr; balanced: the Surya VLM | rebuilt from the text layer, VLM fallback when unsure | pdftext; Surya VLM via llama.cpp or vLLM for OCR and equations | Apache 2.0 code; weights modified OpenRAIL-M (free below $5M revenue) |
| MinerU 4.0.12 (OpenDataLab, Shanghai AI Lab) | flash (native, no model), basic (ONNX, about 0.8 GB), standard/advanced (adds a VLM, about 2 GB) | model-based | own OCR models | MinerU Open Source License (Apache 2.0 with extra conditions) |
| Unstructured 0.27.25 | fast: none (pdfminer); hi_res: YOLOX | hi_res + infer_table_structure: table transformer, HTML | pdfminer text; Tesseract for image regions | Apache 2.0 |
Sources: each project's README at the pinned release (Marker v2.0.0 lines 100 to 110 and 65, MinerU mineru-4.0.12-released lines 449 to 460 and 1026), Docling's pipeline options read from the installed package, Unstructured's partition_pdf strategies. Only the open packages ran here, all on the CPU: Docling with its default pipeline (it picked RapidOCR, PP-OCRv6 small, for image regions), Unstructured fast and hi_res, MinerU flash and basic (ONNX), and Marker in fast mode with --disable_ocr, the text-layer path of the vendor table's "fast, no OCR (CPU)" row. With OCR on, Marker sends scanned or garbled pages to its Surya VLM (a 1.27 GB GGUF served by llama.cpp on the Mac's GPU); that path was not measured here, so Marker's scores below are for text-layer pages only and it scores like a text extractor on scans.
QASPER, the topic's long-document set, marks the paragraphs that answer each question. The root uses the text QASPER ships (S2ORC's parse); here the same papers start as arXiv PDFs. Each evidence paragraph's word trigrams are looked for in each parser's output: intact at 90% or more, damaged at 50 to 90% (hyphens, glued words, a column jump or footer inside), lost below. Then BM25 with the root's settings ranks the root's chunks of each output (256 tokens, 32 overlap): recall@3 is the share of questions whose evidence is in the top 3.
Retrieval barely notices the middle group. Recall@3 of BM25 is 43 to 53% for every tool except pdfplumber (19%), and QASPER's own clean text scores 53%: a paragraph keeping 85% of its words still matches, and only lost word boundaries break it. Damage matters where exact spans matter (quoting, citing, embedding a chunk cut by a column jump). With 58 questions, differences under about 15 points are noise: a broken tokenizer input is fatal, a hyphen is not. And recall on text someone else cleaned says nothing about your parser: run the golden set through your own ingestion at least once.
Measured on Apple M1 Pro (CPU), 2026-10-14: 24 QASPER validation papers (arXiv PDFs, latest version; 12 drawn at random from papers with a question answerable only from a table or figure, 12 from the rest, seed 0), 107 distinct evidence paragraphs behind 58 questions with text evidence. QASPER's BIBREF and INLINEFORM placeholders excluded. A recall hit is a top-3 chunk covering at least half of an evidence paragraph. Top row of the chart: QASPER's own S2ORC text of the same papers, the root's starting point. Script: src/scripts/score_qasper.py.
Layout parsers and tools that join line-end hyphens keep almost every paragraph whole (MinerU flash 94 intact, Docling 93, Marker 92, MinerU basic and pymupdf4llm 91, pdftotext 86); plain stream readers break about four in ten at hyphens and ligatures (pypdf 60, pdfminer.six 59, PyMuPDF 61, Unstructured 60 and 62, Tesseract on the rendered pages 64); pdfplumber keeps 1. Little is lost outright, because pdfTeX draws each column in order. Top row: QASPER's own text.
olmOCR-bench (Allen AI, 1,403 single-page PDFs, 7,010 pass/fail tests) checks facts, not edit distance: a sentence present, a page number absent, sentence A before B, a table cell beside a given neighbour. Five of its seven categories ran here on a seeded sample with the benchmark's own tests.py (v0.4.27, lines 520 to 620 and 621 onward); the two maths categories need a KaTeX renderer. Cells: share of tests passed.
Each category isolates one failure. Headers and footers: layout models drop them (Marker 95, MinerU basic 95, Docling 93), every text extractor keeps them (30 to 39), and so does Unstructured hi_res (28). Tables: text extractors pass 1 of 108 tests, MinerU flash 28%, the other table-aware tools 44 to 73%. Multi column: pdftotext's own column detection (69) beats pypdf (46) and PyMuPDF's sort=True collapses (12). Old scans defeat everything (17 to 26): many are handwritten Library of Congress letters on which Tesseract returns nothing. Long tiny text rewards OCR and line grouping (MinerU 87, Docling 79, Tesseract 72). A 110-page sample on CPU defaults, not a leaderboard.
Measured on Apple M1 Pro (CPU), 2026-10-14, every tool at its default settings. Seeded sample (seed 0) of olmOCR-bench at revision 54a96a6f: 25 PDFs each from multi column, headers and footers, tables and old scans, 10 from long tiny text; tests restricted to those PDFs (counts in the header: 97, 61, 108, 119 and 61). Score per category = share of its tests passed, as the benchmark computes it; Mean = mean of the five categories, with a 95% bootstrap interval over PDFs. The two maths categories and the baseline category are not included, so this mean is not comparable with the published Overall column. Script: src/scripts/score_olmocr.py.
Benchmark authors' table: olmOCR README at v0.4.27, "reproduced in-house, except those marked with *, which are reported by model authors". Vendor table: Marker README at v2.0.0 (Datalab, Marker's maker), all eight categories, GPU runs. The two disagree on the same tools (MinerU 75.2* against 72.7, different MinerU versions); neither includes this page's CPU defaults. Marker's README puts Docling at 50.3; the olmOCR authors' table does not list Docling; this page's sample gives a third reading on another subset and settings. Scores move with version, mode (OCR on or off, GPU or CPU path), categories included and who ran it: read every row as "this tool, this version, this mode, on that hardware, run by that party", and run the candidates on fifty of your own pages.
Cost on this CPU, QASPER pages: text extractors 0.01 to 0.13 s per page; layout parsers 0.22 (MinerU flash, no model) to 4.98 s (Unstructured hi_res), Docling 1.41.
Wall seconds per page on this machine's CPU (no GPU, no MPS), at low priority while other jobs ran (load average 7 to 30), so read the ratios, not the absolute times; they were not taken under the bench lock. QASPER: 277 born-digital pages; olmOCR sample: 110 single pages, many scanned, where OCR dominates. Marker ran as one batch, so its figure is the batch time divided by pages.
Scans, photos and some exports have no usable text layer (none, an old invisible OCR layer, or glyphs without a Unicode mapping). Optical character recognition (OCR) reads characters from pixels; it replaces exact text with a guess and costs seconds per page, so it is routed per page, never run on everything.
Classic engines. Tesseract (5.4.1, Apache 2.0) binarises the page, finds lines with its page-layout analysis (--psm 3, the default, assumes a full page of any layout) and since version 4 reads each line with an LSTM trained per language (documentation); it knows nothing of tables or reading order beyond its block finder. Layout-aware parsers OCR only image-text regions or broken pages: Docling through whichever engine its OcrAutoOptions finds (pipeline_options.py line 312; here RapidOCR, PP-OCRv6 small), Unstructured hi_res through Tesseract, MinerU and Marker through their own models.
VLM OCR. Since 2025 the strongest systems on olmOCR-bench are vision-language models that read a page image and write Markdown, tables as HTML and maths as LaTeX: olmOCR 2 (7B), PaddleOCR-VL, Chandra, dots.ocr, DeepSeek-OCR. They handle reading order, tables and handwriting jointly, need a GPU and a few seconds per page, and can hallucinate text that is not on the page or repeat a line forever (olmOCR-bench's baseline test checks for runaway repetition). None ran here (reference pipelines target NVIDIA GPUs with vLLM; published scores in section 4). How to check any OCR: character error rate against a hand transcription of a sample.
The check: characters per page area, share of replacement or private-use characters, share of dictionary words, a single full-page image. Times on this CPU: Tesseract at 300 dpi took 2.18 s per page on the QASPER papers and 3.15 s on the olmOCR sample; VLM OCR was not run here.
A number means nothing until you know its row and column. A text extractor emits cells as a stream (by row, by column, headers scattered), and retrieval fails twice: the chunk has no words matching the question, and if retrieved the generator cannot tell which number answers it.
How much it matters. In QASPER validation (281 papers, 1,005 questions), a table or figure is evidence for 164 (17.4%) of the 945 answerable questions, and for 35 of them a table or figure is the only evidence (30 tables, 5 figures; src/scripts/qasper_stats.py, FLOAT SELECTED entries). The root's set keeps only questions with text evidence, so these never reach its recall numbers: an ingestion choice hidden by an evaluation choice.
Extraction in four steps: detect the region (a Table box, or ruling lines); recognise structure, rows, columns, spanning and header cells (pdfplumber, Camelot and pymupdf4llm use ruling lines or whitespace; Docling's TableFormer predicts structure from the image, Nassar et al., 2022, then matches cells to the PDF's own text, do_cell_matching=True by default in docling 2.138.0); fill cells from the text layer or OCR; serialise as HTML (keeps spans) or Markdown (cannot express a spanning cell, so merged headers repeat or vanish).
Adjacency F1: pairs of horizontally or vertically adjacent non-empty cells where at least one is a number, compared as text with the ground truth (the relation idea of the ICDAR 2013 table competition, restricted to the body so that merging the three header rows into one, as Docling does, is not penalised). Header association: the share of the table's numbers found in the right row whose column header text contains all three ground-truth header words; it was added after the first scoring, because plain adjacency F1 ranked MinerU above Docling although MinerU's headers were split mid-word. A parser that emits no table has no grid, so neither score applies; "cells whose text appears" still counts a number found anywhere. Ground truth: the tabular in the paper's pun.tex (lines 244 to 277 of the arXiv source, kept in src/inputs/). Script: src/scripts/table_score.py.
Making a table retrievable: keep it whole with its caption, or split by rows with the header repeated (a chunker that cuts a Markdown table mid-way leaves rows without headers); row serialisation ("Model: BERT-base; Dataset: SQuAD; F1: 88.5", values illustrative) gives each value its headers in words BM25 and an embedder can match; or embed a model-written summary and pass the full table to the generator. SQL over tables is on GraphRAG and structured retrieval. How to check: TEDS (tree-edit distance between HTML trees, Zhong et al., 2020), the adjacency F1 of the ICDAR 2013 competition, or olmOCR-bench's single facts ("a cell reads 4.5% and the cell above it reads 2.4%", its README's example).
Table 1 of arXiv 1909.00175 v1 (Zou and Lu, 2019), page 4: 15 rows, 13 columns, three header rows with spanning cells; ground truth from the paper's LaTeX source. Pick a parser, then switch views. Apple M1 Pro (CPU), default settings (Marker without OCR), 2026-10-14; one table shows kinds of failure, not a ranking.
A chart, diagram or photo carries information no text extractor sees. Three things can be recovered, at rising cost:
caption in Docling, Caption in Marker, FigureCaption in Unstructured): keep it attached to its figure and make it its own chunk, since "Figure 3: accuracy against context length for four models" is often exactly what a question matches. A rule-based extractor emits it as an ordinary line, often inside the paragraph that flows around the figure.Images as items. For standalone images (product photos, diagrams) a single-vector image-text embedding of the CLIP or SigLIP kind puts pictures and queries in one space (Vision encoders). A page full of small text is too much for one vector; when answers live in charts, infographics or slides, section 10 keeps one vector per patch instead of translating figures into words.
| Format | What the file already holds | What still goes wrong |
|---|---|---|
| HTML | headings, lists and tables as DOM elements | boilerplate (navigation, footers, banners) and text rendered by JavaScript; boilerplate removal at web scale is on Extraction and filtering |
| DOCX | a zip of XML parts (Office Open XML, ECMA-376): paragraphs, heading styles, tables with rows and cells | headings faked with bold text instead of styles; text boxes and tracked changes |
| PPTX | one XML part per slide; text in shapes, speaker notes apart | shapes are stored in drawing order, not always reading order; the content is often the chart or picture, so slides suit section 10 |
| XLSX, CSV | typed cells and formulas | read cells natively rather than rendering them; merged and multi-row headers break exactly as in section 6, and rows need their headers when serialised |
Docling and Unstructured both read DOCX, PPTX, XLSX and HTML directly (each project's README); only PDFs were measured on this page.
Once a chunk leaves its file, three jobs need facts only the parser had: a citation the user can check ("page 4 of the 2020 annual report, section 3.2"), a filter inside the search ("contracts signed after 2024", "documents this user may read"), and an update (replace every chunk of a changed file). Store each chunk as a record, not a string.
Cost: a few hundred bytes per chunk, small next to a 1,024-dimension float32 vector (4,096 bytes); dropping them costs a full re-parse later. How to check: open the cited page of twenty retrieved chunks from the metadata alone.
A paragraph of QASPER paper 1909.00175 parsed by Docling 2.138.0: page, bounding box (PDF points, origin bottom left; drawn in orange on page 3), heading and element type are its real output; hashes computed by src/scripts/make_record.py; the acl value is illustrative and the field names are this page's choice, not a standard. Docling reported the heading as "3.1 Datasets and Settings" without its parent "3"; rebuilding the full path from heading numbers is a small post-processing step.
A contract gets an amendment, an arXiv paper a v2. Re-embedding the whole corpus on every change costs compute and stale time; the goal is to touch only chunks whose text changed and delete chunks of text that is gone, with three levels of content hash:
The trap: chunk boundaries move. With fixed 200-word windows, one sentence inserted near the top shifts every later boundary and every later hash. Boundaries tied to content survive edits: paragraph and heading boundaries from the parser (structure-aware), or content-defined chunking, which cuts where a rolling hash of the last few words hits a chosen value, as the LBFS file system did with Rabin fingerprints (Muthitacharoen et al., SOSP 2001). Which chunking retrieves best is The retrieval pipeline's question; this is what each costs when documents change.
Fig. 6: one revision, four chunkers. The front strip is the new version's words to scale, with the words the revision changed in red; each slab is a chunk as wide as its words, green when its hash is already stored (the vector is reused), orange when it goes through the embedding model again. Pick a paper, or follow the sample's predicted case:
A rewrite of a third of a paper (1910.14599, 39.5% changed) re-embeds most of it under any strategy; for a word or a sentence, boundaries decide between one chunk and the whole document.
The 10 papers of the sample with two or more arXiv versions (1802.00396 is excluded: its v2 is a withdrawal notice), last two versions compared, both parsed by Docling 2.138.0 on CPU. Words changed: difflib over lower-cased words of the new version, inserted or replaced. Content-defined chunking: a boundary where zlib.crc32 of the last three words is divisible by 24, 60 to 400 words per chunk. Script: src/scripts/change_detect.py.
Deletes are the half people forget: chunks of removed text must leave the index, or retrieval keeps citing a removed clause (in HNSW stores a delete is usually a tombstone until compaction; purging and freshness are on RAG in production). How to check: after a sync, a document's chunk hashes in the index equal those computed from its current version, no more and no fewer.
Parsing loses what text cannot hold: a chart's shape, an infographic's layout, a diagram's arrows. A vision-language model reads a page as a picture cut into patches (small squares, each a vector); page-image retrieval embeds each page's screenshot and searches it with the text query, with no parsing at all.
ColPali (Faysse et al., 2024) takes PaliGemma-3B and keeps one 128-dimension vector per image patch: 1,024 patch vectors plus 6 for the text prompt, 1,030 per page (paper section 4.1 and footnote 10); a query keeps one vector per token. The score is late interaction as in ColBERT: each query token takes its best dot product with any patch and the maxima are summed (MaxSim), so "revenue" can match a bar label's patches and "2019" an axis tick's. MaxSim, ColBERT and PLAID-style indexing are owned by Rerankers and late interaction; this section is what changes when the document tokens are image patches.
Fig. 7: one vector per chunk against one per patch, 18 times less indexing time for 30 times the storage.
Published results. ViDoRe (Visual Document Retrieval benchmark, same paper) pairs text queries with page images, scored by nDCG@5 (normalised discounted cumulative gain over the top five pages). In its Table 2 ColPali averages 81.3 against 65.5 for Unstructured + OCR + BM25 and 67.0 for the best text pipeline (Unstructured + captions written by Claude 3 Sonnet + BGE-M3); the gap is largest on figures (ArxivQA 79.1 against 31.6) and smallest on text-heavy reports (Energy 91.0 against 85.9). The authors' runs; section 11 reruns it with a small open model.
Rerun here with laptop-sized models on 100-query, 200-page subsets of three ViDoRe v1 sets, InfoVQA (infographics), ArxivQA (figures from papers) and Energy (text-heavy reports): Tesseract OCR then BM25; the same OCR text embedded by bge-small-en-v1.5 (the root's small embedder); and the page image embedded by colSmol-256M (vidore/colSmol-256M: the ColPali recipe on SmolVLM-256M, MIT licence, 128 dimensions per vector).
On figures OCR text barely helps (the words in a plot are not what the question asks), so BM25 and the dense embedder both land near 38 and the 256M image model doubles that. On infographics the image model leads by 15 points, beyond both intervals. On text-heavy reports the methods tie, and plain BM25 beats the dense text embedder (95.0 against 88.2): rare domain terms favour exact matching. The shape matches the paper's, at smaller scale.
nDCG@5, solid bars measured here with ± half the 95% interval; lighter bar: BM25 on the full set, for scale; dashed bars: the ColPali paper's Table 2 (the authors' runs on the full sets), not a reproduction.
Cost here: colSmol produced 699 to 1,103 vectors of 128 numbers per page (mean per set), about 175 to 280 KB per page in float16, against one vector for bge-small. Encoding took 4.3 to 5.9 s per page on this CPU in float32, against 0.3 to 1.6 s for Tesseract (the paper's 3B ColPali: 0.39 s on a GPU). What transfers: the ranking by document type and the storage arithmetic; not the absolute times or nDCG, since 200-page subsets are easier than full sets (BM25 on the full InfoVQA set: 67.5 against 72.6 on the subset).
Measured on Apple M1 Pro, 2026-10-14, on seeded subsets (seed 0) of three ViDoRe v1 test sets at pinned revisions: 100 queries and 200 pages each (the queries' relevant pages plus random others), so every retriever ranks the same 200 pages. OCR: Tesseract 5.4.1 (LSTM, English, --psm 3) on each page image as ViDoRe ships it. Text retrieval: BM25 (bm25s, Lucene variant, k1 1.2, b 0.75, stemming) and bge-small-en-v1.5 over the whole OCR page. Page images: vidore/colSmol-256M with colpali-engine 0.3.18, float32 on the CPU, because the MPS runs failed on the shared machine: one segfaulted while loading, one had not finished 500 InfoVQA pages after 30 minutes, with the 16 GB of memory deep in swap. nDCG@5 with one relevant page per query; ± is half the 95% bootstrap interval over queries. The full sets for the lighter bar have 500, 500 and 977 pages. Published bars: Unstructured with OCR (the paper citing the Tesseract overview) or with captions written by Claude 3 Sonnet, and ColPali 3B. Scripts: src/scripts/vidore_*.py.
Top pages each retriever returned for sample queries; thumbnails are this page's small copies of the ViDoRe page images, cropped to their top for tall infographics.
| Your documents | Start with | Why (evidence on this page) |
|---|---|---|
| Born-digital, single column, mostly prose (reports, contracts, editor exports) | A fast text-layer extractor (PyMuPDF, pdftotext), with de-hyphenation and ligature normalisation | Milliseconds per page; on LaTeX papers stream order was already close to reading order; hyphens and ligatures were the main damage (section 4) |
| Born-digital with columns, tables, captions, running headers (papers, filings, manuals) | A layout-aware parser (Docling, Marker, MinerU), tables kept as HTML or Markdown with headers | Highest evidence survival and the only correct table grid here; about a second per page on CPU (sections 4 and 6) |
| Scans and photos | OCR routed per page (Tesseract or a parser's OCR), or VLM OCR on a GPU for hard layouts | Text-layer tools return nothing on scans; published VLM OCR scores lead the full benchmark (sections 4 and 5) |
| Charts, infographics, slides, figure-heavy pages | Page-image retrieval (ColPali family), alone or fused with text retrieval | Section 11 and the ColPali paper's Table 2 |
| A corpus that changes | Structure-aware or content-defined chunk boundaries, chunk hashes, vectors keyed by model version | Section 9: 49% or 44% of words re-embedded against 76% for fixed windows, with a 15% floor |
Latency and cost of serving belong to RAG in production.
Built from runs on an Apple M1 Pro (10 CPU cores, 16 GB) on 13 and 14 October 2026. Every script, small result file and input is in this page's src/ folder (src/scripts/, src/data/, src/inputs/); large downloads stay outside the repository. Published numbers are labelled with who ran them and when.
Pick a page and a parser. Beside this text (below it on a phone), the page image and the parser's real output, exactly as it came out (long outputs are cut where marked). Under it, every check this page runs on that page: olmOCR-bench's own unit tests for the benchmark pages, and for the QASPER pages whether each annotated evidence paragraph survived.
Highlighted: text a check looked for and found (yellow) or text that should have been absent and was found (outlined). Measured on Apple M1 Pro (CPU), every parser at its default settings with the versions in sections 2 and 3 of the Reading tab; outputs are deterministic for the rule-based tools and for the model-based ones on CPU. Two edits to the verbatim outputs: em dashes are shown as en dashes (this knowledge base never prints em dashes), and MinerU's embedded images are replaced by an image marker. Marker ran in its CPU mode with OCR off (--mode fast --disable_ocr); MinerU's small models ran on ONNX on the CPU.
The parent: the whole retrieval stack compared, the running example, and the stage map, which starts where this page ends (clean text to chunks to ranked passages). (19 min)
Chunking strategies, contextual prefixes, hybrid search and query rewriting, measured on the same QASPER papers; owns chunking strategy. (47 min)
MaxSim, ColBERT and PLAID: the text-side mechanics behind ColPali. (34 min)
Freshness targets, deletes and purging, access control at retrieval, cost per query. (37 min)
Tables as databases: text-to-SQL and retrieval over rows. (40 min)
How the text embedders used in section 11 are trained and chosen. (30 min)
GDP.pdf and other benchmarks of models reading whole documents, the alternative to retrieving pieces of them. (27 min)
Contrastive image-text embeddings, the single-vector ancestor of page-image retrieval. (27 min)
Images as patch tokens: what a ColPali "patch vector" is. (23 min)
How a page image becomes patch tokens inside a VLM, the reader behind VLM OCR and ColPali. (33 min)
ViT, CLIP and SigLIP: single-vector image-text embeddings for corpora of images. (34 min)
HTML boilerplate removal and PDF OCR at pretraining-corpus scale. (32 min)
Judged metrics for whether the answer is grounded in what was retrieved. (27 min)
Page-image retrieval with late interaction; the ViDoRe benchmark; indexing cost against a parsing pipeline. (45 min)
A VLM for PDF linearisation and the olmOCR-bench unit-test benchmark used in section 4. (40 min)
How each test class works; the published score table. (15 min)
The pipeline design: PDF backend, layout model, TableFormer, reading order. (25 min)
The heron layout detector Docling runs by default. (25 min)
The human-labelled layout dataset behind most open layout models, and its eleven classes. (25 min)
Table structure recognition from the image, with cells matched to PDF text. (25 min)
The tree-edit-distance metric for table structure. (20 min)
Modes, the Surya VLM server, the vendor's olmOCR-bench and throughput table. (15 min)
Tiers from native parsing to VLM, model engines and hardware needs. (15 min)
Content-defined chunking with Rabin fingerprints, the trick behind edit-stable chunk boundaries. (30 min)
Reading order, blocks and lines, and what sort=True does. (15 min)