Skip to content

Commit 01c5c89

Browse files
Docs: Comparison tolerance
1 parent b878f41 commit 01c5c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ matches = index.search(vector, 10)
133133

134134
assert matches[0].key == 42
135135
assert matches[0].distance <= 0.001
136-
assert np.allclose(index[42], vector)
136+
assert np.allclose(index[42], vector, atol=0.1) # Ensure high tolerance in mixed-precision comparisons
137137
```
138138

139139
More settings are always available, and the API is designed to be as flexible as possible.

0 commit comments

Comments
 (0)