Skip to main content

open_embedding_cached

Function open_embedding_cached 

Source
pub fn open_embedding_cached(path: &Path) -> Option<Arc<EmbeddingIndex>>
Expand description

EmbeddingIndex::open through the process-wide cache.

Returns a shared handle; the mapping stays alive for as long as any caller holds it, which is the point. A None result means the file is absent or malformed, exactly as with open.