Topic 4 of 5 · 5 min read
Citing pages and images in grounded answers
Goal: Check a generated answer's visual citations and flag a claim the cited page or figure does not support.
A grounded visual answer names the page, figure or image it used, and you verify that the cited source actually shows what the answer claims. A citation is a claim about evidence. It can be wrong while the answer sounds precise.
Check yourself · 1 of 3
Why is a citation of a real page still not proof of a claim?
Why it matters
When an assistant answers from retrieved pages, it may cite "Q3 report, page 12, Figure 4" with full confidence. Models read charts imperfectly: they misread axes, pick the wrong bar, mix up series or cite a page that sits next to the real one. Users trust a citation as proof, so a wrong one is worse than none.
How to build it
- Keep IDs through the pipeline. Each retrieved item carries a document id, page number and, if you have it, a figure or region. Pass these to the model with the page image and require them in the output.
- Ask for structured citations. Request, for each claim, the source id, page and a short quote or description of the figure part used. A claim with no citation is flagged in the UI.
- Show the source. Display the cited page image beside the answer, highlight the region if you have coordinates, and let the user open the full page.
- Verify automatically where you can. Check that the cited id and page exist in the retrieved set. For tables and charts, extract the value separately (from the table text or with a second read) and compare with the claim.
- Review a sample by hand. Open the cited page and look for the claimed number.
Before and after
Before: the answer says "Revenue in EMEA was 4.2M (Annual report, p. 18)". Page 18 shows a chart whose EMEA bar is labeled 3.4M. The 4.2M figure is on page 19 under a different region.
After: the output requires a short quote and region. The check finds that "EMEA 4.2M" does not appear on page 18, flags the claim, and the UI shows the page with a warning.
What goes wrong
- Citations that point to a retrieved document, not to the page that supports the claim.
- A real page cited for a number that appears nowhere on it, because the model read a chart by eye.
- A UI that shows a bare footnote number, so no user ever opens the source.
- Checking only that a citation exists, not that it supports the sentence.
Examples
A citation that exists but does not support
Answer: "Support tickets fell to 1,150 in May (Ops review, p. 7)."
Page 7 shows a line chart. May reads about 1,300. The 1,150 value belongs to June on the same chart. The citation points to the right page and the wrong point. The reviewer's note should say which month was misread and what the chart shows.
Key points
- A citation is a claim about evidence and must be checked against the cited page, not only for existence.
- Carry document id, page and region through retrieval so the model can cite them and the UI can show them.
- Models misread chart axes, series and nearby values, so numbers taken from images deserve a second check.
- Show the cited page image next to the answer so users can confirm it in one click.
- Flag any claim that arrives with no citation, rather than letting it pass.
Common mistakes
- Verifying that the cited page number exists and stopping there.
- Citing at document level ("the annual report") without a page.
- Trusting a number read from a chart image without a table or label to confirm it.
- Hiding sources behind a tiny footnote so users cannot check them.
Check yourself · 2 of 3
What should a visual-answer pipeline pass along with each retrieved page image?
Check yourself · 3 of 3
An answer gives a figure with no citation at all. What should the UI do?
Practice items, not counted towards your mastery.
Start here
- ColPali: Efficient Document Retrieval with Vision Language Models (opens in a new tab)PaperFree
Introduces retrieval over page screenshots and the ViDoRe benchmark, with the case against parse-then-chunk pipelines.
- Learning Transferable Visual Models From Natural Language Supervision (CLIP paper) (opens in a new tab)PaperFree
The paper behind shared image and text vector spaces, including its stated weak spots such as counting and fine detail.
- ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERT (opens in a new tab)PaperFree
Defines late interaction: one vector per token and a max-similarity score, the idea ColPali applies to image patches.
More for this topic
- ViDoRe benchmark and evaluation code (illuin-tech) (opens in a new tab)ToolFree
A working example of a labeled query-to-page benchmark and the metrics used to compare visual document retrievers.