Skip to main content

ruvector-cluster: Embedding clustering in Python

Embedding clustering: Python API to PyO3 to Rust

What is ruvector-cluster?

ruvector-cluster provides embedding clustering through ruvector-cluster-rag in the RuVector Rust library family. It adds a focused Python API over the existing ruvector PyO3 runtime. It does not ship a separate native engine or reduce the shared runtime's installation size.

Install

pip install ruvector-cluster==0.1.0

Release candidate: this command works only after publication. From a checkout, install ruvector==0.1.2 and then pip install ./python/portfolio/ruvector-cluster. Python 3.10 or newer; native platform support follows the shared runtime wheels.

Quick start

from ruvector_cluster import cluster
result = cluster([[1, 0], [1.1, 0], [10, 10], [10.1, 10]], 2)
assert result.labels[0] == result.labels[1]
assert result.labels[2] == result.labels[3]
assert result.labels[0] != result.labels[2]
assert result.sizes.sum() == 4

API and limitations

Public exports: ClusterResult, cluster. Lloyd clustering for numeric embeddings. No embedding model download or network service. Quality and latency depend on your data; no universal speedup or recall claim.

Input conversion can copy arrays. Reuse contiguous float32 arrays for repeated operations. No service, telemetry or credentials are added by this package. Apply application memory and request limits for untrusted data.

How does it relate to RuVector?

The algorithm executes through the existing Rust PyO3 binding, pinned to ruvector==0.1.2. Python implements convenience conversion and result formatting. For vector search use pip install ruvector; for other capabilities see the Python portfolio.

Verification and security

CI tests built wheels against a native runtime compiled from this repository, checks sdists and README rendering, audits resolved dependencies and publishes through PyPI Trusted Publishing. Native vulnerability scanning is a separate required gate. See security scope.

Metadata

Release files for ruvector-cluster 0.1.0

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

Source distribution (sdist)

Source distribution for ruvector-cluster 0.1.0
File Size Uploaded Provenance Actions
ruvector_cluster-0.1.0.tar.gz 3.3 kB Without provenance Details for ruvector_cluster-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ruvector-cluster 0.1.0
File Interpreter ABI Platform Actions
ruvector_cluster-0.1.0-py3-none-any.whl Python 3 none any Details for ruvector_cluster-0.1.0-py3-none-any.whl

Total release size: 7.3 kB

Release files / ruvector_cluster-0.1.0.tar.gz

Download URL ruvector_cluster-0.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ee51abd73fd1b6ee843aacf6ea1e3b8ac03ab9050b381da21781d3225053391d
BLAKE2b-256 checksum
How to use checksums
5ff4836c0b364e3b54e54e891a37c2106de5aaaf2275ea413beaed325123d7ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / ruvector_cluster-0.1.0-py3-none-any.whl

Download URL ruvector_cluster-0.1.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2625e233a1eef3dc9db8a467fb99c9b6ebc0fe2182fdbdd2e6d577ce59d910a
BLAKE2b-256 checksum
How to use checksums
63dcfe0693a23d400dec8d02e4cd5416a1c79a66f33d27fd7796ce65882f01ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for ruvector-cluster 0.1.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.1.0 This release

2 release files 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