Composite Quality Gate
- The gate and the scores on this page are the project's own and self-reported, from February to March 2026 evaluation runs. The golden-question pass rate measures entity recall and must-refuse behaviour only; it is not evidence of answer correctness or grounding.
- The automated faithfulness judge stopped running silently in mid-May 2026, so faithfulness scores after that point are invalid and are not cited as current evidence anywhere in this documentation.
Problem: Single-Metric Pass/Fail with LLM-as-Judge
When a large language model is used as the evaluation judge (through DeepEval's faithfulness metric), the project found a systematic false-negative pattern: answers that are more detailed than the ground truth received faithfulness scores of 0.00, even when they appeared correct and consistent with the source documents.
The failure mode
The faithfulness metric extracts claims from the answer and checks each against the retrieved chunks. It scored 0.00 when:
- Taxonomy enrichment: the answer included doctor names from the curated taxonomy, injected after retrieval and therefore absent from the retrieved chunks. The judge saw "unsupported claims".
- Name-heavy answers: questions such as "Which doctors work in Neurology?" produce answers listing ten or more names, which the judge struggled to match against long chunk texts.
- Over-detailed answers: the system gave details (addresses, phone numbers, opening hours) beyond the ground truth, and the judge penalised the extra information.
Evidence (February to March 2026 runs, self-reported)
| Question | Faithfulness | Entity recall | Relevancy | Interpretation |
|---|---|---|---|---|
| Neurology doctors (one golden question) | 0.00 | 1.00 | 1.00 | Correct doctors listed; judge could not verify names |
| Neurology consultations | 0.00 | 1.00 | 1.00 | Doctor list came from taxonomy enrichment, not chunks |
| Wheelchairs available | 0.25 | 1.00 | 1.00 | Answer included deposit information not in the ground truth |
In these cases entity recall and relevancy were both 1.00 and only faithfulness failed.
The Composite Gate
Instead of failing an answer on faithfulness alone, the composite gate uses several metrics. An answer passes if:
- Path 1: faithfulness is at least 0.5; or
- Path 2: faithfulness is lower, but entity recall is at least 0.75 and relevancy is at least 0.5 (strong evidence from two other metrics).
An answer fails if faithfulness is below 0.3 with no compensating metrics, or if relevancy is below 0.25.
Why this was considered defensible
- The raw faithfulness score is always recorded and reported; the gate stops it being the sole arbiter, it does not hide it.
- When two metrics confirm the answer, a third metric's failure may be a measurement limitation rather than a defect.
- Difficulty in judging faithfulness for name-heavy and taxonomy-enriched answers is documented in the LLM-evaluation literature (Zheng et al. 2023; Es et al. 2023).
- The alternative, adjusting ground truths to match every possible answer detail, overfits the evaluation to one output format.
The trade-off, stated plainly
The same design means a low faithfulness score can be outvoted. Entity recall (does the expected name appear) is a weak proxy for correctness, so the composite gate can pass an answer that is relevant and contains the right names but is not well grounded. The June 2026 dose incident was a failure of exactly this kind, in a related check: the grounding check confirmed that a dose appeared in a cited source, not that it applied to the person asking. The project therefore does not treat the gate as a safety control; safety is covered by separate must-refuse tests (the project's own, with the gaps described on the Safety overview). See the Evaluation Overview and the Safety overview.
Taxonomy Enrichment in Evaluation Contexts
To reduce the faithfulness gap, the evaluation runner also extracted the taxonomy-enriched lines from each answer and supplied them to the judge as additional, tagged context, so that doctor names from the curated taxonomy (an operator-approved source) were visible to the evaluator.
Evaluation Model Calibration (early 2026)
| Eval model | Faithfulness range | Relevancy range | Notes |
|---|---|---|---|
| GPT-4.1 mini | 0.80 - 1.00 | 0.85 - 1.00 | Lenient, fast, cheap |
| GPT-5.2 | 0.00 - 1.00 | 0.27 - 1.00 | Stricter; catches real issues and creates false negatives |
| GPT-5.4 | Similar to GPT-5.2 | Similar to GPT-5.2 | Marginal improvement, twice as slow; not recommended for evaluation |
Empirical Calibration
The 0.50 faithfulness threshold and the 0.75 and 0.50 fallback values were calibrated against the project's golden-evaluation runs (the raw run reports are kept in the project repository). A documentation-readiness review in May 2026 did not move the threshold: the false-negative pattern is structural to LLM-as-judge evaluation, and lowering the threshold further would weaken the gate's ability to catch unfaithful generations.
Related
- Golden Questions v3.6: the 302-question evaluation benchmark
- Query Enrichment Pipeline: how SNOMED and taxonomy expansion improve retrieval
- Evaluation Overview: all scores, labelled self-reported
- Canonical bibliography:
/docs/references