Expand description
HNSW graph structure — nodes, parameters, core index operations.
Production implementation per Malkov & Yashunin (2018). FP32 construction for structural integrity; heuristic neighbor selection.
Re-exports§
pub use index::HnswIndex;pub use types::Candidate;pub use types::Node;pub use types::NodeStorage;pub use types::SearchResult;pub use types::Xorshift64;
Modules§
Structs§
- Hnsw
Params - HNSW index parameters shared between Origin and Lite.
Constants§
- MAX_
LAYER_ CAP - Hard cap on the layer assigned to any node during insertion.
Standard HNSW practice — prevents pathological RNG draws from inflating
max_layerand slowing every subsequent search.