|
1 | 1 | --- |
| 2 | +doc-schema-version: 1 |
2 | 3 | summary: "The default SQLite-based memory backend with keyword, vector, and hybrid search" |
3 | 4 | title: "Builtin memory engine" |
4 | 5 | read_when: |
5 | 6 | - You want to understand the default memory backend |
6 | 7 | - You want to configure embedding providers or hybrid search |
| 8 | + - You are migrating from the removed QMD memory backend |
7 | 9 | --- |
8 | 10 |
|
9 | 11 | The builtin engine is the default memory backend. It stores your memory index |
@@ -112,6 +114,42 @@ You can also index Markdown files outside the workspace with |
112 | 114 | [configuration reference](/reference/memory-config#additional-memory-paths). |
113 | 115 | </Info> |
114 | 116 |
|
| 117 | +## Migrating from QMD |
| 118 | + |
| 119 | +QMD has been removed; builtin is the only memory engine. After upgrading, run: |
| 120 | + |
| 121 | +```bash |
| 122 | +openclaw doctor --fix |
| 123 | +``` |
| 124 | + |
| 125 | +Doctor removes the retired `memory.backend`, `memory.qmd`, and |
| 126 | +`memory.search.qmd` settings, including agent-scoped `memory.search.qmd` |
| 127 | +forms. It preserves QMD paths and extra collections as the corresponding |
| 128 | +`memory.search.extraPaths` entries, including `{ path, pattern }` globs. When |
| 129 | +Memory Core finds a retired per-agent QMD workspace under |
| 130 | +`~/.openclaw/agents/<agentId>/qmd/`, Doctor also offers to remove its derived |
| 131 | +indexes, model downloads, collection metadata, and session exports. |
| 132 | + |
| 133 | +Canonical memory remains in `MEMORY.md`, `USER.md`, `memory/*.md`, and the |
| 134 | +migrated extra paths. Builtin indexes those same Markdown sources on its next |
| 135 | +sync. The cutover is lossless by construction: no canonical memory content is |
| 136 | +copied or deleted; only derived state is rebuilt. |
| 137 | + |
| 138 | +Builtin now covers most QMD use cases with: |
| 139 | + |
| 140 | +- hybrid BM25 and vector retrieval by default, followed by temporal decay, |
| 141 | + importance, and project affinity before MMR diversity, |
| 142 | +- bounded lexical query expansion for conversational searches, |
| 143 | +- string or `{ path, pattern }` entries in `memory.search.extraPaths`, and |
| 144 | +- optional image and audio indexing under `extraPaths` only. |
| 145 | + |
| 146 | +QMD query mode's learned cross-encoder reranking and HyDE generation are not |
| 147 | +part of builtin memory. MMR reduces duplicate results but is not a learned |
| 148 | +relevance reranker. To replace QMD's in-process, zero-key GGUF embeddings, |
| 149 | +install the [llama.cpp provider](/plugins/llama-cpp) and set |
| 150 | +`memory.search.provider: "local"`; without an embedding provider, builtin uses |
| 151 | +BM25 keyword search only. |
| 152 | + |
115 | 153 | ## When to use |
116 | 154 |
|
117 | 155 | The builtin engine is the right choice for most users: |
|
0 commit comments