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.2.0.tar.gz (11.8 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.2.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arrowspace_skills-0.2.0.tar.gz
  • Upload date:
  • Size: 11.8 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.2.0.tar.gz
Algorithm Hash digest
SHA256 5f9e5111c0661d46e21fd443883457a9b3554ec891f8b10088d14561dba2a9d7
MD5 62a77ce3d34f3bbe912a4d0dfad85592
BLAKE2b-256 0a4d31087aab59743ee320e5ab7039088b29c81050e09ae9daf95662861a31fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arrowspace_skills-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe749c8d3b6d2aebaa4a8e281f4711d9996d7a2dc40c6d4b1f79c63d4bca31d2
MD5 cdb83b2c5e1e7276fefe4240506e57b7
BLAKE2b-256 202976d011e9475b30b94a5252b0468e0deb6b1c7a087b6216e36b5865e8e1da

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