Skip to content

fix(search): use Redis EXISTS for BM25 lazy recompute sentinel (#2082)#2124

Merged
mrveiss merged 1 commit intoDev_new_guifrom
fix/issue-2082
Mar 23, 2026
Merged

fix(search): use Redis EXISTS for BM25 lazy recompute sentinel (#2082)#2124
mrveiss merged 1 commit intoDev_new_guifrom
fix/issue-2082

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Mar 23, 2026

Summary

  • Use redis.exists(bm25:corpus_stats) instead of comparing total_docs == 1 to detect missing stats
  • Prevents unnecessary recompute on single-document knowledge bases

Closes #2082

@github-actions
Copy link
Copy Markdown

✅ SSOT Configuration Compliance: Passing

🎉 No hardcoded values detected that have SSOT config equivalents!

@mrveiss mrveiss merged commit 4be7fa8 into Dev_new_gui Mar 23, 2026
2 of 3 checks passed
@mrveiss mrveiss deleted the fix/issue-2082 branch March 23, 2026 20:57
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.

1 participant