Skip to main content

Module persistence

Module persistence 

Source
Expand description

Persistence and freshness checking for vector indices.

Provides content-hash-based staleness detection so vector indices can persist across restarts. When the content hash matches, the existing index is still valid and doesn’t need rebuilding.

Structs§

IndexMetadata
Metadata stored alongside a vector index for freshness checking.

Functions§

is_index_fresh
Check if an existing vector index is fresh.
load_metadata
Load index metadata from a JSON file.
save_metadata
Save index metadata to a JSON file.