Skip to content

Commit 7b1287f

Browse files
committed
fix: additional nondeterminism in intrinsic tests
1 parent 5eba4fb commit 7b1287f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/stdlib/components/intrinsic/test_rag.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ def test_hallucination_detection(backend):
156156
result = rag.flag_hallucinated_content(assistant_response, docs, context, backend)
157157
# pytest.approx() chokes on lists of records, so we do this complicated dance.
158158
for r, e in zip(result, expected, strict=True): # type: ignore
159-
assert pytest.approx(r, abs=2e-2) == e
159+
assert pytest.approx(r, abs=3e-2) == e
160160

161161
# Second call hits a different code path from the first one
162162
result = rag.flag_hallucinated_content(assistant_response, docs, context, backend)
163163
for r, e in zip(result, expected, strict=True): # type: ignore
164-
assert pytest.approx(r, abs=2e-2) == e
164+
assert pytest.approx(r, abs=3e-2) == e
165165

166166

167167
@pytest.mark.qualitative

0 commit comments

Comments
 (0)