Skip to main content

Module evaluate

Module evaluate 

Source
Expand description

Turn the support arithmetic into a verdict, and resolve provenance citations into the facts the arithmetic needs.

Functions§

evaluate_grounding
Grounding score for claim against the resolved cited facts, as a verdict under thresholds. Empty evidence ⇒ Ungrounded(0.0) (fail closed).
evaluate_output_grounding
End-to-end gate input: resolve the citations and grade the claim in one call. If no citation resolves (no evidence available), returns Ungrounded(0.0) — fail closed.
grounding_verdict
Partition a raw grounding score into a verdict.
resolve_citations
Resolve a slice of provenance citation hashes to their fact quins via resolver, dropping any that do not resolve. The output is what evaluate_grounding consumes.