Expand description
Persistence Layer for RuVector Discovery Framework
This module provides serialization/deserialization for the OptimizedDiscoveryEngine and discovered patterns. Supports:
- Full engine state save/load
- Pattern-only save/load/append
- Optional gzip compression for large datasets
- Incremental pattern appends without rewriting entire files
Structs§
- Engine
State - Serializable state of the OptimizedDiscoveryEngine
- Persistence
Options - Options for saving/loading with compression
Functions§
- append_
patterns - Append new patterns to an existing patterns file
- compression_
info - Calculate compression ratio for a file
- get_
file_ size - Get file size in bytes
- load_
engine - Load an OptimizedDiscoveryEngine from a saved state file
- load_
patterns - Load patterns from a JSON file
- save_
engine - Save the OptimizedDiscoveryEngine state to a file
- save_
patterns - Save discovered patterns to a JSON file