Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arrowspace_skills-0.4.0.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arrowspace_skills-0.4.0-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file arrowspace_skills-0.4.0.tar.gz.

File metadata

  • Download URL: arrowspace_skills-0.4.0.tar.gz
  • Upload date:
  • Size: 22.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

Hashes for arrowspace_skills-0.4.0.tar.gz
Algorithm Hash digest
SHA256 0db1563d702d293b7660a2723a90f9c8b3ff6ead3dceaa30de67faac5c417843
MD5 54b40985913d34dffe3006efbcf4a7ec
BLAKE2b-256 6518eb1aefaf092dfff727728a106929359dba6973b9751ac8a4d346ddadc75a

See more details on using hashes here.

File details

Details for the file arrowspace_skills-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: arrowspace_skills-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 19.5 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

Hashes for arrowspace_skills-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ddd14a1038ecbf743daef94678ee5e9fb5849b406214bd623396e6acfda4d09
MD5 1a8abb38d521450e5338f7d62698e96a
BLAKE2b-256 df44fe714b184631e843b08fa7f5625ff2826aee0fb9436a0a4063d625b593e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page