Skip to content

fix(rag): call _filter_stale_chunks() in _fallback_basic_search — stale paths on fallback path (#4721)#4732

Merged
mrveiss merged 1 commit intoDev_new_guifrom
issue-4721
Apr 15, 2026
Merged

fix(rag): call _filter_stale_chunks() in _fallback_basic_search — stale paths on fallback path (#4721)#4732
mrveiss merged 1 commit intoDev_new_guifrom
issue-4721

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Apr 15, 2026

Closes #4721

Summary

  • Added search_results = await self._filter_stale_chunks(search_results) in _fallback_basic_search() before the return, after category filtering
  • metrics.final_results_count now reflects the post-filter count accurately
  • Covers all 3 fallback trigger paths: enable_advanced_rag=False, RAG init failure, mesh retriever not available

Tests

  • 4 new TestFallbackBasicSearchFiltersStaleChunks tests + 6 pre-existing TestFilterStaleChunks = 10 passed

🤖 Generated with Claude Code

…le paths were returned on fallback path (#4721)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mrveiss mrveiss merged commit 8032e0a into Dev_new_gui Apr 15, 2026
3 of 4 checks passed
@mrveiss mrveiss deleted the issue-4721 branch April 15, 2026 18:06
@github-actions
Copy link
Copy Markdown

✅ SSOT Configuration Compliance: Passing

🎉 No hardcoded values detected that have SSOT config equivalents!

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