usearch 0.17.0 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +1 -1
- package/conanfile.py +1 -1
- package/package.json +1 -1
- package/python/scripts/test.py +3 -1
package/Cargo.toml
CHANGED
package/conanfile.py
CHANGED
|
@@ -4,7 +4,7 @@ from conans import ConanFile
|
|
|
4
4
|
class USearchConan(ConanFile):
|
|
5
5
|
|
|
6
6
|
name = 'USearch'
|
|
7
|
-
version = '0.17.
|
|
7
|
+
version = '0.17.1'
|
|
8
8
|
license = 'Apache 2.0'
|
|
9
9
|
url = 'https://github.com/unum-cloud/usearch'
|
|
10
10
|
description = 'Smaller & Faster Single-File Vector Search Engine from Unum'
|
package/package.json
CHANGED
package/python/scripts/test.py
CHANGED
|
@@ -6,6 +6,7 @@ from usearch.io import load_matrix, save_matrix
|
|
|
6
6
|
from usearch.eval import recall_members, random_vectors
|
|
7
7
|
|
|
8
8
|
from usearch.index import Index, SparseIndex, MetricKind, ScalarKind, Matches
|
|
9
|
+
from usearch.index import _normalize_dtype
|
|
9
10
|
from usearch.index import (
|
|
10
11
|
DEFAULT_CONNECTIVITY,
|
|
11
12
|
DEFAULT_EXPANSION_ADD,
|
|
@@ -131,7 +132,8 @@ def test_index_batch(
|
|
|
131
132
|
assert matches.counts.shape[0] == batch_size
|
|
132
133
|
assert np.all(np.sort(index.labels) == np.sort(labels))
|
|
133
134
|
|
|
134
|
-
|
|
135
|
+
if _normalize_dtype(numpy_type) == _normalize_dtype(index_type):
|
|
136
|
+
assert recall_members(index, exact=True) == 1
|
|
135
137
|
|
|
136
138
|
|
|
137
139
|
@pytest.mark.parametrize('ndim', dimensions)
|