Skip to main content

load_embeddings_cached

Function load_embeddings_cached 

Source
pub fn load_embeddings_cached(path: &Path) -> Result<Vec<(String, Vec<f32>)>>
Expand description

Load embeddings with process-lifetime caching. Returns cached data if the file hasn’t been modified since last load. Falls back to load_embeddings on any cache miss.