Skip to main content

Crate kevy_vector

Crate kevy_vector 

Source
Expand description

kevy-vector — ANN core (RFC 2026-07-04, LOCKED): HNSW graph with cosine / L2 / inner-product distances, tombstone deletes filtered at search time, bounded full rebuild.

Structs§

Hnsw
One shard’s ANN graph for one index.
HnswParams
Construction/search parameters (immutable once built — RFC D2).
VectorStats
Sizing counters (RFC D6).

Enums§

Distance
Distance metric. Scores are “smaller = closer” for every variant (cosine → 1 - cos, ip → -dot), so one ascending merge works.

Functions§

parse_vector
Decode a wire vector: raw f32 LE bytes (len == dim*4), or the debug form csv:1.0,2.5,…. None on any mismatch.