Repository navigation
fix(cli): default recall min_score 0.3 -> 0.0 (#1223) - #1228
Merged
Merged
Conversation
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This was referenced Sep 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Lowers the default
[recall] min_scorefrom 0.3 to 0.0 (crates/uteke-cli/src/config.rs), updates the 4 tests asserting the old default, refreshes the sample-config comment, and updatesdocs/configuration.md+docs/cli-reference.md(including a new note stating the score scale per strategy). HTTP (DEFAULT_MIN_SCORE) and MCP already default to 0.0 — this aligns the CLI. Fixes #1223.Why
Since the fusion strategy (weighted RRF) became the recall default in 0.16.0, returned scores are rank-based (RRF contribution plus salience/recency boosts, typically ~0.0–0.2) rather than cosine similarity — the code itself documents that applying cosine thresholds to RRF scores "would incorrectly filter results" (
operations.rs, hybrid arm). The 0.3 default is a cosine-era value, so default CLI recall now returns empty for almost every query.Measured locally (uteke 0.17.0, embeddinggemma-q4): 20 paraphrase probes over a 40-memory store — every rank-1 similarity score fell in 0.169–0.186; even the exact stored text scored 0.1875 (
explain: raw vector cosine 0.738, final score 0.188). Under the legacy cosine-scale default of 0.3, all of these are filtered →[].Thresholds remain fully opt-in:
[recall] min_score,--min,--strict(0.5), or HTTPmin_score.Testing
cargo test -p uteke-cli config::— 45 passed, 0 failed (incl. the 4 updated default assertions and the env-override range-guard tests).recallnow returns the previously-invisible memory (score 0.174);--min 0.25still filters as expected;--strictunchanged (0.5).min_scorein config are untouched (overlay logic unchanged).