Skip to content

Constrain keyword fulltext recall#1624

Merged
CaralHsi merged 1 commit intoMemTensor:dev-v2.0.15from
hijzy:optimize-keyword-topk
May 6, 2026
Merged

Constrain keyword fulltext recall#1624
CaralHsi merged 1 commit intoMemTensor:dev-v2.0.15from
hijzy:optimize-keyword-topk

Conversation

@hijzy
Copy link
Copy Markdown
Collaborator

@hijzy hijzy commented May 6, 2026

Summary

  • Use weighted keyword extraction for Chinese keyword recall and cap keyword terms at 12.
  • Require user_name before PolarDB fulltext keyword search and pass tenant scope into related node lookups.
  • Reduce PolarDB fulltext candidate fetches from top_k * 2 to top_k.

Test plan

  • python -m py_compile src/memos/memories/textual/tree_text_memory/retrieve/searcher.py src/memos/multi_mem_cube/single_cube.py
  • IDE lints on edited files

Use weighted keyword extraction and require tenant scope so PolarDB fulltext avoids broad scans.
@CaralHsi CaralHsi merged commit 3e0fd44 into MemTensor:dev-v2.0.15 May 6, 2026
16 checks passed
@hijzy hijzy deleted the optimize-keyword-topk branch May 8, 2026 03:44
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.

2 participants