You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a minimum similarity score threshold to the recall operation. Results below threshold are excluded, returning empty rather than low-confidence matches. This enables "I don't know" behavior instead of confident wrong answers.
Problem
Current recall in operations.rs has no minimum score filter:
// Every candidate gets returned, regardless of scorefor(memory_id, distance)in candidates {let score = euclidean_to_cosine(distance);
results.push(SearchResult{ memory,score: boosted_score });// No threshold check!}
This means:
Query "quantum computing" with no relevant memories → returns 5 garbage results at score 0.1
Agent receives confident-looking but irrelevant context
Per Sibyl benchmark: all vector systems scored 0/50 on trap questions — they always return a nearest neighbor, even for fake entities
Activity
fix(#252): address Cora review — remove index artifacts, add entity/c…
fix(#252): over-fetch for metadata post-filter, truncate to requested…
fix(#252): CI fixes — ignore model-dependent tests, fix clippy warnings
fix(#252): defer min_score filtering until after metadata post-filter
fix(#252): defer min_score filtering until after metadata post-filter
fix(#252): defer min_score filtering until after metadata post-filter
feat(#252): configurable similarity threshold for recall (#274)
fix(recall): report similarity for memories in unified search, not RR…
fix(recall): report similarity for memories in unified search, not RR…
feat(#252): configurable similarity threshold for recall (#274)