# IBM Granite Embedding Vision R2: How to Shortlist and Rerank PDF Pages

Build a PDF retrieval test with Granite Embedding Vision R2: start with 768-dimensional vectors and measure whether MaxSim reranking earns its storage cost.

By Paras Madan | 2026-12-01


Say your internal handbook has 200 pages and someone asks which approval limit applies to contractors. The words are in a table. Your text search finds the right document, but the answer lands on the wrong row because the extraction lost the page layout. Before you add another reasoning model, check whether your search system finds the right page.

[IBM released Granite Embedding Vision R2 on November 30](https://huggingface.co/blog/ibm-granite/granite-embedding-748m-vision-r2). Its Apache 2.0 [model card](https://huggingface.co/ibm-granite/granite-embedding-748m-vision-r2) shows two ways to represent a page with one model. The useful part is being able to measure which approach your documents need before paying to store everything.

## Understand the two outputs

The first output is one normalized 768-dimensional vector per page or query. Put the page vectors in a cosine search index and use them to pull a shortlist quickly. The other output is a variable-length sequence of 128-dimensional vectors. MaxSim scores a query by comparing each query vector with its best match among the page vectors. Separate matches for several parts of the question can matter when the answer depends on layout or detail.

The model can take page images or text. The outputs are for locating relevant pages. To return a dollar amount from a table, you still need to inspect, extract or otherwise ground the answer in the page you found.

## Keep text search as your baseline

Start with existing OCR or text extraction and your current search. Add the page-image single-vector index beside it, using stable keys such as document version plus page number. Index five to ten representative documents first. Include a clean handbook, a scanned file and a PDF with repeated headers and closely spaced table rows.

Write questions that point to the exact answer-bearing page, not only the right document. Label the pages before you see the search results. In the contractor example, a neighbouring employee table can look relevant while still getting the answer wrong. Keep those plausible wrong pages in your test set.

## Choose a shortlist before reranking

Use the single-vector index to get the top 20 pages as an initial experiment. For each query, ask whether the right page makes it into that set. If it's already missing, reranking those 20 cannot bring it back. Try a wider shortlist, check how pages are rendered, and test whether combining text and image candidates improves recall.

Once the right pages reliably reach that shortlist, use IBM's documented multi-vector output and MaxSim to reorder them. Compare results at the number of pages your answer system actually reads, say three. If the correct page routinely moves from ninth to second, that's what you were paying for with reranking. If it was already in the top three, the extra pass might not help.

## Budget for the page vectors, not just the checkpoint

IBM reports roughly 1.5 KiB per page for its single-vector representation and roughly 147 KiB per page for its multi-vector index footprint in the published setup. At 100,000 pages that is about 146 MiB versus 14 GiB before allowing for database overhead or replicas. These figures depend on representation and document pages, so measure your collection.

Reranking a shortlist reduces scoring work per query. It does not automatically eliminate the storage needed to keep multi-vectors for all pages. If you compute them when the shortlist is returned instead, you trade storage for query-time work. Try that on a small corpus before designing around it.

## Decide using your failure cases

I'd keep the cheaper first stage if reranking only improves easy search examples. If it consistently fixes dense tables, diagrams or scans, record the improvement separately for those slices and compare end-to-end latency. Then make the answer link to the exact page. Better retrieval won't help if readers cannot check the number it found.

I'm Paras. If you want to test document search on your own PDFs before reindexing everything, I can help you build the comparison. [Book a 30-minute call](https://cal.com/paras-madan/30min).
