-
-
Notifications
You must be signed in to change notification settings - Fork 1
Hybrid Search
Vheins x C.O.R.E edited this page Aug 14, 2026
·
1 revision
The MCP Local Memory Service uses a Hybrid Search Engine to ensure your AI Agent always finds the right information, even if you use different words or make typos.
Every search result is the weighted blend of four signals:
-
Semantic similarity (40%) — meaning-based relevance using the
all-MiniLM-L6-v2model locally via Transformers.js. This lets the Agent understand that "database schema" is related to "migrations", even when the words don't match. - Keyword match (30%) — exact tokens and phrases found in stored text. A query for "auth" immediately finds content containing that exact term.
- Recency (15%) — newer entries score higher; the signal halves every ~30 days.
-
Domain / workspace affinity (15%) — a boost when the memory's repository or folder matches your current working context (e.g. working in
src/auth/boosts memories scoped to theauthfolder or repo).
The blend is computed as: finalScore = similarity·0.40 + keyword·0.30 + recency·0.15 + domain·0.15.
- Adaptive Thresholding: the strictness adapts to the size of the result set — lenient for small sets (0.10 for memories) so a fresh project still returns results, stricter for larger sets (0.40) to cut noise. If every candidate falls below the threshold, the single best match is still returned, so a cold start is never empty.
-
Tech-Stack Affinity: pass
current_tags(e.g.["react", "laravel"]) to include memories tagged with those technologies from other projects. Your Agent's experience with a library in Project A follows to Project B. -
Conflict Prevention: storing a memory that contradicts an existing one (cosine similarity ≥ 0.85) is rejected with a
MEMORY_CONFLICTerror, keeping your knowledge base a single source of truth.
Semantic search performance depends on local CPU capabilities and the quality of the stored text. THE SOFTWARE IS PROVIDED "AS IS", without warranty of accuracy.
- Core Features — feature overview
-
Tool Reference & Usage Guide — searching memories with
memory-read - Pencarian Hibrida — Bahasa Indonesia
MCP Local Memory Service — local-first long-term memory (SQLite + semantic search), a web dashboard, and a codebase index for AI agents. Back to Home
Provided "AS IS", without warranty of any kind.
Home
English
- Getting Started
- Tools Reference
- MCP Concepts
- Features
- Hybrid Search
- Dashboard Guide
- Troubleshooting
- Auto-Start Dashboard
- Claude Code Integration
- Codex Integration
- Kiro Integration
Bahasa Indonesia
- Memulai
- Referensi Alat
- Referensi Protokol MCP
- Fitur Inti
- Pencarian Hibrida
- Panduan Dasbor
- Pemecahan Masalah
- Auto-Start Dasbor
- Integrasi Claude Code
- Integrasi Codex
- Integrasi Kiro
Features