In financial and healthcare RAG pipelines, a single hallucinated dosage (500mg instead of 5mg Warfarin) or misquoted filing figure ($18.9M instead of $12.4M Q3 revenue) creates severe compliance and safety liability—even when 90% of surrounding prose matches retrieved chunks so coarse document-level cosine similarity scores remain deceptively high.
Implement an online ClaimFaithfulnessJudge (src/prism_gate/evals/faithfulness.py) that:
$1,250,000 == $1250000, 5 mg == 5mg, 500mg != 5mg) and verifies exact quantitative grounding against retrieved chunks.recommended vs contraindicated, increased vs decreased).hallucination_detected == True from entering the semantic cache and triggers speculative frontier escalation when fast-tier RAG faithfulness < 0.75.