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.1.0.tar.gz (5.3 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.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arrowspace_skills-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 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.1.0.tar.gz
Algorithm Hash digest
SHA256 578522c4d227eab3f7a8faa616b27f126958a49821870213f94ecdc2e66b9e20
MD5 63a3d1ae25d0fa7b557c75da4050c6b7
BLAKE2b-256 307c62de5aab285799592461c8447b62f5e126b11924b5a54a8b4662f1f10264

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arrowspace_skills-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db26dc569ef84400bddb7b642dd9a723b5884c2fb305823d761fac6d8bf944c6
MD5 4144a612f7c87f34c0eba9f5c55e9939
BLAKE2b-256 0ecb365c3605d8e9f899c2d3b2d3864d10b1af596a022144ab471758b644933e

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