Evaluate mnemo as a persistent memory/knowledge graph module for cf-core #63
Labels
No labels
architecture
backlog
enhancement
module:documents
module:hardware
module:manage
module:pipeline
module:voice
priority:backlog
priority:high
priority:medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/circuitforge-core#63
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
mnemo (https://github.com/zaydmulani09/mnemo) is a local-first LLM memory sidecar written in Rust. It extracts named entities and relationships from conversations, builds a persistent knowledge graph in SQLite, and injects relevant context back into future prompts in under 50ms. MIT license.
Architecture
Retrieval pipeline
6 stages: full-text search → entity lookup → graph expansion → relation filtering → scoring/ranking → context injection. Avg 4.2ms on M2 debug; 3-5x faster in release.
Why cf-core
cf-core already has
preferences,tasks, anddbmodules. Amemorymodule wrapping mnemo's Python SDK would give all CF products a shared, persistent knowledge graph layer without each product re-implementing it.Scope
cf_core.memorymodulemnemosidecar tocompose.base.ymltemplate (alongside ollama)memory.remember(conversation),memory.recall(query),memory.entities()Products that would benefit
Notes
Implemented as
circuitforge_core.memorymodule (MIT). WrapsAsyncMnemoClientwith graceful degradation: no-ops when sidecar is absent, exponential backoff + auto-reconnect after consecutive failures (5s → 10s → 20s → 60s cap). API:remember(),recall(),entities(),stats(),wipe(). Optional dep:pip install circuitforge-core[memory]. 26 tests passing.