#hnsw #streaming #coreset #metric-spaces

bin+lib fromhnsw

Coreset and (streaming) clustering

1 unstable release

Uses new Rust 2024

0.1.1 Jun 14, 2025

#80 in #hnsw

MIT/Apache

170KB
3K SLoC

sub crate fromhnsw

Provides coreset computations from data stored in hnsw structures coming from crate hsnw_rs.

As a library provides module to reload datamap from hnsw and an iterator for coreset computations.

Command line

The documentation of the binary hcore explains the parameters of the command and ouptut which has two forms:

  • hnscore --dir (-d) dirname --fname (-f) hnswname --typename (-t) typename or in its complete form:
  • hnscore --dir (-d) dirname --fname (-f) hnswname --typename (-t) typename clustercore --cluster nbcluster [--beta b] [--gamma g] --

Building

To compile the whole crate run:
cargo build --release --workspace --all

cargo doc --no-deps --all

To compile the subcrate fromhnsw enabling coreset computations on hnsw data run :
cargo build --release --all --bin hcore

Dependencies

~10–38MB
~526K SLoC