🔎Contextual Retrieval
Also known as Contextual Embeddings, Contextual Chunk Headers, Contextual BM25
Each chunk gets a short note that says where it came from.
Think of it like
It is like writing the book name on each torn page. Each page still makes sense.
Example
Anthropic tested it in 2024. Adding notes cut failed searches by 49%, and by 67% with reranking on top.
Why it matters
Chunks lose their context when cut out. This puts the context back, so fewer facts get lost.
Definition
Common mistake
Key takeaways
- 1Note each chunk. Where it fits in the document.
- 2Before indexing. Into vectors and keywords both.
- 3Fewer misses. Lonely chunks become findable.