Context compaction silently reordered my retrieved chunks — an ordering checklist for RAG builders
I had a RAG pipeline on top of a 90-page contract. Converted with the doc-to-markdown endpoint, chunked by section, retrieved top-5 by cosine, concatenated into the context window. Answers looked fine for a week, then a reviewer caught that my agent was citing terms in an order that contradicted th…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-12-02 04:01 · DEV Community — AI
Context compaction silently reordered my retrieved chunks — an ordering checklist for RAG builders