Overview of QMD Memory Backend for OpenClaw
QMD (Query Markup Documents) serves as a local memory exoskeleton for AI Agents, solving retrieval failure issues that occur as logs accumulate. It employs a three-stage hybrid search pipeline to ensure high precision and semantic understanding:
- BM25 Full-Text Retrieval: Fast keyword matching, ideal for code, IDs, and specific terms.
- Vector Semantic Search: Uses Jina v3 embedding models (GGUF format) to find conceptually similar content regardless of exact wording.
- LLM Reranking: Uses a local Qwen3 0.6B model to evaluate the top candidates from the first two stages (merged via Reciprocal Rank Fusion) and select the most relevant final results.
This architecture runs entirely locally, ensuring zero API costs and data privacy.