Skip to main content

get_global_models_cache_dir

Function get_global_models_cache_dir 

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

Get the global models cache directory (~/.codesearch/models/).

This centralizes embedding model downloads so they are shared across all databases instead of being duplicated per-project. The directory is created if it does not exist.

Falls back to a temp directory if the home directory cannot be determined.