Contextual Retrieval & Late Chunking
Contextual retrieval and late chunking are document-ingestion techniques designed to preserve global document context when splitting text into retrieval chunks. Contextual retrieval prepends a concise, model-generated situating summary to each chunk before embedding and lexical indexing; late chunking applies a long-context embedding model to the entire document first and pools token representations into chunks only after full-document self-attention has occurred. Both methods mitigate out-of-context reference failures in standard RAG pipelines, but neither substitutes for query-time reranking or fixes downstream reasoning errors over retrieved passages.
Origin and context
Traditional RAG ingestion splits documents into fixed 200–500 token passages before encoding. As a result, a chunk stating "The company’s revenue grew by 3% over the previous quarter" loses the entity name and reporting period that appeared on page one. In August 2024, researchers at Jina AI introduced Late Chunking, leveraging 8K-token bi-encoders to run transformer self-attention across the entire document prior to mean-pooling chunk spans. In September 2024, Anthropic introduced Contextual Retrieval, using prompt-cached LLM calls to prepend a 50–100 token document-specific header to every chunk before computing both dense embeddings and BM25 lexical indexes.
Why it matters
Coreference resolution and implicit document scope are among the most common causes of retrieval misses in enterprise RAG. When chunks are embedded in isolation, queries naming both an entity and a metric fail to match passages that use pronouns or section-inherited context. Contextual retrieval enriches both vector and BM25 lexical search with explicit entity names and dates, while late chunking achieves context conditioning at native embedding inference speed without invoking a generative LLM for every chunk.
Example
When indexing an SEC 10-K filing, a contextual-retrieval pipeline caches the full filing in the LLM prompt cache and asks the model to generate a two-sentence header for each chunk (for example, "This chunk is from ACME Corp’s Q2 2025 10-K filing discussing European cloud segment operating margins"). That header is prepended to the raw passage before indexing in OpenSearch and pgvector. Alternatively, a late-chunking pipeline feeds the entire 6,000-token section into `jina-embeddings-v3`, extracts the contextualized token embeddings, and pools them by paragraph boundaries.
Maturity and evidence
Limits and open questions
Contextual retrieval requires an LLM generation pass per chunk at indexing time; even with prompt caching reducing input token costs, re-indexing millions of rapidly changing documents adds nontrivial ingestion latency and cost. Late chunking avoids generative LLM cost but is bounded by the maximum context window of the embedding model and does not enrich lexical BM25 indexes with explicit keywords.
Related terms
References
- Introducing Contextual RetrievalAnthropic · 2024-09-19 · class A
- Late Chunking: Contextual Chunk Embeddings Using Long-Context Embedding ModelsGünther et al. / Jina AI (arXiv) · 2024-09-07 · class A
- Anthropic Cookbook: Contextual Embeddings Implementation GuideAnthropic / GitHub · 2024-09-19 · class B
Last updated: 2026-10-19
This term is also covered in the Skills Atlas as retrieval augmented generation skill.
This term is also covered in the Skills Atlas as dense retrieval skill.
This term is also covered in the Skills Atlas as embedding models skill.
This term is also covered in the Skills Atlas as context engineering skill.
This term is also covered in the Skills Atlas as contextual retrieval skill.
Referencing this analysis in documentation, research, or an engineering write-up? Copy a formatted link or citation below:
Show citation text & canonical URL
[Contextual Retrieval & Late Chunking — AI Glossary — Skills Intelligence](https://www.skillsintelligence.tools/glossary/term/contextual-retrieval-late-chunking)Skills Intelligence. (2026). Contextual Retrieval & Late Chunking — AI Glossary. Skills Intelligence AI Glossary. Retrieved from https://www.skillsintelligence.tools/glossary/term/contextual-retrieval-late-chunking