LIVEยทThe trends shaping tomorrow's world.
AI

Advanced Document Retrieval Techniques

Beyond basic vector search: HyDE, multi-vector and late-interaction retrieval (ColBERT, ColPali), propositions and RAPTOR trees, and when each pays off.

Advanced document retrieval techniques fix the places where basic vector search breaks down: queries that look nothing like the answer, documents too long or too visual for one embedding, and questions that need a summary of many passages rather than one. They work at three points in the pipeline: rewriting the query (HyDE), changing how documents are represented (multi-vector and late-interaction models like ColBERT and ColPali), and restructuring the index (propositions, RAPTOR trees, knowledge graphs). Each adds cost, so use them where your measurements show a gap.

Where basic retrieval falls short

A standard RAG pipeline splits documents into chunks, turns each chunk into one embedding, and returns the chunks nearest to the query's embedding. That's covered in our explainers on embedding models and vector databases. It fails in a few predictable ways:

  • The query and the answer don't look alike. A short question and a long explanatory passage can sit far apart in embedding space.
  • One vector per chunk is a bottleneck. Luan and colleagues showed theoretically and empirically that fixed-length vectors have limited capacity to support precise retrieval of long documents [2].
  • The answer is spread across the corpus. Questions such as "What are the main themes?" need a summary, not the top five chunks. Microsoft's GraphRAG paper argues that conventional RAG "fails on global questions" because they're a summarization task, not a lookup [8].
  • The meaning is in the layout. Tables, charts and slide decks lose information when flattened to text before embedding [5].
  • New domains. The BEIR benchmark found dense retrievers often underperform out of domain, where BM25 stays robust [9].

Before reaching for anything below, check the basics: hybrid search for exact terms, a reranker for ordering, and sensible chunking. Those three fix many retrieval problems at lower cost.

Query-side: HyDE

Hypothetical Document Embeddings (HyDE) changes what you search with. Instead of embedding the question, you ask a language model to write a passage that would answer it, then embed that passage and search for real documents near it [1].

The idea, from researchers at Carnegie Mellon and the University of Waterloo, is that a fake answer looks more like a real answer than a question does. The generated passage "is unreal and may contain false details," but the authors argue the encoder acts as a lossy compressor that filters out those details, and the search step grounds the result in real documents [1]. No model is trained: both the generator and the encoder are used off the shelf [1].

What the paper reports. Using InstructGPT and the unsupervised Contriever encoder, HyDE significantly outperformed Contriever alone across web search, question answering and fact-checking tasks, and in several languages [1]. Against retrievers fine-tuned on large labeled datasets, it was competitive in some cases and behind in others: on the TREC DL20 web-search set, about 10% lower on MAP and nDCG@10 than a fine-tuned Contriever [1].

Trade-offs. Every query now costs a language-model call before retrieval starts, which adds latency and spend. If the generated passage goes confidently in the wrong direction, retrieval follows it. The authors themselves frame HyDE as most useful early in a system's life, before you have the query logs and labels to train a supervised retriever, with traffic shifting to the trained model as it improves [1].

Use it when you have no labeled data, queries are short and answers are long, and you can afford an extra model call per query.

Representation-side: more than one vector per document

Multi-vector encodings

The simplest fix for the one-vector bottleneck is to store several. Luan and colleagues' ME-BERT represents each document by its first m contextual token vectors and scores a document by the best inner product between the query vector and any of them [2]. Because it's still a maximum over vectors, standard nearest-neighbor search works: you add m entries per document to the index, which grows by a factor of m [2].

The same idea appears in practical form as indexing several vectors per document (for example, one per section, a summary vector and the full text) and mapping any hit back to the parent document.

Late interaction: ColBERT

ColBERT, from Stanford, goes all the way to one vector per token [3]. Query and document are encoded separately, so document vectors can be computed offline like any bi-encoder. At query time, each query token finds its most similar document token (a "MaxSim"), and those maxima are summed into the score [3]. That keeps fine-grained, word-level matching without running the full query and document through a transformer together, as a cross-encoder reranker does.

The 2020 paper reported effectiveness competitive with BERT-based rerankers of the time while running "two orders-of-magnitude faster" with "four orders-of-magnitude fewer FLOPs per query," on the MS MARCO and TREC CAR passage-search datasets [3].

The catch is storage. Per-token vectors inflate the index "by an order of magnitude" compared with single-vector models [4]. ColBERTv2 attacks that with residual compression and a denoised training strategy, and its authors report a 6 to 10 times smaller footprint for late-interaction indexes along with state-of-the-art quality on the benchmarks they tested [4].

Retrieval over page images: ColPali

ColPali applies late interaction to pictures of pages. Instead of running OCR, layout detection, chunking and captioning, it uses a vision-language model to produce multi-vector embeddings directly from page images, and matches queries with ColBERT-style late interaction [5]. Its authors found that in visually rich documents the ingestion pipeline, not the text embedding model, was often the main bottleneck, and introduced the ViDoRe benchmark to test this; they report ColPali "largely outperforms" the text pipelines they compared while being simpler and faster to index [5].

Use multi-vector or late interaction when documents are long or dense with detail, exact wording inside passages matters, or your corpus is slides, scanned forms or PDFs full of tables. Budget for a larger index and a search engine that supports multi-vector scoring.

Index-side: changing what you store

Propositions instead of passages

Dense X Retrieval asks what unit to index: passages, sentences or propositions, defined as atomic, self-contained statements of fact [6]. Its example: rather than a full passage about the Leaning Tower of Pisa, index "The Leaning Tower of Pisa now leans at about 3.99 degrees." In the authors' experiments on Wikipedia, retrieving by propositions gave the best average results for both passage retrieval and downstream question answering [6]. They note the study covered only Wikipedia [6], and turning a corpus into propositions takes a model pass over every document. Our chunking guide covers where this fits among chunking strategies.

Summary trees: RAPTOR

RAPTOR (Recursive Abstractive Processing for Tree-Organized Retrieval) builds a tree of summaries [7]. It embeds chunks, clusters them (with soft clustering, so a chunk can belong to more than one cluster), has a language model summarize each cluster, then repeats on the summaries until it reaches the top [7]. At query time you can walk the tree from the top down, or "collapse" it and search all levels at once; in the authors' tests the collapsed approach consistently performed better [7].

Because high-level summaries are searchable, a question like "How did Cinderella reach her happy ending?" can retrieve a node that already integrates the whole story, which no single chunk contains [7]. The authors report that RAPTOR with GPT-4 improved the best published result on the QuALITY reading-comprehension benchmark by 20 points of absolute accuracy at the time [7].

Knowledge graphs: GraphRAG

GraphRAG uses a language model to extract entities and relationships into a knowledge graph, groups the graph into communities and pre-writes a summary of each, then answers broad questions by combining community summaries [8]. It targets "global" questions about a whole corpus. We compare it in detail in Graph RAG vs traditional RAG.

Agentic retrieval

Finally, you can let a model decide how to retrieve: rewrite the query, search several sources, check what came back and try again. That's covered in agentic RAG architecture.

Techniques compared

Technique

What it changes

Extra cost

Best for

Main risk

HyDE [1]

Query: search with a generated answer

One LLM call per query

No labeled data; short questions, long answers

Generated passage steers retrieval wrong

Multi-vector (ME-BERT style) [2]

Several vectors per document

Index grows by the number of vectors

Long documents

More storage; duplicate hits to collapse

Late interaction (ColBERT) [3][4]

One vector per token, MaxSim scoring

Larger index (reduced by v2 compression)

Precise, detail-heavy passages

Engine support; storage

ColPali [5]

Embeds page images, not extracted text

Vision model at indexing and query

Slides, scans, tables, charts

Index size; text-only tooling

Propositions [6]

Indexes atomic facts

LLM pass over the corpus

Fact lookups

Lost context between facts; tested on Wikipedia only

RAPTOR [7]

Adds a tree of cluster summaries

LLM summarization at index time

Long documents, thematic questions

Summary errors; rebuilds as content changes

GraphRAG [8]

Adds entity graph and community summaries

Heavy LLM extraction at index time

Corpus-wide "themes" questions

Indexing cost; extraction errors

Limitations and risks

  • Benchmarks aren't your data. Every figure above comes from the cited paper's datasets. Several techniques were tested mainly on Wikipedia, MS MARCO or reading-comprehension sets.
  • Generated text enters the index or the query. HyDE, RAPTOR, propositions and GraphRAG all rely on model-written text. Errors there become retrieval errors, and model-written summaries can lose qualifiers that mattered.
  • Index-time cost and freshness. Techniques that summarize or extract at index time must re-run when documents change.
  • Operational complexity. Multi-vector and late-interaction retrieval need storage and engine support that a basic vector index may not provide.
  • Security. More model-written content in the index means more places for a poisoned document to spread; see RAG security.

How to choose

  1. Measure first. Build a test set of real questions with known relevant documents and track Recall@K and MRR, plus end-to-end answer quality with a framework such as RAGAS.
  2. Fix the cheap things. Chunking, hybrid search and a reranker.
  3. Diagnose the failure, then pick the technique:
    • Questions don't resemble answers, and you have no training data: try HyDE.
    • Relevant documents are retrieved but ranked low because the match is in a detail: try late interaction, or rerank.
    • Your corpus is visual: try ColPali-style page retrieval.
    • Users ask for summaries across many documents: try RAPTOR or GraphRAG.
    • Answers are single facts buried in long passages: try proposition indexing.
  4. A/B test against the baseline on the same questions, and watch latency and cost.

Outlook

The research direction is clear from the papers themselves: richer representations (many vectors instead of one, images instead of extracted text) and richer indexes (summaries, graphs) built with language models. HyDE's authors explicitly raise whether stronger language models could take over more of the relevance work from retrievers, but caution that "more works need to be done" [1]. We expect more of these techniques to arrive as built-in options in search engines and vector databases, which will lower the engineering cost but not the need to measure.

Frequently asked questions

What is the difference between ColBERT and a normal embedding model?

A normal (bi-encoder) embedding model produces one vector per text. ColBERT keeps one vector per token and scores a document by matching each query token to its most similar document token, then summing [3]. It's more precise on details but needs much more storage [4].

Does HyDE make answers hallucinate?

HyDE's generated passage may contain false details, but it's only used to search, not shown to the user or passed to the final model as evidence [1]. The retrieved real documents are what ground the answer. The risk is retrieval drifting toward the wrong topic.

Is RAPTOR the same as GraphRAG?

No. Both build summaries at index time, but RAPTOR clusters text chunks by embedding similarity into a summary tree [7], while GraphRAG extracts entities and relationships into a graph and summarizes graph communities [8].

Do I need ColPali for PDFs?

Only if important meaning sits in layout, charts or tables that text extraction loses. ColPali's authors found ingestion was often the bottleneck for visually rich documents [5]. For text-heavy PDFs, good text extraction and chunking may be enough.

Which technique should I try first?

Usually none of these. Start with hybrid search and a reranker, measure, and only add an advanced technique when the failures you see match what it fixes.

Sources

  1. Gao, L., Ma, X., Lin, J. and Callan, J. "Precise Zero-Shot Dense Retrieval without Relevance Labels." arXiv:2212.10496, 2022. https://arxiv.org/abs/2212.10496
  2. Luan, Y., Eisenstein, J., Toutanova, K. and Collins, M. "Sparse, Dense, and Attentional Representations for Text Retrieval." arXiv:2005.00181, 2021. https://arxiv.org/abs/2005.00181
  3. Khattab, O. and Zaharia, M. "ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERT." SIGIR 2020. https://arxiv.org/abs/2004.12832
  4. Santhanam, K. et al. "ColBERTv2: Effective and Efficient Retrieval via Lightweight Late Interaction." NAACL 2022. arXiv:2112.01488. https://arxiv.org/abs/2112.01488
  5. Faysse, M. et al. "ColPali: Efficient Document Retrieval with Vision Language Models." ICLR 2025. https://arxiv.org/abs/2407.01449
  6. Chen, T. et al. "Dense X Retrieval: What Retrieval Granularity Should We Use?" EMNLP 2024. https://arxiv.org/abs/2312.06648
  7. Sarthi, P. et al. "RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrieval." ICLR 2024. https://arxiv.org/abs/2401.18059
  8. Edge, D. et al. "From Local to Global: A GraphRAG Approach to Query-Focused Summarization." arXiv:2404.16130, v2, February 2025. https://arxiv.org/abs/2404.16130
  9. Thakur, N. et al. "BEIR: A Heterogeneous Benchmark for Zero-shot Evaluation of Information Retrieval Models." NeurIPS 2021 Datasets and Benchmarks Track. arXiv:2104.08663. https://arxiv.org/abs/2104.08663