Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ Files are split into overlapping chunks for granular search:
| `chunk_size` | `512` | Characters per chunk |
| `chunk_overlap` | `64` | Overlap between chunks |
| `n_threads` | `0` | CPU threads (0 = auto) |
| `use_reranker` | `true` | Enable result reranking |
| `use_reranker` | `false` | Enable result reranking (not yet implemented) |

### Environment Variables

Expand Down Expand Up @@ -483,7 +483,9 @@ vgrep/
| Model | Size | Purpose |
|-------|------|---------|
| Qwen3-Embedding-0.6B-Q8_0 | ~600 MB | Text → Vector embeddings |
| Qwen3-Reranker-0.6B-Q4_K_M | ~400 MB | Result reranking (optional) |
| Qwen3-Reranker-0.6B-Q4_K_M | ~400 MB | Result reranking (not yet implemented) |

The embedding model is downloaded by default with `vgrep models download`. The reranker model is reserved for future use and can be downloaded separately with `vgrep models download --reranker-only`.

Models are downloaded to `~/.cache/huggingface/` and cached automatically.

Expand Down
9 changes: 8 additions & 1 deletion src/cli/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,9 @@ fn run_models(action: ModelsAction, config: &mut Config) -> Result<()> {
config.set_embedding_model(embedding_path.to_string_lossy().to_string())?;
}

if !embedding_only {
// Reranker is not yet implemented (requires separate backend)
// Only download if explicitly requested with --reranker-only
if reranker_only {
println!();
println!(" {}Downloading reranker model...", ui::DOWNLOAD);
println!(
Expand All @@ -884,6 +886,11 @@ fn run_models(action: ModelsAction, config: &mut Config) -> Result<()> {
style("From:").dim()
);
println!();
println!(
" {} Reranker is not yet implemented, downloading for future use",
style("Note:").yellow()
);
println!();

let pb = ProgressBar::new_spinner();
pb.set_style(ProgressStyle::default_spinner().template("{spinner:.green} {msg}")?);
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ fn default_context_size() -> usize {
}

fn default_use_reranker() -> bool {
true
false
}

impl Default for Config {
Expand Down
Loading