Project
vgrep
Description
Description
The model path handling has inconsistent behavior:
embedding_model_path() returns a path even if file doesn't exist
- Only
has_embedding_model() checks existence
- Path resolution logic is duplicated and can diverge
- Relative paths resolved differently in different contexts
Error Message
Cryptic model loading errors when path is wrong.
Debug Logs
System Information
- Bounty Version: 0.1.0
- OS: Ubuntu 24.04 LTS
- Rust: 1.75+
Screenshots
No response
Steps to Reproduce
# Set a non-existent model path
vgrep config set embedding_model "/nonexistent/model.gguf"
# Try to serve
vgrep serve
# Error: Failed to load embedding model (cryptic llama-cpp error)
Expected Behavior
embedding_model_path() returns Err if model not found
- Clear error message indicating which path was tried
- Suggest downloading if model not found
- Single source of truth for path resolution
Actual Behavior
- Path returned even if file doesn't exist
- Cryptic llama-cpp errors
- No helpful suggestions
- Inconsistent path handling
Additional Context
No response
Project
vgrep
Description
Description
The model path handling has inconsistent behavior:
embedding_model_path()returns a path even if file doesn't existhas_embedding_model()checks existenceError Message
Debug Logs
System Information
Screenshots
No response
Steps to Reproduce
Expected Behavior
embedding_model_path()returnsErrif model not foundActual Behavior
Additional Context
No response