Vibeleaderboard
← All Intel
Intel / article

Contextual Retrieval

Source
anthropic.com
Publisher
Anthropic
Author
Anthropic News
Date

Context

Anthropic's Contextual Retrieval helps search recover document fragments that lose their meaning when separated from the surrounding text. Before indexing, a model adds a short explanation of each fragment's place in the whole document. Both meaning-based search and exact-word search then use that enriched text.

In its reported experiments, averaged across test collections that included codebases, fiction and scientific papers, combining those two contextualized searches reduced the top-20 retrieval failure rate from 5.7% to 2.9%. That measures how often relevant material failed to appear among the 20 retrieved fragments, so it concerns the search step itself rather than the quality of final answers.

Terms in this piece · Glossary
  • Document chunking — Splitting source material into units that can be indexed and retrieved.
  • Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
  • reranking — A second pass that re-scores retrieved candidates by reading each one against the query, fixing the ordering that fast vector search got approximately right.
  • prompt caching — Reusing the model's processed form of a repeated prompt prefix so subsequent calls skip re-reading it, cutting cost and latency substantially.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source www.anthropic.com
More from Anthropic News
Recommended reads