Skip to content

fix(cli): default recall min_score 0.3 -> 0.0 (#1223) - #1228

Merged
ajianaz merged 1 commit into
developfrom
fix/recall-default-min-score
Sep 11, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/recall-default-min-score

Conversation

@ajianaz

@ajianaz ajianaz commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

What

Lowers the default [recall] min_score from 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 updates docs/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 HTTP min_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).
  • Manual E2E on the patched binary, fresh isolated store: default recall now returns the previously-invisible memory (score 0.174); --min 0.25 still filters as expected; --strict unchanged (0.5).
  • Behavioral note: results that previously showed by default remain visible; users with an explicit min_score in config are untouched (overlay logic unchanged).

@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit f4bdae7 into develop Sep 11, 2026
15 checks passed
@ajianaz
ajianaz deleted the fix/recall-default-min-score branch September 11, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

recall: default min_score 0.3 suppresses valid embedding matches (found via AMB benchmark wiring)

1 participant