How to find a diagram in a scanned PDF when text search misses it
If you remember what the diagram looks like but not its caption, visual page search can suggest pages to open. Use ordinary search for exact words, OCR to recover text, and your eyes to confirm that a candidate page contains the right diagram.
Start with the result you want
If you know a heading or a code printed on the page, try searching for those words in your PDF reader. In an image-only scan, OCR can make printed text searchable. If you already have the right page and need to copy text or read a value, work from that page. Visual page search is for a different situation: you have a set of pages and remember a feature of the missing figure, such as a curved line connecting two shapes, rather than a phrase you can search. For a short document, scan the page thumbnails first.
What ColQwen2 matches, and what the app must provide
ViDoRe’s ColQwen2 v1.0 HF matches a written search against images of whole pages. It represents each query and page image with multiple numeric vectors, and the documented retrieval workflow returns a comparison score for each query–page pair. The publisher documents this exact HF edition for Transformers and Sentence Transformers, not colpali-engine. The example takes page images, not a PDF file. An app that applies this image-input workflow to PDFs must first render pages as images. Keep a page reference for each original. The checkpoint is not a PDF viewer or a ready-made search index, and this workflow returns neither extracted text nor an answer about the diagram.
Use a known page and a near match before indexing more
Imagine three pages from a fictional public library display booklet. Page 4 has a timetable, page 7 has a floor plan with two rectangular display tables, and page 9 shows two round tables on either side of a zigzag display wall. Start with the three page images and type a description such as “two round tables beside a zigzag display wall.” You should know before searching that page 9 is the target and page 7 is a distractor. Try a description of a feature that appears on none of the pages, such as “spiral staircase beside a fountain.” A ranked list can still have a first result when nothing matches. These are suggested checks, not reported model outputs.
Open the original page before calling it a match
Check a few candidate pages against the visual detail you asked for. A higher score is a closer match in that comparison, not a probability that the diagram is there. If none shows the detail, leave the result unconfirmed. Check that the right pages were included and that the images are legible and not cropped; try a simpler visible clue or browse the originals. For repeat use, keep the document version and the page’s position in the file with each page image, so you can tell apart similar diagrams in different editions. If the materials must stay on your device, check that page rendering and matching run there and that page images, embeddings, indexes and results are stored there before processing real documents.
Sources
- ViDoRe: ColQwen2 v1.0 HF model card at ddc07d2Publisher · huggingface.co↗
- Transformers 5.8.1: ColQwen2 input and retrieval scoresPublisher · huggingface.co↗
- Sentence Transformers: visual page retrieval model supportPublisher · sbert.net↗
- Adobe Acrobat: searchable text in scanned PDFsPublisher · helpx.adobe.com↗
- Vespa: why page rendering and an index are separate stepsPublisher · visual-rag.vespa-demos.ai↗