< CollectionsArticle
Contextual Retrieval.
A chunk loses its context when it is cut out. Put the context back before you index, and search with BM25 as well as embeddings.
5 sections · 9 problems
0 of 9 done
Start Next: 01 Build a Document Chunker
Section 01
Chunks lose context
0 of 2
The article: A chunk on its own often lacks what it refers to, so the search that should find it misses. A short context written from the whole document puts it back.
Section 02
Embeddings and BM25
0 of 3
The article: Embeddings miss exact terms like an error code; BM25 catches them, so run both and fuse the rankings.
Section 03
Reranking
0 of 2
The article: Retrieve a wide set, then rerank it and keep only the top chunks.
Section 04
Measure the failures
0 of 1
The article: Count how often the right chunk is missing from the top twenty.
Section 05
Prompt caching
0 of 1
The article: Writing context for every chunk is cheap when the document stays in the cache.