Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 51 additions & 18 deletions app/nullius/catalogue/modules/mem0/capability.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,8 @@
"tested": "94c3fe9f238f3dbf29c9ce98643bd71eb13077cd",
"tested_date": "2026-11-02",
"package": "mem0ai",
"version": "2.2.1",
"license": "Apache-2.0"
},
"install": {
"python": "3.12",
"pip": [
"mem0ai==2.2.1",
"fastembed==0.9.1",
"spacy==3.8.18"
],
"wheels": [
{
"url": "https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl",
"sha256": "1932429db727d4bff3deed6b34cfc05df17794f4a52eeb26cf8928f7c1a0fb85"
}
],
"prefetch": [
"Qdrant/bm25"
]
},
"env": {
"MEM0_TELEMETRY": "False",
"FASTEMBED_CACHE_PATH": "{install}/hf"
Expand Down Expand Up @@ -116,5 +98,56 @@
"{install}/.venv/bin/python",
"{here}/capability.py"
]
},
"default": "2.2.1",
"versions": {
"observation-date": {
"install": {
"python": "3.12",
"pip": [
"mem0ai @ git+https://github.com/aitianshi/mem0.git@c0df9505b33fd84ef2e724759b9a40e29e7c9f4e",
"fastembed==0.9.1",
"spacy==3.8.18"
],
"wheels": [
{
"url": "https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl",
"sha256": "1932429db727d4bff3deed6b34cfc05df17794f4a52eeb26cf8928f7c1a0fb85"
}
],
"prefetch": [
"Qdrant/bm25"
]
},
"upstream": {
"repository": "https://github.com/aitianshi/mem0",
"branch": "observation-date",
"tested": "c0df9505b33fd84ef2e724759b9a40e29e7c9f4e",
"tested_date": "2026-11-30",
"origin": "experiment",
"fixes": [
"Each session's facts are dated by the session, not the day of the run: Mem0 2.2.1 with its open pull request #5949 (https://github.com/mem0ai/mem0/pull/5949), which gives the extraction prompt the session's date as its Observation Date."
]
}
},
"2.2.1": {
"install": {
"python": "3.12",
"pip": [
"mem0ai==2.2.1",
"fastembed==0.9.1",
"spacy==3.8.18"
],
"wheels": [
{
"url": "https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl",
"sha256": "1932429db727d4bff3deed6b34cfc05df17794f4a52eeb26cf8928f7c1a0fb85"
}
],
"prefetch": [
"Qdrant/bm25"
]
}
}
}
}
4 changes: 3 additions & 1 deletion app/nullius/catalogue/modules/mem0/capability.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
``add {session}`` - the session's turns as Mem0 messages (a role other than
user or assistant is a user turn naming its speaker),
added for one user, the session's id and date as metadata,
the date also as ``timestamp``
the date also as ``timestamp``: the Observation Date Mem0's
extraction resolves "yesterday" from, in the observation-date
version (2.2.1 ignores it and uses the day of the run)
``recall {question}`` - ``{memory}``: what Mem0's search returns, best first,
each memory headed by its session's date

Expand Down
12 changes: 12 additions & 0 deletions app/nullius/catalogue/modules/mem0/proofs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
"kind": "capability",
"key": "mem0",
"versions": {
"observation-date": {
"proven": {
"cap.memory/v1": {
"passed": "2/2",
"model": "claude-haiku-5-5",
"provider": "custom",
"version": "observation-date",
"kit_version": 1,
"backend": "local"
}
}
},
"2.2.1": {
"offers": [
"cap.memory/v1"
Expand Down
3 changes: 2 additions & 1 deletion app/tests/test_catalogue_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def named(key, text):
self.assertNotIn("2026-", text, "no proof dates on a page")
self.assertNotIn("gpt-5-mini", agents, "no proof models on a page")
modules = catalogue_docs.render_features_index()
named("mem0", modules)
for key in ("mem0@2.2.1", "mem0@observation-date"):
named(key, modules)
self.assertIn("`cap.memory/v1`", modules)
self.assertEqual(sorted(catalogue_docs.render_pages("modules")), ["mem0.md"])
benchmarks = catalogue_docs.render_benchmarks_index()
Expand Down
2 changes: 1 addition & 1 deletion app/tests/test_standard_setups.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def test_one_retrieval_for_the_original_and_a_memory_each_at_its_own_default(sel
self.assertIn("--bench-option retrieval=none", both["script"])
self.assertIn("--bench-option retrieval=dialog", both["script"])
rows = [r[2] for r in both["review"] if r[1] == "Retrieval"]
self.assertEqual(rows, ["none (its default) · its own procedure", "dialog (its default) · Mem0"])
self.assertEqual(rows, ["none (its default) · its own procedure", "dialog (its default) · Mem0 2.2.1"])
said = [e["message"] for e in self.compiled(others=["original", "mem0"], model="vendor/model", bench_options={"retrieval": "none"})["errors"]]
self.assertIn("Option retrieval: none is for original and model alone, never an agent or a Module.", said)
summary = self.compiled(others=["original", "mem0"], model="vendor/model", bench_options={"retrieval": "summary"})
Expand Down
2 changes: 1 addition & 1 deletion app/ui_tests/test_builder_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_the_version_procedure_is_the_first_card_and_other_benchmarks_agents_are
for c in cards.values(): # origin, protocol, source: filters
self.assertNotIn("origin-tag", c); self.assertNotIn("bench-harness", c); self.assertNotIn("std-tag", c)
html, mem = self.grid("longmemeval")
self.assertIn("mem0", mem)
self.assertIn("mem0@2.2.1", mem) # each version its card
self.assertNotIn("keyword-memory", html) # an example, there to read, never to choose
for k, c in cards.items():
if k.startswith("osworld"):
Expand Down
8 changes: 5 additions & 3 deletions docs/modules/supported/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Every Module in the catalogue, the port each has proven, and the benchmarks it f

| Module | Versions (bare key: the default) | What it is | Port proven | From | Licence |
|---|---|---|---|---|---|
| [Mem0](mem0.md) | `mem0` | Mem0's memory layer: an LLM extracts facts from conversations, recalled by hybrid search, optionally reranked. | `cap.memory/v1` | PyPI | Apache-2.0 |
| [Mem0](mem0.md) | `mem0@observation-date`, `mem0@2.2.1` | Mem0's memory layer: an LLM extracts facts from conversations, recalled by hybrid search, optionally reranked. | `cap.memory/v1` | PyPI | Apache-2.0 |

- Examples, never offered for a run: `keyword-memory` (Example memory: Nullius's example memory, to read or copy: BM25 over whole sessions.)

Expand All @@ -22,7 +22,8 @@ Every Module in the catalogue, the port each has proven, and the benchmarks it f
<thead><tr><th rowspan="2">Module</th><th colspan="1" class="group">Ports</th></tr><tr><th>Memory</th></tr></thead>
<tbody>
<tr><td><code>keyword-memory</code></td><td><span class="mark">✓</span></td></tr>
<tr><td><a href="mem0.md"><code>mem0</code></a></td><td><span class="mark">✓</span></td></tr>
<tr><td><a href="mem0.md"><code>mem0@observation-date</code></a></td><td><span class="mark">✓</span></td></tr>
<tr><td><a href="mem0.md"><code>mem0@2.2.1</code></a></td><td><span class="mark">✓</span></td></tr>
</tbody></table>

- ✓ proven by `cli conform`, – not proven.
Expand All @@ -33,7 +34,8 @@ Every Module in the catalogue, the port each has proven, and the benchmarks it f
<thead><tr><th rowspan="2"></th><th colspan="1" class="group"><a href="../../benchmarks/supported/locomo.md">LoCoMo</a></th><th colspan="1" class="group"><a href="../../benchmarks/supported/longmemeval.md">LongMemEval</a></th></tr><tr><th>Memory</th><th>Memory</th></tr></thead>
<tbody>
<tr><td><code>keyword-memory</code></td><td><span class="mark">✓</span></td><td><span class="mark">✓</span></td></tr>
<tr><td><a href="mem0.md"><code>mem0</code></a></td><td><span class="mark">✓</span></td><td><span class="mark">✓</span></td></tr>
<tr><td><a href="mem0.md"><code>mem0@observation-date</code></a></td><td><span class="mark">✓</span></td><td><span class="mark">✓</span></td></tr>
<tr><td><a href="mem0.md"><code>mem0@2.2.1</code></a></td><td><span class="mark">✓</span></td><td><span class="mark">✓</span></td></tr>
</tbody></table>

<!-- end of the generated block -->
Expand Down
8 changes: 6 additions & 2 deletions docs/modules/supported/mem0.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ Mem0's memory layer: an LLM extracts facts from conversations, recalled by hybri
<table>
<thead><tr><th rowspan="2">Version</th><th rowspan="2">Upstream</th><th colspan="1" class="group">Ports</th></tr><tr><th>Memory</th></tr></thead>
<tbody>
<tr><td><code>mem0</code></td><td><code>2.2.1</code></td><td><span class="mark">✓</span></td></tr>
<tr><td><code>mem0@observation-date</code></td><td><code>observation-date</code></td><td><span class="mark">✓</span></td></tr>
<tr><td><code>mem0@2.2.1</code> (default)</td><td><code>2.2.1</code></td><td><span class="mark">✓</span></td></tr>
</tbody></table>

- `key@version`: a revision of the definition and driver; a recipe pins one, the builder offers the default.

## Options

| Option | Values, default in bold | What it sets | Versions |
Expand All @@ -36,5 +39,6 @@ Mem0's memory layer: an LLM extracts facts from conversations, recalled by hybri
<table>
<thead><tr><th rowspan="2"></th><th colspan="1" class="group"><a href="../../benchmarks/supported/locomo.md">LoCoMo</a></th><th colspan="1" class="group"><a href="../../benchmarks/supported/longmemeval.md">LongMemEval</a></th></tr><tr><th>Memory</th><th>Memory</th></tr></thead>
<tbody>
<tr><td><code>mem0</code></td><td><span class="mark">✓</span></td><td><span class="mark">✓</span></td></tr>
<tr><td><code>mem0@observation-date</code></td><td><span class="mark">✓</span></td><td><span class="mark">✓</span></td></tr>
<tr><td><code>mem0@2.2.1</code></td><td><span class="mark">✓</span></td><td><span class="mark">✓</span></td></tr>
</tbody></table>