How do you evaluate hallucination in an LLM extraction pipeline?medium
Answer
(1) Grounding check: verify extracted values appear in or are entailed by source document.
Explanation
(1) Grounding check: verify extracted values appear in or are entailed by source document. (2) Contradiction detection: run NLI model to check if extraction contradicts the source. (3) LLM-as-judge: second LLM verifies if extraction is supported by document. (4) Track null-vs-hallucinated rate: model should return null for absent fields, not fabricate values.
Follow-upHow would you monitor this in production?