arrowspace 0.13.1__tar.gz → 0.13.2__tar.gz
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.
Potentially problematic release.
This version of arrowspace might be problematic. Click here for more details.
- {arrowspace-0.13.1 → arrowspace-0.13.2}/PKG-INFO +1 -1
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/Cargo.lock +1 -1
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/Cargo.toml +1 -1
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/README.md +2 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/Cargo.lock +2 -2
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/Cargo.toml +2 -2
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/README.md +3 -3
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/src/lib.rs +4 -4
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/tests/test_0.py +1 -1
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/tests/test_1_quora_questions.py +1 -1
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/tests/test_2_CVE_db.py +1 -1
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/tests/test_3_beir.py +1 -1
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/.gitignore +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/CITATION.cff +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/CODE_OF_CONDUCT.md +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/CONTRIBUTING.md +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/LICENSE +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/LICENSE_MIT +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/RESEARCH.md +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/benches/base_index_bench.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/benches/base_laplacian_bench.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/benches/baselines/base_index_bench.json +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/benches/baselines/base_laplacian_bench.json +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/benches/index_compute_bench.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/examples/01_compare_cosine.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/examples/02_proteins_lookup.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/examples/common/datasets/vectors_data_3000.txt +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/examples/common/lib.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/examples/compare_cosine.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/examples/proteins_lookup.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/paper.bib +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/paper.md +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/builder.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/clustering.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/core.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/graph.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/laplacian.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/lib.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/main.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/reduction.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/sampling.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/sparsification.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/taumode.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/mod.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_arrow.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_builder.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_clustering.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_data.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_dimensional.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_graph_factory.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_helpers.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_laplacian.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_laplacian_unnormalised.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_querying_proj.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_reduction.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_taumode.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/.github/workflows/CI.yml +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/.gitignore +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/GRAPH_VARIABLES.md +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/LICENSE +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/NORMALISATION.md +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/TAUMODE.md +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/src/tests.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/src/tests_python.rs +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/tests/__init__.py +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/tests/embeddings_model.py +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/tests/requirements.txt +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/tests/small_datasets/vectors_data_3000.txt +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/tests/svdecomposition.py +0 -0
- {arrowspace-0.13.1 → arrowspace-0.13.2}/pyproject.toml +0 -0
|
@@ -12,6 +12,8 @@ nuanced similarity matching for scientific and structured data.
|
|
|
12
12
|
|
|
13
13
|
Run `cargo run --example 01_compare_cosine` for an example about how it compares with cosine similarity.
|
|
14
14
|
|
|
15
|
+
The Python bindings are [available in this repo](https://github.com/tuned-org-uk/pyarrowspace).
|
|
16
|
+
|
|
15
17
|
## Usage
|
|
16
18
|
```rust
|
|
17
19
|
use arrowspace::builder::ArrowSpaceBuilder;
|
|
@@ -92,7 +92,7 @@ dependencies = [
|
|
|
92
92
|
|
|
93
93
|
[[package]]
|
|
94
94
|
name = "arrowspace"
|
|
95
|
-
version = "0.13.
|
|
95
|
+
version = "0.13.2"
|
|
96
96
|
dependencies = [
|
|
97
97
|
"approx 0.5.1",
|
|
98
98
|
"dashmap",
|
|
@@ -513,7 +513,7 @@ dependencies = [
|
|
|
513
513
|
|
|
514
514
|
[[package]]
|
|
515
515
|
name = "pyarrowspace"
|
|
516
|
-
version = "0.13.
|
|
516
|
+
version = "0.13.2"
|
|
517
517
|
dependencies = [
|
|
518
518
|
"arrowspace",
|
|
519
519
|
"numpy",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "pyarrowspace"
|
|
3
|
-
version = "0.13.
|
|
3
|
+
version = "0.13.2"
|
|
4
4
|
edition = "2024"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
|
|
7
7
|
[lib]
|
|
8
|
-
name = "
|
|
8
|
+
name = "arrowspace"
|
|
9
9
|
# "cdylib" is necessary to produce a shared library for Python to import from.
|
|
10
10
|
#
|
|
11
11
|
# Downstream Rust code (including code in `bin/`, `examples/`, and `tests/`) will not be able
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Python bindings for [`arrowspace-rs`](https://github.com/Mec-iS/arrowspace-rs). This is experimental software meant for research at current state.
|
|
4
4
|
|
|
5
|
-
This is the starting repository for `
|
|
5
|
+
This is the starting repository for `arrowspace`, it is made public as a showcase for the Python interface, to collect feedback and make public some results of the tests run. To run needs the `arrowspace-rs` Rust module in a sibling directory.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
From PyPi:
|
|
9
9
|
```
|
|
10
|
-
pip install
|
|
10
|
+
pip install arrowspace
|
|
11
11
|
```
|
|
12
12
|
or any other way of installing a Python library.
|
|
13
13
|
|
|
@@ -32,7 +32,7 @@ There are other tests but they require downloadin a dataset separately or fine-t
|
|
|
32
32
|
|
|
33
33
|
```python
|
|
34
34
|
import numpy as np
|
|
35
|
-
from
|
|
35
|
+
from arrowspace import ArrowSpaceBuilder, GraphLaplacian
|
|
36
36
|
|
|
37
37
|
items = np.array([[0.1, 0.2, 0.3],
|
|
38
38
|
[0.0, 0.5, 0.1],
|
|
@@ -5,9 +5,9 @@ use pyo3::types::PyDict;
|
|
|
5
5
|
|
|
6
6
|
use numpy::{PyArray, PyArray1, PyArray2, PyReadonlyArray1, PyReadonlyArray2};
|
|
7
7
|
|
|
8
|
-
use arrowspace::builder::ArrowSpaceBuilder as RustBuilder;
|
|
9
|
-
use arrowspace::core::{ArrowItem, ArrowSpace};
|
|
10
|
-
use arrowspace::graph::GraphLaplacian;
|
|
8
|
+
use ::arrowspace::builder::ArrowSpaceBuilder as RustBuilder;
|
|
9
|
+
use ::arrowspace::core::{ArrowItem, ArrowSpace};
|
|
10
|
+
use ::arrowspace::graph::GraphLaplacian;
|
|
11
11
|
|
|
12
12
|
use std::sync::atomic::{AtomicBool, Ordering};
|
|
13
13
|
static DEBUG: AtomicBool = AtomicBool::new(false);
|
|
@@ -317,7 +317,7 @@ impl PyArrowSpaceBuilder {
|
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
#[pymodule]
|
|
320
|
-
pub fn
|
|
320
|
+
pub fn arrowspace(_py: Python, m: &PyModule) -> PyResult<()> {
|
|
321
321
|
m.add_class::<PyArrowSpaceBuilder>()?;
|
|
322
322
|
m.add_class::<PyArrowSpace>()?;
|
|
323
323
|
m.add_class::<PyGraphLaplacian>()?;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import numpy as np
|
|
2
|
-
from
|
|
2
|
+
from arrowspace import ArrowSpaceBuilder, GraphLaplacian
|
|
3
3
|
|
|
4
4
|
items = np.array([
|
|
5
5
|
[0.82,0.11,0.43,0.28,0.64,0.32,0.55,0.48,0.19,0.73,0.07,0.36,0.58,0.23,0.44,0.31,0.52,0.16,0.61,0.40,0.27,0.49,0.35,0.29],
|
|
@@ -7,7 +7,7 @@ from sentence_transformers import SentenceTransformer
|
|
|
7
7
|
from sklearn.preprocessing import normalize
|
|
8
8
|
from collections import defaultdict
|
|
9
9
|
|
|
10
|
-
from
|
|
10
|
+
from arrowspace import ArrowSpaceBuilder, set_debug
|
|
11
11
|
|
|
12
12
|
set_debug(True) # optional: Rust-side debug prints to stderr
|
|
13
13
|
|
|
@@ -16,7 +16,7 @@ import os, json, glob
|
|
|
16
16
|
import numpy as np
|
|
17
17
|
from tqdm import tqdm
|
|
18
18
|
from sentence_transformers import SentenceTransformer
|
|
19
|
-
from
|
|
19
|
+
from arrowspace import ArrowSpaceBuilder, set_debug
|
|
20
20
|
|
|
21
21
|
set_debug(True) # optional: Rust-side debug prints to stderr
|
|
22
22
|
|
|
@@ -8,7 +8,7 @@ from sklearn.preprocessing import normalize
|
|
|
8
8
|
from collections import defaultdict
|
|
9
9
|
import json
|
|
10
10
|
|
|
11
|
-
from
|
|
11
|
+
from arrowspace import ArrowSpaceBuilder, set_debug
|
|
12
12
|
|
|
13
13
|
set_debug(True) # optional: Rust-side debug prints to stderr
|
|
14
14
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/benches/baselines/base_index_bench.json
RENAMED
|
File without changes
|
{arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/benches/baselines/base_laplacian_bench.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/examples/common/datasets/vectors_data_3000.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_laplacian_unnormalised.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/tests/small_datasets/vectors_data_3000.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|