Portable skill definitions and utilities for ArrowSpace spectral vector search
Project description
ArrowSpace Skills
Portable skill definitions for working with ArrowSpace — a spectral vector search library that goes beyond cosine similarity by incorporating graph Laplacian eigenstructure.
ArrowSpace adds a spectral dimension to vector similarity, enabling search that considers both semantic content and structural role in the dataset.
Quick Start
pip install arrowspace
Then:
from arrowspace import ArrowSpaceBuilder
import numpy as np
items = np.array([[0.1, 0.2, 0.3], [0.0, 0.5, 0.1], [0.9, 0.1, 0.0]], dtype=np.float64)
graph_params = {"eps": 1.0, "k": 6, "topk": 3, "p": 2.0, "sigma": 1.0}
aspace, gl = ArrowSpaceBuilder().build(graph_params, items)
query = np.array([0.05, 0.2, 0.25], dtype=np.float64)
hits = aspace.search(query, gl, tau=1.0)
print(hits) # [(0, 0.99), (1, 0.76), (2, 0.22)]
Resources
| Resource | Link |
|---|---|
| JOSS paper | doi:10.21105/joss.09002 |
| Rust library | github.com/Mec-iS/arrowspace-rs |
| Python bindings | github.com/tuned-org-uk/pyarrowspace |
| PyPI package | pip install arrowspace |
| crates.io | cargo add arrowspace |
| Presentation 1 | Spectral Indexing overview |
| Presentation 2 | ArrowSpace deep-dive |
| Design article | tuned.org.uk — Part 2: Semantic Basins |
Skills
This repo contains skill definitions that teach AI agents how to use ArrowSpace:
| Skill | File | What it covers |
|---|---|---|
| ArrowSpace Core | skills/arrowspace-core.md |
Builder, configuration, building signal graphs |
| Vector Search | skills/arrowspace-search.md |
Querying, λτ scoring, search parameters |
| Spectral Analysis | skills/arrowspace-spectral.md |
Spectral methods, graph characterisation, diffusion |
Adding to an AI Agent
OpenCode — symlink or copy SKILL.md into .opencode/skills/:
cp SKILL.md .opencode/skills/arrowspace/SKILL.md
Claude Code — reference in CLAUDE.md or add to project instructions.
Copilot / Cursor — include the relevant skills/*.md content in your custom instructions.
Any agent — point it at this repo: "You have access to the ArrowSpace skills at skills/."
Python Package
Install the skill utilities directly:
pip install arrowspace-skills
from arrowspace_skills import suggest_params, build_index, tune_tau, item_lambdas
See arrowspace_skills/ for reusable helper functions.
License
Apache 2.0 — same as arrowspace-rs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file arrowspace_skills-0.3.0.tar.gz.
File metadata
- Download URL: arrowspace_skills-0.3.0.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8ed3249aa2ca781fc02bba9c5e0596c873f17f5da37536e1878bade4e2e340a
|
|
| MD5 |
e74081a5a0727c5e84318f9d37e80f14
|
|
| BLAKE2b-256 |
05a11119bd638182a537e411cf465da463ce8119a755be8561cd04829f601f95
|
File details
Details for the file arrowspace_skills-0.3.0-py3-none-any.whl.
File metadata
- Download URL: arrowspace_skills-0.3.0-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f82dc3b4596b2a30356e9ae9de144b9861674bebf2fca864c4c06c258806d73
|
|
| MD5 |
b25d16c9d073477eead7b01bdae6ae0a
|
|
| BLAKE2b-256 |
00aa0a23c8c7b36241ad6ebddaeee3905310c5cd26394a01498228e1ef2d4177
|