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.2.0

Release candidate: this command works only after publication. From a checkout, install ruvector==0.1.3 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.3. 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.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-cluster 0.2.0
File Interpreter ABI Platform Actions
ruvector_cluster-0.2.0-py3-none-any.whl Python 3 none any Details for ruvector_cluster-0.2.0-py3-none-any.whl

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

Download URL ruvector_cluster-0.2.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99efcf69e29c9a11e47599ea37a725496e11fa88b169224885e23efa0d6ec3b8
BLAKE2b-256 checksum
How to use checksums
8eeb75adee466ce24bb9bb6d92a9f0fb632f7b045d7f38328d3c828fec6fde40
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.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