usearch 0.1.4 → 0.1.5
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/CMakeListsInstructuons.md +9 -3
- package/Cargo.toml +3 -3
- package/VERSION +1 -1
- package/binding.gyp +2 -1
- package/build.rs +6 -5
- package/package.json +2 -2
- package/{src/rust.cpp → rust/lib.cpp} +2 -2
- package/{src → rust}/lib.rs +1 -1
- package/setup.py +2 -2
- /package/{src/javascript.cpp → javascript/lib.cpp} +0 -0
- /package/{src → javascript}/test.js +0 -0
- /package/{src → python}/bench.py +0 -0
- /package/{src/python.cpp → python/lib.cpp} +0 -0
- /package/{src → python}/test.py +0 -0
- /package/{src/rust.hpp → rust/lib.hpp} +0 -0
|
@@ -47,10 +47,10 @@ cmake \
|
|
|
47
47
|
|
|
48
48
|
```sh
|
|
49
49
|
pip install -e .
|
|
50
|
-
python
|
|
50
|
+
python python/test.py
|
|
51
51
|
|
|
52
52
|
# To benchmark:
|
|
53
|
-
python
|
|
53
|
+
python python/bench.py \
|
|
54
54
|
--vectors datasets/wiki_1M/base.1M.fbin \
|
|
55
55
|
--queries datasets/wiki_1M/query.public.100K.fbin \
|
|
56
56
|
--neighbors datasets/wiki_1M/groundtruth.public.100K.ibin \
|
|
@@ -61,7 +61,7 @@ python src/bench.py \
|
|
|
61
61
|
|
|
62
62
|
```sh
|
|
63
63
|
npm install
|
|
64
|
-
node
|
|
64
|
+
node javascript/test.js
|
|
65
65
|
npm publish
|
|
66
66
|
```
|
|
67
67
|
|
|
@@ -74,6 +74,12 @@ cargo publish
|
|
|
74
74
|
|
|
75
75
|
### Java
|
|
76
76
|
|
|
77
|
+
```sh
|
|
78
|
+
cs java
|
|
79
|
+
javac -h . Index.java
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
|
|
77
83
|
### Wolfram
|
|
78
84
|
|
|
79
85
|
## Benchmarks
|
package/Cargo.toml
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "usearch"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.5"
|
|
4
4
|
authors = ["Ashot Vardanian <1983160+ashvardanian@users.noreply.github.com>"]
|
|
5
|
-
description = "The Tiny Vector Search Engine
|
|
5
|
+
description = "The Mighty Tiny Vector Search Engine with Automatic Quantization and Hardware Acceleration"
|
|
6
6
|
edition = "2021"
|
|
7
7
|
license = "Apache-2.0"
|
|
8
8
|
publish = true
|
|
@@ -10,7 +10,7 @@ repository = "https://github.com/unum-cloud/usearch"
|
|
|
10
10
|
|
|
11
11
|
[lib]
|
|
12
12
|
name = "usearch"
|
|
13
|
-
path = "
|
|
13
|
+
path = "rust/lib.rs"
|
|
14
14
|
|
|
15
15
|
[dependencies]
|
|
16
16
|
cxx = "1.0"
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.5
|
package/binding.gyp
CHANGED
package/build.rs
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
fn main() {
|
|
2
|
-
cxx_build::bridge("
|
|
3
|
-
.file("
|
|
2
|
+
cxx_build::bridge("rust/lib.rs")
|
|
3
|
+
.file("rust/lib.cpp")
|
|
4
4
|
.flag_if_supported("-std=c++11")
|
|
5
5
|
.include("include")
|
|
6
|
+
.include("rust")
|
|
6
7
|
.include("src")
|
|
7
8
|
.include("fp16/include")
|
|
8
9
|
.include("simsimd/include")
|
|
9
10
|
.compile("usearch");
|
|
10
11
|
|
|
11
|
-
println!("cargo:rerun-if-changed=
|
|
12
|
-
println!("cargo:rerun-if-changed=
|
|
13
|
-
println!("cargo:rerun-if-changed=
|
|
12
|
+
println!("cargo:rerun-if-changed=rust/lib.rs");
|
|
13
|
+
println!("cargo:rerun-if-changed=rust/lib.cpp");
|
|
14
|
+
println!("cargo:rerun-if-changed=rust/lib.hpp");
|
|
14
15
|
println!("cargo:rerun-if-changed=src/advanced.hpp");
|
|
15
16
|
println!("cargo:rerun-if-changed=include/usearch/usearch.hpp");
|
|
16
17
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "usearch",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "The Mighty Tiny Vector Search Engine with Automatic Quantization and Hardware Acceleration",
|
|
5
5
|
"author": "Ashot Vardanian",
|
|
6
6
|
"license": "Apache 2.0",
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
"node-addon-api": "^3.0.0"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
-
"test": "node
|
|
20
|
+
"test": "node javascript/test.js"
|
|
21
21
|
}
|
|
22
22
|
}
|
package/{src → rust}/lib.rs
RENAMED
package/setup.py
CHANGED
|
@@ -12,7 +12,7 @@ if sys.platform == 'darwin':
|
|
|
12
12
|
ext_modules = [
|
|
13
13
|
Pybind11Extension(
|
|
14
14
|
'usearch',
|
|
15
|
-
['
|
|
15
|
+
['python/lib.cpp'],
|
|
16
16
|
extra_compile_args=compile_args,
|
|
17
17
|
),
|
|
18
18
|
]
|
|
@@ -58,6 +58,6 @@ setup(
|
|
|
58
58
|
'Topic :: Scientific/Engineering :: Artificial Intelligence',
|
|
59
59
|
],
|
|
60
60
|
|
|
61
|
-
include_dirs=['include', 'fp16/include', 'simsimd/include'],
|
|
61
|
+
include_dirs=['include', 'fp16/include', 'simsimd/include', 'src'],
|
|
62
62
|
ext_modules=ext_modules,
|
|
63
63
|
)
|
|
File without changes
|
|
File without changes
|
/package/{src → python}/bench.py
RENAMED
|
File without changes
|
|
File without changes
|
/package/{src → python}/test.py
RENAMED
|
File without changes
|
|
File without changes
|