Expand description
Index persistence helpers for saving/loading indexes to storage
This module provides utilities for persisting trained indexes to object storage and loading them back, enabling:
- Cold start without retraining
- Index sharing across instances
- Checkpoint/restore workflows
Structs§
- Hnsw
Config Snapshot - Serializable snapshot for HNSW configuration only (lightweight) Note: For full graph persistence, use HnswFullSnapshot instead
- Hnsw
Full Snapshot - Full HNSW graph snapshot for complete persistence This allows loading the index without rebuilding the graph
- Index
Persistence Manager - Index persistence manager for saving/loading indexes to object storage
- IvfFull
Snapshot - Full IVF index snapshot for complete persistence This allows loading the trained index without retraining
- IvfTraining
Snapshot - Serializable snapshot for IVF index training data
- PQSnapshot
- Serializable snapshot of a ProductQuantizer (the trained codebooks)
- Serializable
Hnsw Node - Serializable representation of an HNSW node
- Serializable
Indexed Vector - Serializable representation of an indexed vector in IVF
- SpFresh
Full Snapshot - Full SPFresh index snapshot for complete persistence This allows loading the trained index with all clusters and vectors
- SpFresh
Training Snapshot - Serializable snapshot for SPFresh index training data
Enums§
- Index
Type - Index types that can be persisted
Traits§
- Persistable
- Trait for indexes that can be persisted
Functions§
- deserialize_
from_ bytes - Helper to deserialize from bytes to any DeserializeOwned type
- serialize_
to_ bytes - Helper to serialize any Serialize type to bytes