Function load_engine
Source pub fn load_engine(path: &Path) -> Result<OptimizedDiscoveryEngine>
Expand description
Load an OptimizedDiscoveryEngine from a saved state file
§Arguments
path - Path to the saved state file
§Returns
A new OptimizedDiscoveryEngine with the loaded state
§Example
let engine = load_engine(Path::new("engine_state.json"))?;