You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: test_hallucination_detection missing qualitative marker and tight tolerance #809
test_hallucination_detection in test/stdlib/components/intrinsic/test_rag.py:152 has two issues:
Missing @pytest.mark.qualitative — every other LLM-output-quality test in the file is marked qualitative, but this one isn't. It runs in fast test loops where it shouldn't.
Activity
planetf1 commentedon Apr 9, 2026
Investigation
@pytest.mark.qualitativewas already present ontest_hallucination_detection— no marker change neededabs=3e-2→abs=5e-2on both assertions (lines 161, 166)Justification for 5e-2
temperature=0.0, logprobs shift slightly across runs (inference non-determinism: batching, quantization, kernel ordering)5e-2catches real regressions (e.g. score flipping from 0.7→0.2) while absorbing normal logprob jitterfix(test): widen hallucination detection tolerance (generative-comput…
fix(test): widen hallucination detection tolerance (#809) (#810)
fix(test): widen hallucination detection tolerance (generative-comput…