mirror of
https://github.com/samvallad33/vestige.git
synced 2026-04-25 00:36:22 +02:00
fix: use platform cache dir for fastembed models
Previously, fastembed created .fastembed_cache in the current working directory, polluting project folders with symlinks. Now uses platform-appropriate cache directories: - macOS: ~/Library/Caches/com.vestige.core/fastembed - Linux: ~/.cache/vestige/fastembed - Windows: %LOCALAPPDATA%\vestige\cache\fastembed Can still be overridden with FASTEMBED_CACHE_PATH env var. Fixes user feedback about .fastembed_cache appearing in random folders. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
497f149b64
commit
eb16d684fc
3 changed files with 52 additions and 17 deletions
|
|
@ -10,19 +10,19 @@ Vestige downloads the **Nomic Embed Text v1.5** model (~130MB) from Hugging Face
|
|||
|
||||
**All subsequent runs are fully offline.**
|
||||
|
||||
Model cache location:
|
||||
- Creates `.fastembed_cache/` in the current working directory on first run
|
||||
- Contains symlinks to model files in `~/.cache/huggingface/`
|
||||
### Model Cache Location
|
||||
|
||||
**Recommended**: Run your first Vestige command from your home directory:
|
||||
```bash
|
||||
cd ~
|
||||
vestige health # Creates ~/.fastembed_cache/ once
|
||||
```
|
||||
The embedding model is cached in platform-specific directories:
|
||||
|
||||
Or set the environment variable:
|
||||
| Platform | Cache Location |
|
||||
|----------|----------------|
|
||||
| macOS | `~/Library/Caches/com.vestige.core/fastembed` |
|
||||
| Linux | `~/.cache/vestige/fastembed` |
|
||||
| Windows | `%LOCALAPPDATA%\vestige\cache\fastembed` |
|
||||
|
||||
Override with environment variable:
|
||||
```bash
|
||||
export FASTEMBED_CACHE_PATH="$HOME/.fastembed_cache"
|
||||
export FASTEMBED_CACHE_PATH="/custom/path"
|
||||
```
|
||||
|
||||
---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue