



Anthropic's RAG technique that prepends chunk-specific explanatory context before embedding, reducing failed retrievals by 49% (67% with reranking). Uses Contextual Embeddings and Contextual BM25.
Loading more......
Contextual Retrieval is Anthropic's RAG technique that dramatically improves retrieval accuracy by adding chunk-specific context before embedding and indexing.
Traditional RAG splits documents into chunks that may lack sufficient context. Individual chunks might not specify:
Generate chunk-specific contextual text explaining:
Ideal for knowledge bases larger than 200,000 tokens (~500 pages). Smaller knowledge bases can be included entirely in prompts.
Supported in:
Technique available for free implementation. Costs associated with LLM calls for context generation and vector database storage.