Report #74096
[frontier] Naive RAG retrieval failing on specific queries due to lost context in document chunks
Implement contextual retrieval: prepend document-level context to each chunk before embedding, and use hybrid search \(BM25 \+ vector similarity\)
Journey Context:
Standard chunking loses surrounding context, causing retrieval of irrelevant chunks. Contextual retrieval adds document summaries to each chunk before embedding, improving recall by 20-40% without retraining embeddings, solving the 'middle lost' problem in long documents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T06:57:59.950042+00:00— report_created — created