usearch 1.1.1 → 1.2.0
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/prerelease.yml +3 -3
- package/.github/workflows/release.yml +3 -3
- package/.github/workflows/update_version.sh +1 -1
- package/.gitmodules +1 -4
- package/Cargo.toml +1 -1
- package/Package.swift +2 -1
- package/README.md +86 -42
- package/binding.gyp +16 -12
- package/build.gradle +1 -1
- package/build.rs +0 -1
- package/c/CMakeLists.txt +11 -7
- package/c/lib.cpp +36 -24
- package/c/usearch.h +42 -12
- package/cluster.ipynb +167 -0
- package/conanfile.py +1 -1
- package/cpp/CMakeLists.txt +8 -3
- package/cpp/bench.cpp +2 -2
- package/cpp/test.cpp +42 -25
- package/docs/benchmarks.md +8 -0
- package/docs/compilation.md +7 -7
- package/docs/conf.py +27 -24
- package/docs/javascript/reference.rst +3 -0
- package/golang/README.md +31 -7
- package/golang/lib.go +1 -1
- package/include/usearch/index.hpp +348 -69
- package/include/usearch/index_dense.hpp +587 -179
- package/include/usearch/index_plugins.hpp +194 -16
- package/java/cloud/unum/usearch/Index.java +13 -0
- package/java/cloud/unum/usearch/cloud_unum_usearch_Index.cpp +40 -9
- package/java/cloud/unum/usearch/cloud_unum_usearch_Index.h +16 -0
- package/javascript/docs.js +111 -0
- package/javascript/lib.cpp +29 -9
- package/javascript/usearch.d.ts +9 -1
- package/objc/USearchObjective.mm +11 -11
- package/package.json +2 -2
- package/pyproject.toml +1 -1
- package/python/lib.cpp +488 -158
- package/python/scripts/index_faiss.py +3 -3
- package/python/scripts/join.py +6 -6
- package/python/scripts/test_index.py +219 -0
- package/python/scripts/test_sparse.py +21 -21
- package/python/scripts/test_tooling.py +111 -0
- package/python/usearch/eval.py +9 -5
- package/python/usearch/index.py +491 -216
- package/rust/lib.cpp +6 -24
- package/rust/lib.hpp +1 -3
- package/rust/lib.rs +89 -0
- package/setup.py +5 -6
- package/wasm/CMakeLists.txt +0 -1
- package/wasmer.toml +1 -1
- package/python/scripts/test.py +0 -364
- package/robin-map/.codecov.yml +0 -5
- package/robin-map/.github/workflows/ci.yml +0 -136
- package/robin-map/CMakeLists.txt +0 -86
- package/robin-map/LICENSE +0 -21
- package/robin-map/README.md +0 -483
- package/robin-map/cmake/tsl-robin-mapConfig.cmake.in +0 -9
- package/robin-map/doxygen.conf +0 -2483
- package/robin-map/include/tsl/robin_growth_policy.h +0 -406
- package/robin-map/include/tsl/robin_hash.h +0 -1639
- package/robin-map/include/tsl/robin_map.h +0 -807
- package/robin-map/include/tsl/robin_set.h +0 -660
- package/robin-map/tests/CMakeLists.txt +0 -26
- package/robin-map/tests/custom_allocator_tests.cpp +0 -138
- package/robin-map/tests/main.cpp +0 -26
- package/robin-map/tests/policy_tests.cpp +0 -97
- package/robin-map/tests/robin_map_tests.cpp +0 -1451
- package/robin-map/tests/robin_set_tests.cpp +0 -164
- package/robin-map/tests/utils.h +0 -443
- package/robin-map/tsl-robin-map.natvis +0 -78
package/objc/USearchObjective.mm
CHANGED
|
@@ -128,7 +128,7 @@ scalar_kind_t to_native_scalar(USearchScalar m) {
|
|
|
128
128
|
|
|
129
129
|
if (!result) {
|
|
130
130
|
@throw [NSException exceptionWithName:@"Can't add to index"
|
|
131
|
-
reason:[NSString stringWithUTF8String:result.error.
|
|
131
|
+
reason:[NSString stringWithUTF8String:result.error.release()]
|
|
132
132
|
userInfo:nil];
|
|
133
133
|
}
|
|
134
134
|
}
|
|
@@ -141,7 +141,7 @@ scalar_kind_t to_native_scalar(USearchScalar m) {
|
|
|
141
141
|
|
|
142
142
|
if (!result) {
|
|
143
143
|
@throw [NSException exceptionWithName:@"Can't find in index"
|
|
144
|
-
reason:[NSString stringWithUTF8String:result.error.
|
|
144
|
+
reason:[NSString stringWithUTF8String:result.error.release()]
|
|
145
145
|
userInfo:nil];
|
|
146
146
|
}
|
|
147
147
|
|
|
@@ -155,7 +155,7 @@ scalar_kind_t to_native_scalar(USearchScalar m) {
|
|
|
155
155
|
|
|
156
156
|
if (!result) {
|
|
157
157
|
@throw [NSException exceptionWithName:@"Can't add to index"
|
|
158
|
-
reason:[NSString stringWithUTF8String:result.error.
|
|
158
|
+
reason:[NSString stringWithUTF8String:result.error.release()]
|
|
159
159
|
userInfo:nil];
|
|
160
160
|
}
|
|
161
161
|
}
|
|
@@ -168,7 +168,7 @@ scalar_kind_t to_native_scalar(USearchScalar m) {
|
|
|
168
168
|
|
|
169
169
|
if (!result) {
|
|
170
170
|
@throw [NSException exceptionWithName:@"Can't find in index"
|
|
171
|
-
reason:[NSString stringWithUTF8String:result.error.
|
|
171
|
+
reason:[NSString stringWithUTF8String:result.error.release()]
|
|
172
172
|
userInfo:nil];
|
|
173
173
|
}
|
|
174
174
|
|
|
@@ -182,7 +182,7 @@ scalar_kind_t to_native_scalar(USearchScalar m) {
|
|
|
182
182
|
|
|
183
183
|
if (!result) {
|
|
184
184
|
@throw [NSException exceptionWithName:@"Can't add to index"
|
|
185
|
-
reason:[NSString stringWithUTF8String:result.error.
|
|
185
|
+
reason:[NSString stringWithUTF8String:result.error.release()]
|
|
186
186
|
userInfo:nil];
|
|
187
187
|
}
|
|
188
188
|
}
|
|
@@ -195,7 +195,7 @@ scalar_kind_t to_native_scalar(USearchScalar m) {
|
|
|
195
195
|
|
|
196
196
|
if (!result) {
|
|
197
197
|
@throw [NSException exceptionWithName:@"Can't find in index"
|
|
198
|
-
reason:[NSString stringWithUTF8String:result.error.
|
|
198
|
+
reason:[NSString stringWithUTF8String:result.error.release()]
|
|
199
199
|
userInfo:nil];
|
|
200
200
|
}
|
|
201
201
|
|
|
@@ -224,7 +224,7 @@ scalar_kind_t to_native_scalar(USearchScalar m) {
|
|
|
224
224
|
|
|
225
225
|
if (!result) {
|
|
226
226
|
@throw [NSException exceptionWithName:@"Can't remove an entry"
|
|
227
|
-
reason:[NSString stringWithUTF8String:result.error.
|
|
227
|
+
reason:[NSString stringWithUTF8String:result.error.release()]
|
|
228
228
|
userInfo:nil];
|
|
229
229
|
}
|
|
230
230
|
}
|
|
@@ -234,7 +234,7 @@ scalar_kind_t to_native_scalar(USearchScalar m) {
|
|
|
234
234
|
|
|
235
235
|
if (!result) {
|
|
236
236
|
@throw [NSException exceptionWithName:@"Can't rename the entry"
|
|
237
|
-
reason:[NSString stringWithUTF8String:result.error.
|
|
237
|
+
reason:[NSString stringWithUTF8String:result.error.release()]
|
|
238
238
|
userInfo:nil];
|
|
239
239
|
}
|
|
240
240
|
}
|
|
@@ -252,7 +252,7 @@ scalar_kind_t to_native_scalar(USearchScalar m) {
|
|
|
252
252
|
|
|
253
253
|
if (!result) {
|
|
254
254
|
@throw [NSException exceptionWithName:@"Can't save to disk"
|
|
255
|
-
reason:[NSString stringWithUTF8String:result.error.
|
|
255
|
+
reason:[NSString stringWithUTF8String:result.error.release()]
|
|
256
256
|
userInfo:nil];
|
|
257
257
|
}
|
|
258
258
|
}
|
|
@@ -270,7 +270,7 @@ scalar_kind_t to_native_scalar(USearchScalar m) {
|
|
|
270
270
|
|
|
271
271
|
if (!result) {
|
|
272
272
|
@throw [NSException exceptionWithName:@"Can't load from disk"
|
|
273
|
-
reason:[NSString stringWithUTF8String:result.error.
|
|
273
|
+
reason:[NSString stringWithUTF8String:result.error.release()]
|
|
274
274
|
userInfo:nil];
|
|
275
275
|
}
|
|
276
276
|
}
|
|
@@ -288,7 +288,7 @@ scalar_kind_t to_native_scalar(USearchScalar m) {
|
|
|
288
288
|
|
|
289
289
|
if (!result) {
|
|
290
290
|
@throw [NSException exceptionWithName:@"Can't view from disk"
|
|
291
|
-
reason:[NSString stringWithUTF8String:result.error.
|
|
291
|
+
reason:[NSString stringWithUTF8String:result.error.release()]
|
|
292
292
|
userInfo:nil];
|
|
293
293
|
}
|
|
294
294
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "usearch",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Smaller & Faster Single-File Vector Search Engine from Unum",
|
|
5
5
|
"author": "Ash Vardanian",
|
|
6
6
|
"license": "Apache 2.0",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@semantic-release/exec": "^6.0.3",
|
|
26
26
|
"@semantic-release/git": "^10.0.1",
|
|
27
27
|
"conventional-changelog-eslint": "^3.0.9",
|
|
28
|
-
"semantic-release": "^21.0
|
|
28
|
+
"semantic-release": "^21.1.0",
|
|
29
29
|
"typescript": "^5.1.6"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/pyproject.toml
CHANGED
|
@@ -10,7 +10,7 @@ filterwarnings = ["error"]
|
|
|
10
10
|
|
|
11
11
|
[tool.cibuildwheel]
|
|
12
12
|
test-requires = ["pytest", "numpy"]
|
|
13
|
-
test-command = "pytest {project}/python/scripts
|
|
13
|
+
test-command = "pytest {project}/python/scripts"
|
|
14
14
|
build-verbosity = 0
|
|
15
15
|
skip = ["*musllinux*", "*i686*", "pp*", "cp36-*"]
|
|
16
16
|
|