Improve MemFuse recall via hybrid ranking and candidate generation.

Add RRF fusion with English word-level lexical scoring, tiered keyword fetch, and vector margin expansion (0.15/200) to fix pre-rank truncation; wire DashScope embedding bench path and update baseline to 28.8% recall@20.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-09-02 13:41:12 +08:00
parent b923e54eff
commit fb3a442e73
11 changed files with 1436 additions and 97 deletions
+3
View File
@@ -70,7 +70,10 @@
"verify:memory-v2-shadow-audit": "node --test memory-v2-shadow-audit.test.mjs",
"verify:memory-v2-recall-benchmark": "node --test memory-v2-recall-benchmark.test.mjs",
"verify:memory-v2-memfuse-bench": "node --test memory-v2-memfuse-bench.test.mjs",
"verify:memory-v2-openai-embed": "node --test scripts/embed-memory-v2-openai-compat.test.mjs scripts/resolve-llm-embedding-credentials.test.mjs",
"bench:memory-v2-memfuse": "node scripts/run-memory-v2-memfuse-bench.mjs",
"bench:memory-v2-memfuse:semantic": "node scripts/run-memory-v2-memfuse-bench.mjs --embedding-module ./scripts/embed-memory-v2-openai-compat.mjs",
"bench:memory-v2-memfuse:dashscope": "node scripts/run-memory-v2-memfuse-bench.mjs --embedding-module ./scripts/embed-memory-v2-dashscope.mjs",
"trace:mindspace-artifact": "node scripts/trace-mindspace-artifact.mjs",
"check:conversation-package-manifest": "node scripts/check-conversation-package-manifest.mjs",
"check:memory-v2-phase-a": "node scripts/check-memory-v2-phase-a-ready.mjs",