Repository navigation
fix(#448): recall without namespace now searches ALL namespaces - #454
Merged
Merged
Conversation
🔍 Cora AI Code Review❌ Blocked — critical issues found. 🔴 Error (1)
Review powered by cora-cli · BYOK · MIT |
Root cause: recall(), recall_hybrid(), search(), and recall_fts5_only() all used namespace.unwrap_or(DEFAULT_NAMESPACE) — converting None to "default". This meant queries without namespace only searched the default namespace, ignoring all others. Fix: None namespace = search ALL namespaces (no filter). Cache key uses "all" for None namespace to distinguish from "default". 300 tests pass. Clippy clean.
ajianaz
force-pushed
the
fix/448-namespace-regression
branch
from
June 22, 2026 14:22
9afad16 to
8c3718a
Compare
| // min_score is NOT in the cache key: cached results store the full set | ||
| // and the caller re-applies threshold, ensuring correctness regardless | ||
| // of what threshold a previous caller used. | ||
| let cache_ns = namespace.unwrap_or("all"); |
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
Root cause: recall(), recall_hybrid(), search(), and recall_fts5_only() all used namespace.unwrap_or(DEFAULT_NAMESPACE) — converting None to "default". This meant queries without namespace only searched the default namespace, ignoring all others. Fix: None namespace = search ALL namespaces (no filter). Cache key uses "all" for None namespace to distinguish from "default". 300 tests pass. Clippy clean.
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.
Fixes #448.
Bug:
recall(query)without namespace parameter only searched "default" namespace instead of ALL namespaces.Root cause:
namespace.unwrap_or(DEFAULT_NAMESPACE)converted None to "default" in recall(), recall_hybrid(), search(), and recall_fts5_only().Fix: None namespace = no filter = search ALL namespaces. Cache key uses "all" for None.
300 tests pass. Clippy clean.