An agentic memory engine designed for lossless, tiered verbatim storage and multi-hop retrieval.
Project description
EpochDB
EpochDB is an ACID-compliant agentic memory engine designed for lossless, tiered verbatim storage and multi-hop retrieval.
Why
I had this idea while playing with LMDB. I wanted to create a memory system that could store conversations in a hybrid way, using in-memory for the most recent conversations and on-disk for older conversations. So, in order to have immutable data, I decided to use Parquet files for the on-disk storage.
Overview
Traditional AI memory systems compress conversations through destructive summarization. EpochDB bypasses this constraint by storing "Unified Memory Atoms"—the raw text intrinsically paired with dense embeddings.
EpochDB uses a tiered architecture reminiscent of CPU caching:
- L1: Working Memory: Sub-millisecond HNSW vector index in RAM.
- L2: Historical Archive: Cold storage in immutable, time-partitioned
.parquetfiles via PyArrow.
It uniquely handles multi-hop retrieval over time-partitioned data using a Global Entity Index.
Performance & Comparison
EpochDB is engineered specifically for Agentic workflows where logical continuity across long horizons is critical. In side-by-side benchmarks against industry standards, EpochDB remains the only local engine capable of complex multi-hop reasoning.
| Benchmark | Store | Metrics | Note |
|---|---|---|---|
| LoCoMo | EpochDB | recall: 1.000 | 100% Multi-hop Accuracy |
| ChromaDB | recall: 0.000 | Failed to connect related events | |
| Qdrant | recall: 0.000 | Failed to connect related events | |
| ConvoMem | EpochDB | recall@3: 1.000 | Perfect Semantic retrieval |
| FAISS | recall@3: 1.000 | Perfect Semantic retrieval |
[!IMPORTANT] Relational Expansion: While tools like FAISS and ChromaDB are excellent for single-turn semantic search, they act as "flat" stores. EpochDB leverages its integrated Knowledge Graph to bridge logical gaps, successfully navigating multi-hop queries where competitors fail completely.
How It Works
See how_it_works.md for a detailed technical dive into the architecture.
Benchmarks & Examples
See the full comparison in benchmark.md. Check out example_langgraph.py for a real-world agent integration example.
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 epochdb-0.1.1.tar.gz.
File metadata
- Download URL: epochdb-0.1.1.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05c413414d9a6fb675bebe352b01fd39f13ea0908e652259a706166f1b9a6ab3
|
|
| MD5 |
c1820f0e9742c75cd118e5fe79d8299e
|
|
| BLAKE2b-256 |
43675824fbc457252363364d6bf7fab212afb02eb7e6afcf3a00d4724c405925
|
File details
Details for the file epochdb-0.1.1-py3-none-any.whl.
File metadata
- Download URL: epochdb-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c968a13b661dfd0481425f36a9a43e9c46fb0ed07121f1b7a5bd14e0387bf2cb
|
|
| MD5 |
a484fec8fc9507eda69a87e4fb1b2984
|
|
| BLAKE2b-256 |
b82cfde3c1a7a105ee3ec0a0c7865f94733f689dccd3ea85440e266ec2f7f3e6
|