improve memory fallback lexical ranking (#65395)

* improve memory fallback lexical ranking

* use neutral lexical fallback fixtures

* fix(memory-core): keep lexical boosts out of hybrid search

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
This commit is contained in:
Anonymous Amit
2026-04-12 23:06:28 +05:30
committed by GitHub
parent 9259e593e6
commit 42590106ab
4 changed files with 118 additions and 3 deletions

View File

@@ -67,6 +67,8 @@ flowchart LR
If only one path is available (no embeddings or no FTS), the other runs alone.
When embeddings are unavailable, OpenClaw still uses lexical ranking over FTS results instead of falling back to raw exact-match ordering only. That degraded mode boosts chunks with stronger query-term coverage and relevant file paths, which keeps recall useful even without `sqlite-vec` or an embedding provider.
## Improving search quality
Two optional features help when you have a large note history: