RAG & Retrieval·Question 76 of 100Quick-fire

What is contextual retrieval, and what problem does it fix?

Quick-fire answer from the Awesome Generative AI Guide (MIT)

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Standard chunking strips a chunk of its surrounding context, so "the revenue grew 3%" loses which company and which quarter it referred to, which hurts retrieval. Contextual retrieval, popularized by Anthropic, prepends a short model-generated description situating each chunk within its document before embedding and indexing it, so the chunk carries the context needed to be found. Reported results cut top-20 retrieval failures substantially, especially combined with BM25 and reranking. The tradeoff is a one-time ingestion cost to generate the context per chunk (mitigated by prompt caching), which is usually worth it for corpora where chunks are ambiguous out of context.

Full worked answer

Standard chunking strips a chunk of its surrounding context, so "the revenue grew 3%" loses which company and which quarter it referred to, which hurts retrieval. Contextual retrieval, popularized by Anthropic, prepends a short model-generated description situating each chunk within its document before embedding and indexing it, so the chunk carries the context needed to be found. Reported results cut top-20 retrieval failures substantially, especially combined with BM25 and reranking. The tradeoff is a one-time ingestion cost to generate the context per chunk (mitigated by prompt caching), which is usually worth it for corpora where chunks are ambiguous out of context.

Learn more: Anthropic: Contextual Retrieval

What a good answer covers

  • Standard chunking strips a chunk of its surrounding context, so "the revenue grew 3%" loses which…
  • Contextual retrieval, popularized by Anthropic, prepends a short model-generated description situating…
  • Reported results cut top-20 retrieval failures substantially, especially combined with BM25 and reranking
  • The tradeoff is a one-time ingestion cost to generate the context per chunk (mitigated by prompt…

Key terms: Learn more

Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep