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.

Files changed (70) hide show
  1. {arrowspace-0.13.1 → arrowspace-0.13.2}/PKG-INFO +1 -1
  2. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/Cargo.lock +1 -1
  3. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/Cargo.toml +1 -1
  4. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/README.md +2 -0
  5. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/Cargo.lock +2 -2
  6. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/Cargo.toml +2 -2
  7. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/README.md +3 -3
  8. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/src/lib.rs +4 -4
  9. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/tests/test_0.py +1 -1
  10. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/tests/test_1_quora_questions.py +1 -1
  11. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/tests/test_2_CVE_db.py +1 -1
  12. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/tests/test_3_beir.py +1 -1
  13. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/.gitignore +0 -0
  14. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/CITATION.cff +0 -0
  15. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/CODE_OF_CONDUCT.md +0 -0
  16. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/CONTRIBUTING.md +0 -0
  17. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/LICENSE +0 -0
  18. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/LICENSE_MIT +0 -0
  19. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/RESEARCH.md +0 -0
  20. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/benches/base_index_bench.rs +0 -0
  21. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/benches/base_laplacian_bench.rs +0 -0
  22. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/benches/baselines/base_index_bench.json +0 -0
  23. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/benches/baselines/base_laplacian_bench.json +0 -0
  24. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/benches/index_compute_bench.rs +0 -0
  25. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/examples/01_compare_cosine.rs +0 -0
  26. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/examples/02_proteins_lookup.rs +0 -0
  27. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/examples/common/datasets/vectors_data_3000.txt +0 -0
  28. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/examples/common/lib.rs +0 -0
  29. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/examples/compare_cosine.rs +0 -0
  30. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/examples/proteins_lookup.rs +0 -0
  31. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/paper.bib +0 -0
  32. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/paper.md +0 -0
  33. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/builder.rs +0 -0
  34. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/clustering.rs +0 -0
  35. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/core.rs +0 -0
  36. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/graph.rs +0 -0
  37. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/laplacian.rs +0 -0
  38. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/lib.rs +0 -0
  39. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/main.rs +0 -0
  40. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/reduction.rs +0 -0
  41. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/sampling.rs +0 -0
  42. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/sparsification.rs +0 -0
  43. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/taumode.rs +0 -0
  44. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/mod.rs +0 -0
  45. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_arrow.rs +0 -0
  46. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_builder.rs +0 -0
  47. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_clustering.rs +0 -0
  48. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_data.rs +0 -0
  49. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_dimensional.rs +0 -0
  50. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_graph_factory.rs +0 -0
  51. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_helpers.rs +0 -0
  52. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_laplacian.rs +0 -0
  53. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_laplacian_unnormalised.rs +0 -0
  54. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_querying_proj.rs +0 -0
  55. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_reduction.rs +0 -0
  56. {arrowspace-0.13.1 → arrowspace-0.13.2}/arrowspace-rs/src/tests/test_taumode.rs +0 -0
  57. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/.github/workflows/CI.yml +0 -0
  58. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/.gitignore +0 -0
  59. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/GRAPH_VARIABLES.md +0 -0
  60. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/LICENSE +0 -0
  61. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/NORMALISATION.md +0 -0
  62. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/TAUMODE.md +0 -0
  63. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/src/tests.rs +0 -0
  64. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/src/tests_python.rs +0 -0
  65. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/tests/__init__.py +0 -0
  66. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/tests/embeddings_model.py +0 -0
  67. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/tests/requirements.txt +0 -0
  68. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/tests/small_datasets/vectors_data_3000.txt +0 -0
  69. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyarrowspace/tests/svdecomposition.py +0 -0
  70. {arrowspace-0.13.1 → arrowspace-0.13.2}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arrowspace
3
- Version: 0.13.1
3
+ Version: 0.13.2
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -98,7 +98,7 @@ dependencies = [
98
98
 
99
99
  [[package]]
100
100
  name = "arrowspace"
101
- version = "0.13.1"
101
+ version = "0.13.2"
102
102
  dependencies = [
103
103
  "approx 0.5.1",
104
104
  "criterion",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "arrowspace"
3
- version = "0.13.1"
3
+ version = "0.13.2"
4
4
  edition = "2024"
5
5
  description = "Spectral vector search with taumode (λτ) indexing"
6
6
  authors = ["Lorenzo <tunedconsulting@gmail.com>"]
@@ -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.1"
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.1"
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.1"
3
+ version = "0.13.2"
4
4
  edition = "2024"
5
5
  readme = "README.md"
6
6
 
7
7
  [lib]
8
- name = "pyarrowspace"
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 `pyarrowspace`, 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.
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 pyarrowspace
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 pyarrowspace import ArrowSpaceBuilder, GraphLaplacian
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 pyarrowspace(_py: Python, m: &PyModule) -> PyResult<()> {
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 pyarrowspace import ArrowSpaceBuilder, GraphLaplacian
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 pyarrowspace import ArrowSpaceBuilder, set_debug
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 pyarrowspace import ArrowSpaceBuilder, set_debug
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 pyarrowspace import ArrowSpaceBuilder, set_debug
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