Every Citation Right, Answer Still Wrong 9/9: Code-Checked Conditions Fixed RAG to 5/6

International_Elk_33 · reddit · 2026-10-18

A developer recounts how their RAG engine answered a Canadian tax question wrong 9 times while every sentence was correctly cited and passed fact-checking — the model applied the wrong case of the rule (deducting moving costs from a scholarship instead of job pay).

The fix (0/9 → 5/6): stop letting the model judge whether a rule applies. The model rewrites each rule's conditions as yes/no questions quoting the rule's own words; answers may only copy the asker's own words, otherwise "unsettled"; code compares both quotes and decides applies / doesn't apply / can't tell.

Supporting techniques:

Cost: 15–25s and under a cent extra, only on personal-situation questions. The underlying method is documented on SSRN with a benchmark over all 34,735 FDA drug labels.

Original post →

More from coding & agent

coding & agent channel →