Turn a convincing demo into numbers: evaluate multimodal RAG over figure heavy PDFs
Your multimodal RAG system over figure heavy technical PDFs looks great in demos, but nobody can say how good it actually is. Design the evaluation harness: what you measure at each stage, how you score answers grounded in images, and how the harness gates releases.
Decompose into retrieval, generation, and citation stages; stratify by question modality; calibrate a vision-capable LLM judge against human labels; gate CI on per-slice thresholds plus cost and latency.
Imagine a restaurant where customers complain the food is wrong sometimes. You cannot fix anything until you know whether the order was wrong (front of house), the cooking was wrong (kitchen), or the wrong dish made it to the table (runner). You taste-test each step separately. You write down what each menu item is supposed to look like and taste like, so you have a reference. You train a few judges to score consistently, then check them against the head chef occasionally. Only then do you say the food is N percent correct. A multimodal RAG eval harness works the same way. Decompose, label, calibrate, then score.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Multimodal RAG over figure-heavy PDFs is one of the most demoable AI applications in 2026. A user uploads a stack of technical documents, asks a question that depends on a chart on page 47, and the system returns the right answer with a citation. Demos go well, and then the engineering team is asked: how good is it, actually? The honest answer in most cases is nobody knows, because the team built a demo, not an eval.
This answer lays out the eval harness as a real piece of engineering. The structure follows what production teams converge on after a quarter or two of trying to defend their numbers to customers: decompose the system into stages, build a labeled set stratified by question modality, calibrate a vision-capable LLM judge against human labels, and gate releases in CI on per-slice thresholds plus cost and latency.
Why stage decomposition is the foundational design choice
A multimodal RAG pipeline has at least three components that can fail independently: a retriever that selects pages and figures from the corpus, a generator that produces an answer from the retrieved context, and a citation mechanism that points each claim back to specific evidence. An end-to-end accuracy number cannot tell you which of these failed when a regression appears.
Decomposition fixes this by attaching a metric to each stage. Retrieval is measured against labeled evidence: did the retriever return the page that actually contains the answer in its top-k. Generation is measured given gold context: if we hand the model the correct evidence, does it produce a correct, faithful answer. Citation is measured as a separate check: does the page the model claims as evidence actually contain the supporting content.
This decomposition pays off on every regression. The new chunking strategy regressed end-to-end accuracy; was it the retriever or the generator? With stage-level metrics, you see retrieval recall dropped for chart questions and generation faithfulness held steady. The fix lives in the chunking, specifically in how charts are extracted, and the team finds it in hours rather than days.
The alternative, one number, leaves the team guessing. Production teams that have lived through both will defend decomposition aggressively because they have paid the debugging tax of the alternative.
Situations where this technique stops working.
2–4 min · Everything important, quickly.
Real products, models, and research that use this idea.
- Anthropic's evaluation cookbook for Claude Opus 4.7 explicitly recommends stage-level decomposition and human-calibrated LLM judges for multimodal RAG over technical documents
- RAGAS and Patronus AI evaluation harnesses now ship visual variants for figure-grounded answers, reflecting industry adoption of the stage-decomposed approach
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you build the labeled set efficiently when expert labelers are scarce?
Bootstrap with a smaller seed set, generate candidate question-evidence pairs by prompting Claude Opus 4.7 against your corpus, and have experts review and correct rather than label from scratch. Active learning across early evaluation runs surfaces the highest-information examples to label next, stretching the budget.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Building one end-to-end accuracy number and using it as the release gate, then never being able to tell whether a regression was caused by the retriever, the generator, or the prompt.
60 second bullets to scan on the way to the call.
Why an end-to-end metric is insufficient for debugging RAG regressions
How to label question-to-evidence pairs across prose, chart, and table modalities
Primary sources. Browse if you want the original framing.
Same topic, related formats. Practice these next.