Skip to main content

ruvector-attention

RuVector attention animated overview

Native scaled dot product attention for embedding aggregation.

Getting started

Requires Python 3.10 or later and a platform supported by the ruvector==0.1.3 native wheel.

python -m pip install ruvector-attention==0.2.0
from ruvector_attention import attend
result = attend([1, 0], [[1, 0], [0, 1]])
assert result.weights[0] > result.weights[1]
assert result.blended.shape == (2,)

How it works

Python sequences → finite contiguous float32 validation → shared RuVector native Rust runtime → typed Python or NumPy results. No Node.js process is used.

Scope and limits

This exposes scaled dot product attention with candidates as both keys and values. It does not expose every npm attention mechanism or a trained cross encoder. Candidate ordering is equivalent to dot product.

This is a Python convenience API backed by the shared native runtime, not complete npm API parity. Invalid dimensions and nonfinite inputs are rejected.

Documentation

Portfolio and architecture · Source · Issues

Metadata

Release files for ruvector-attention 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for ruvector-attention 0.2.0
File Interpreter ABI Platform
ruvector_attention-0.2.0-py3-none-any.whl Python 3 none any Details

Release files / ruvector_attention-0.2.0-py3-none-any.whl

Download URL ruvector_attention-0.2.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48c6557e4fc53c41aeb24b832e3e167afe88fde6c17affbb31cd6da148972bdc
BLAKE2b-256 checksum
How to use checksums
ae682815db2928b534e11fba9547fc50d16c8f6a73ac35bd1ea3b595c4f7e64c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for ruvector-attention 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page