Skip to content
Garvit Pahal
Building durable systems and AI products

Which embedding setup works best for PDF retrieval

Jul 2025

The best setup I tested reached 94.0% NDCG@5 at finding the right PDF page. It combined Cohere's multimodal embedder on page images, Colnomic's multi-vector embedder, BGE-M3 sparse retrieval and Voyage's reranker. Colnomic alone, with sparse retrieval and the reranker, came close at 93.8%. The best dense text embedder on parsed pages reached 84.0% on its own.

Why build it

Much of the world's private knowledge lives in PDFs: contracts, reports, filings, manuals and papers. Adobe estimates there are more than 3 trillion of them, and most were never on the public web, so models weren't trained on them. To use them, you have to search them.

A RAG system over PDFs has to find the right page before a model can answer from it. Each retrieval choice adds cost and latency, so I wanted numbers on which ones pay off.

How it works

I used a subset of the PDFs in OHR-Bench, across seven domains: academic, administration, finance, law, manuals, news and textbooks. Each setup returns its top five pages for a query, scored with NDCG@5.

I compared:

The best of each kind:

Setup Alone Reranked Sparse and reranked
Text dense (Voyage) 84.0% 89.5% 91.1%
Image dense (Cohere) 85.8% 91.5% 92.6%
Text multi-vector (Jina) 87.9% 91.3% 91.9%
Image multi-vector (Colnomic) 91.4% 93.5% 93.8%
Best combination - - 94.0%

Outcome

  1. Always rerank. Reranking lifted every embedder, by 2.1 to 9.2 points. It took the weakest, Gemini on text, from 76.6% to 85.8%.
  2. Embed the page, not only its text. Cohere on page images beat the best text embedder, and even Voyage on the dataset's ground-truth text reached only 86.4%. Images help most with figures, tables and charts.
  3. Combining helps, with diminishing returns. Sparse retrieval raised every setup. A second embedder added only 0.2 points over Colnomic alone and costs more, and multi-vector models are already the slowest and priciest to query.
  4. A cheap parser is enough. With Voyage, Contextual AI scored 84.2% and Landing AI 82.9%, against 84.0% for Marker, at roughly 10 to 13 times the cost.

Finance was the hardest domain throughout: even the best combination reached only 88.1% there. Voyage, Cohere and Marker were the most reliable providers. Jina and Landing AI returned many server errors, so some runs had to be repeated.

Resources