Skip to main content

model_cache_dir

Function model_cache_dir 

Source
pub fn model_cache_dir() -> Result<PathBuf>
Expand description

Directory the embedding and reranker models are downloaded to and loaded from: FASTEMBED_CACHE_DIR when set, otherwise second-brain/models under the OS user cache dir. Created if missing. Errors instead of resolving to a path relative to the working directory.