usearch 0.18.1 → 0.18.2
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/.github/workflows/release.yml +0 -2
- package/Cargo.toml +1 -1
- package/conanfile.py +1 -1
- package/docs/compilation.md +7 -0
- package/package.json +1 -1
- package/pyproject.toml +2 -2
- package/python/scripts/test.py +11 -10
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.18.
|
|
7
|
+
version = '0.18.2'
|
|
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/docs/compilation.md
CHANGED
package/package.json
CHANGED
package/pyproject.toml
CHANGED
|
@@ -12,7 +12,7 @@ filterwarnings = ["error"]
|
|
|
12
12
|
test-requires = ["pytest", "numpy"]
|
|
13
13
|
test-command = "pytest {project}/python/scripts/test.py"
|
|
14
14
|
build-verbosity = 0
|
|
15
|
-
skip = ["*musllinux*", "*i686*", "pp*"]
|
|
15
|
+
skip = ["*musllinux*", "*i686*", "pp*", "cp36-*"]
|
|
16
16
|
|
|
17
17
|
[tool.cibuildwheel.linux]
|
|
18
18
|
before-build = [
|
|
@@ -46,4 +46,4 @@ before-build = [
|
|
|
46
46
|
"git submodule update --init --recursive"
|
|
47
47
|
]
|
|
48
48
|
archs = ["x86", "AMD64"]
|
|
49
|
-
skip = ["*win32*", "pp*"]
|
|
49
|
+
skip = ["*win32*", "pp*", "cp36-*"]
|
package/python/scripts/test.py
CHANGED
|
@@ -172,16 +172,6 @@ def test_index_numba(ndim: int, batch_size: int):
|
|
|
172
172
|
assert recall_members(index, exact=True) == 1
|
|
173
173
|
|
|
174
174
|
|
|
175
|
-
@pytest.mark.parametrize('connectivity', connectivity_options)
|
|
176
|
-
def test_sets_index(connectivity: int):
|
|
177
|
-
|
|
178
|
-
index = SparseIndex(connectivity=connectivity)
|
|
179
|
-
index.add(10, np.array([10, 12, 15], dtype=np.uint32))
|
|
180
|
-
index.add(11, np.array([11, 12, 15, 16], dtype=np.uint32))
|
|
181
|
-
results = index.search(np.array([12, 15], dtype=np.uint32), 10)
|
|
182
|
-
assert list(results) == [10, 11]
|
|
183
|
-
|
|
184
|
-
|
|
185
175
|
@pytest.mark.parametrize('bits', dimensions)
|
|
186
176
|
@pytest.mark.parametrize('metric', hash_metrics)
|
|
187
177
|
@pytest.mark.parametrize('connectivity', connectivity_options)
|
|
@@ -196,3 +186,14 @@ def test_bitwise_index(bits: int, metric: MetricKind, connectivity: int, batch_s
|
|
|
196
186
|
|
|
197
187
|
index.add(labels, bit_vectors)
|
|
198
188
|
index.search(bit_vectors, 10)
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
@pytest.mark.parametrize('connectivity', connectivity_options)
|
|
192
|
+
@pytest.mark.skipif(os.name == 'nt', reason='Spurious behaviour on windows')
|
|
193
|
+
def test_sets_index(connectivity: int):
|
|
194
|
+
|
|
195
|
+
index = SparseIndex(connectivity=connectivity)
|
|
196
|
+
index.add(10, np.array([10, 12, 15], dtype=np.uint32))
|
|
197
|
+
index.add(11, np.array([11, 12, 15, 16], dtype=np.uint32))
|
|
198
|
+
results = index.search(np.array([12, 15], dtype=np.uint32), 10)
|
|
199
|
+
assert list(results) == [10, 11]
|