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 CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "usearch"
3
- version = "0.17.0"
3
+ version = "0.17.1"
4
4
  authors = ["Ashot Vardanian <1983160+ashvardanian@users.noreply.github.com>"]
5
5
  description = "Smaller & Faster Single-File Vector Search Engine from Unum"
6
6
  edition = "2021"
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.0'
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usearch",
3
- "version": "0.17.0",
3
+ "version": "0.17.1",
4
4
  "description": "Smaller & Faster Single-File Vector Search Engine from Unum",
5
5
  "author": "Ashot Vardanian",
6
6
  "license": "Apache 2.0",
@@ -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
- assert recall_members(index, exact=True) == 1
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)