Skip to content

Regression check: raise the hallucination limit from 0.10 to 0.15 - #8

Merged
MAOFILHO merged 1 commit into
mainfrom
ci/hallucination-threshold
Dec 3, 2026
Merged

MAOFILHO merged 1 commit into
mainfrom
ci/hallucination-threshold

Conversation

@MAOFILHO

@MAOFILHO MAOFILHO commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Why

CI run 47032655563 failed on code that only changed 4 workflow lines:

[ChromaDB MMR (Diversity)] Hallucination Rate: 0.0234 -> 0.1310 (increased by 0.1076, threshold 0.1)

Hallucination Rate is an LLM-judge score over 10 samples, so one answer judged differently shifts it by ~0.10. Across two CI runs of identical benchmark code:

Pattern Run 1 Run 2
ChromaDB MMR 0.031 0.131
ChromaDB Similarity 0.133 0.100
OpenAI File Search 0.058 0.036

Change

  • src/config.py: default REGRESSION_HALLUCINATION_INCREASE_THRESHOLD 0.10 -> 0.15, with a comment on why
  • README.md: documented default updated
  • tests/test_smoke.py: 2 tests on _check_metric_group: the observed +0.1076 noise passes, a +0.18 rise fails

Still overridable via env, as before.

Test plan

  • New noise test failed at 0.10 (red), passes at 0.15 (green)
  • pytest tests/test_smoke.py: 12 passed

🤖 Generated with Claude Code

Hallucination Rate is judged on 10 samples, so one answer judged
differently moves it by about 0.10. Two CI runs of identical code
differed by 0.10 on ChromaDB MMR (0.031 vs 0.131), which failed the
check with no real change. 0.15 still catches a rise of 1.5+ answers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@MAOFILHO
MAOFILHO merged commit 0ff10c6 into main Dec 3, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant