pub fn resolve_cache_dir(
root: &Path,
model_repo: &str,
override_dir: Option<&Path>,
) -> PathBufExpand description
Resolve the cache directory for a project + model combination.
Resolution priority:
override_dirparameter (highest).ripvec/config.tomlin directory tree (repo-local)RIPVEC_CACHEenvironment variable- XDG cache dir (
~/.cache/ripvec/)
For repo-local, the cache lives at .ripvec/cache/ directly (no project hash
or version subdirectory — the config.toml pins the model and version).
For user-level cache, layout is <base>/<project_hash>/v<VERSION>-<model_slug>/.