Fix RAG Hallucinations by Tightening All Four Context‑Engineering Stages
The post shows that RAG hallucinations stem from four upstream "bricks"—parsing, question parsing, retrieval, and generation—each handing the model the wrong context. By tightening contracts at every stage, the author eliminates confident but incorrect answers on real NIST and World Bank documents. The attached notebook lets you reproduce the fixes yourself.