#3401·deepeval

score_qag_verdicts: remaining conversational call sites still shrink the denominator (follow-up to #3347)

Author: kittimzheCreated Oct 1, 2026Updated Oct 1, 2026

Follow-up to #3347, which wired expected_count into the single-turn QAG metrics. This issue tracks the remaining call sites so the residual work is on record — the site list is @shaurya416's from the #3347 review, verbatim credit; filing it as promised there.

At b25a5e9, 20 call sites use score_qag_verdicts; #3347 covers 11. The remaining 7 all still shrink the denominator the same way (a truncated [yes] for 3 asked items scores 1.0), and split into three buckets:

Bucket A — a count is available, mechanical to wire (5 sites):

  • conversation_completeness.py:339 — user intentions
  • knowledge_retention.py:358 — eligible turns
  • turn_relevancy.py:308 — windows
  • turn_faithfulness.py:441, 455 — claims (two call sites)

Bucket B — no count knowable before the verdicts return (2 sites):

  • turn_contextual_recall.py:422, turn_contextual_relevancy.py:433 — the judge splits the text itself on the LLM path, so nothing is countable in advance. This is the same blocker that kept Python's contextual recall out of #3347, so whatever mechanism eventually covers them (a verdict-count-vs-asked heuristic, or a template emitting an explicit count) should be designed once, for both languages.

Bucket C — orthogonal caveats, not fixed by expected_count alone:

  • turn_faithfulness, turn_contextual_recall and turn_contextual_relevancy return 1 on an empty verdict list before calling score_qag_verdicts (e.g. turn_contextual_recall.py:381, 403), so their empty case needs a separate semantic decision about what an empty conversational verdict set should score.
  • tests/test_metrics/test_turn_relevancy_aggregation.py:175 (test_failed_verdicts_are_excluded_from_denominator) pins [None, no, None, yes] -> 0.5 — exactly the rule #3347 replaces for single-turn metrics, so extending to the conversational ones means updating that test as part of the work.

Happy to take Bucket A (each site with its own test updates) once there's a nod on the direction; Bucket B wants a design decision before code.