Expand description
HNSW Index Snapshot - Save and Restore without rebuilding
Binary format (big-endian throughout): [4 bytes] magic “HNSW” [4 bytes] format version (u32) [8 bytes] num_nodes (u64) [8 bytes] num_layers (u64) [8 bytes] dimension (u64) [8 bytes] ef_construction (u64) [8 bytes] m (u64) [8 bytes] m_l0 (u64) [1 byte] has_entry_point (u8: 0 or 1) [8 bytes] entry_point (u64, only present if has_entry_point == 1) For each node: [8 bytes] uri_len (u64) [uri_len] uri bytes (UTF-8) [8 bytes] vector_len (u64) – number of f32 elements [4*n bytes] vector data (f32 little-endian) [8 bytes] num_connection_layers (u64) For each layer: [8 bytes] num_connections (u64) For each connection: [8 bytes] connected_node_id (u64)
Structs§
- Index
Snapshot - Snapshot I/O for an
HnswIndex. - Snapshot
Header - Header decoded from a snapshot