A Modern 4-Stage Synthetic Memory
Project description
HoloMem – 4-Stage Synthetic Memory
Overview
HoloMem is a production-grade, multi-stage synthetic memory framework inspired by real cognition. Built for AI Agents, LLMs, Voice Assistants and more with advanced automation.
Stages:
- Perception – Immediate, in-memory (RAM) context
- Optional, not required
- Sensory – Short-lived, per-user episodic memory
- STM (Short-Term Memory) – Active conversation/session memory
- LTM (Long-Term Memory) – Persistent archive
Key Features
-
Direct, 4-stage architecture:
- Perception (RAM) Sensory (Per User) → STM (All Users) → LTM (All Users)
-
Thread-safe singleton: One instance per process, all operations safe for concurrency.
-
Configurable: All limits, expirations, are adjustable.
-
No vendor lock-in: Plug into any agent, LLM, or workflow.
-
No required maintenance: Maintenance/cleanup is optional but recommended. Run in a background thread no lock-in or forced schedules.
-
Bonus: Image storage and expiry: Store/expire/archive images and metadata if needed—totally optional.
Why HoloMem?
Most “memory” modules just log history or dump to a database. HoloMem is layered, time-aware, and models real-world cognition.
- Perception: Working context—ephemeral, in-memory, no disk. (Optional Use)
- Sensory: Fast, expiring, per-user buffer.
- STM: Recent active memory, rolls into LTM automatically.
- LTM: Archive—retrieve by date, user, or content.
- Image: Use if you need; never required.
- Memory Recall: Semantic (embedded/meaning-based) or Rapid (word-based) memory search. Both can be filtered by user or all users
You control all layouts, all workflows.
API Highlights
Perception (RAM only):
mem.savePerception("live context chunk")
mem.retrievePerception() # FIFO, up to limit
mem.clearPerception()
Sensory / STM / LTM:
mem.saveSensory("input", "response", "user", mem.senDir)
mem.retrieveSensory(mem.getDir(mem.senDir, "user.db"))
mem.saveConversationDetails("input", "response", "user", mem.stmUserConversationDetails)
mem.retrieveConversationDetails("user", [mem.stmUserConversationDetails, mem.ltmUserConversationDetails])
mem.setSynMemModel("model_name") # Set the model for embeddings, if you forget to set it, it will default to rapid that way your memory recall is always available.
mem.recallMemory(
"your query",
[mem.stmUserConversationDetails, mem.ltmUserConversationDetails],
user="user", # or None for all users
type="Embedded", # or "Rapid"
topK=5, # number of results
minScore=60, # min score for Rapid
showProgress=False
)
Bonus: Images (if needed):
mem.saveCreatedImage("subject", image_data, mem.stmCreatedImages, mem.stmCreatedImageDetails)
Maintenance (Optional, Recommended)
- Why? For auto-cleanup, auto-archival, and expired memory removal.
- Not required for operation.
- Enable any time—runs in the background so no blocking.
If you don’t enable maintenance, expired items will accumulate until you remove them.
Plug and Play
- No schemas, no boilerplate.
- Use with any LLM/agent plug-N-play and go.
FAQ
Q: Is perception persistent? A: No, it is always RAM-only.
Q: Do I need maintenance? A: No, but it’s strongly recommended for any long-running use.
Q: What if I don’t use image storage? A: Ignore all image APIs—they’re bonus, not core.
Code Examples
You can find code examples on my GitHub repository.
License
This project is licensed under the Apache License, Version 2.0. Copyright 2025 Tristan McBride Sr.
Acknowledgements
Project by:
- Tristan McBride Sr.
- Sybil
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 holomem-0.1.0.tar.gz.
File metadata
- Download URL: holomem-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
937bbbb674e664145907b7200adb1ede2e5b0542a2d4d4cee23bbdcf859364f0
|
|
| MD5 |
e6b04aee8b6dbd304002cc81b9634e35
|
|
| BLAKE2b-256 |
9cf9feb0db29c165d15ba1a95720f90175c19f6ff506accb15afa107417797fc
|
File details
Details for the file holomem-0.1.0-py3-none-any.whl.
File metadata
- Download URL: holomem-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9027b025b8d6ebb04d2992676de9499abe0a4d243e92835b4f3a0b93b057ee9
|
|
| MD5 |
5bfeaad868b24603abc62667e5f6b5ee
|
|
| BLAKE2b-256 |
6b167c6f7c9861a8e6f241c63ddfb64c0b9eac70e6602cfed3d8fb285f7e0687
|