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
Metadata
Release files for mnemoria 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mnemoria-0.1.0.tar.gz | 62.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mnemoria-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 129.5 kB
Release files / mnemoria-0.1.0.tar.gz
| Download URL | mnemoria-0.1.0.tar.gz |
|---|---|
| Size | 62.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36fe3a55a5e9c4f97ed11743d6666976d330bed3a166514969a66b871547cb74
|
|
BLAKE2b-256 checksum How to use checksums |
5095ca4f209a43c1ccc51182bfe9b0122fb9c0537ead66ed21d2afd6f2e5662e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / mnemoria-0.1.0-py3-none-any.whl
| Download URL | mnemoria-0.1.0-py3-none-any.whl |
|---|---|
| Size | 66.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0fc2a92c4ba48dba6e6ae387186fe97304e11fe33c817d5d9eebf9bd43e4edfb
|
|
BLAKE2b-256 checksum How to use checksums |
0dd08eda56d48c95ecd5d039045b78d1184487ba1e8d76606abef975fc078dfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|