Cognitive memory system for AI agents — ACT-R activation, typed facts, Hebbian links, RL reranking
Project description
Mnemoria
Cognitive memory system for AI agents — ACT-R activation, typed facts, Hebbian links, RL reranking.
Installation
pip install mnemoria
Quick Start
from mnemoria.store import MnemoriaStore
from mnemoria.config import MnemoriaConfig
store = MnemoriaStore(MnemoriaConfig.balanced())
store.store("V[api.url]: https://example.com")
results = store.recall("What is the API URL?")
For better semantic recall on a real machine, install the embeddings extra:
pip install 'mnemoria[embeddings]'
Note: in constrained containers, TF-IDF fallback is expected and benchmark results may be lower than on a local machine with real embeddings.
Features
- ACT-R Activation — Frequency + recency based activation scoring
- Typed Facts — MEMORY_SPEC notation (C/D/V/?/✓/~) with metabolic decay rates
- Hebbian Links — NPMI-normalized co-occurrence edges with Ebbinghaus decay
- RL Reranking — Q-value UCB-Tuned exploration bonus
- Self-Optimizing Pipeline — LinUCB bandits per retrieval stage
- Scope Lifecycle — active → cold → closed with gauge pressure management
- Contradiction Detection — Entity overlap + update language pattern matching
- IPS Debiasing — Inverse propensity scoring to counteract popularity bias
- PPR Exploration — Personalized PageRank multi-hop discovery
Migration
If you are moving from Honcho or another external memory provider, see:
MIGRATING_FROM_HONCHO.md
Acknowledgements
If you want the provenance of ideas and inspirations, see:
ACKNOWLEDGEMENTS.md
License
AGPL-3.0-or-later — see LICENSE file or https://www.gnu.org/licenses/agpl-3.0.html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mnemoria-0.1.0.tar.gz.
File metadata
- Download URL: mnemoria-0.1.0.tar.gz
- Upload date:
- Size: 62.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36fe3a55a5e9c4f97ed11743d6666976d330bed3a166514969a66b871547cb74
|
|
| MD5 |
37abebbe474ab2343ad74edb0d13f091
|
|
| BLAKE2b-256 |
5095ca4f209a43c1ccc51182bfe9b0122fb9c0537ead66ed21d2afd6f2e5662e
|
File details
Details for the file mnemoria-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mnemoria-0.1.0-py3-none-any.whl
- Upload date:
- Size: 66.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fc2a92c4ba48dba6e6ae387186fe97304e11fe33c817d5d9eebf9bd43e4edfb
|
|
| MD5 |
8e68a9f1296f17707682af7ba89646d4
|
|
| BLAKE2b-256 |
0dd08eda56d48c95ecd5d039045b78d1184487ba1e8d76606abef975fc078dfc
|