RAG hallucination detection with a self-healing layer
An LLM can retrieve the right document and still quote the wrong price. This is the detection and healing layer I built to catch that: five failure patterns, a faithfulness score, deterministic patches, and a SQLite drift monitor that caught a real bug in staging.