doc_qa
doc_qa
¶
doc_qa scorer — fact match, citation check, and checklist evaluation.
Tier 1 (fact match): Check if model answer contains each required fact. Tier 1 (citation check): Verify document citations match expected sources. Tier 2 (checklist): Binary checklist for grounding and accuracy.
Score: (facts_found/total) * 0.5 + (citations_correct/citations_made) * 0.3 + checklist * 0.2