Expand description
§Persistence Module
This module provides functionality for saving and loading collections to/from disk. It supports collection-level persistence with full override strategy.
§File Format
Collections are saved as JSON files with the following structure:
{
"version": "1.0.0",
"metadata": {
"name": "collection_name",
"created_at": "2025-01-21T10:00:00Z",
"vector_count": 1000,
"dimension": 768,
"index_type": "HNSW"
},
"index": {
// Serialized VectorIndexWrapper
}
}Structs§
- Collection
Data - Complete collection data structure for persistence
- Collection
Metadata - Collection metadata for persistence
- File
Header - File header containing version and format information
Enums§
- Persistence
Error - Error types for persistence operations
Functions§
- load_
collection_ from_ file - Load a collection from a file
- save_
collection_ to_ file - Save a collection to a file