Native associative memory engine for AI agents
Project description
hippmem-py
Python bindings for HIPPMEM — native associative memory engine for AI agents.
Install
pip install hippmem
No GPU, API key, or network required — the deterministic fallback backend works offline.
Quick Start
from hippmem import Engine
engine = Engine.open()
engine.write("The user prefers Rust.", content_type="Preference")
engine.write("The user chose redb — pure Rust, fast compile.", content_type="Decision")
results = engine.retrieve("Why did the user choose redb?", top_k=3)
for r in results.results:
print(f"[{r.score:.3f}] {r.content}")
print(f" dimensions: {r.dimensions}")
engine.close()
Why associative memory?
Most memory solutions are vector databases — store embeddings, search by similarity. HIPPMEM discovers associations between memories at write time (entity, causal, temporal, semantic, topic) and retrieves via spreading activation over typed edges. The result: it remembers WHY, not just WHAT.
Documentation
| Document | Content |
|---|---|
| Quick Start | 5-minute setup and first run |
| API Reference | Method signatures and types |
| Configuration | Storage location, backend selection |
For deeper architecture and algorithm details, see the main HIPPMEM documentation.
Development
git clone https://github.com/hippmem/hippmem-py.git
cd hippmem-py
python3 -m venv .venv && source .venv/bin/activate
pip install maturin pytest
maturin develop
pytest
License
Apache 2.0. See LICENSE and COPYRIGHT.
The underlying hippmem-engine is AGPL-3.0-only. Importing hippmem-py does NOT subject your program to AGPL — only the engine crate itself is AGPL. See the HIPPMEM licensing overview.
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 hippmem-0.1.0.tar.gz.
File metadata
- Download URL: hippmem-0.1.0.tar.gz
- Upload date:
- Size: 35.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c42d6381300faedde406e4bbf70f511c5c980288095b00e186a868636f89815
|
|
| MD5 |
3b6bcd639f381cc02f3c6d2d919e604e
|
|
| BLAKE2b-256 |
c570fee87106f1c2879ed4f541793b7333bf9025a411104dc6e032f4f60fea3c
|
File details
Details for the file hippmem-0.1.0-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: hippmem-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 6.7 MB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de3bfe0022bacf8f20e5ec4ba3926ad6e82661a348311780be4ee92d7cb8c5a4
|
|
| MD5 |
d99e7fb6e19b587fdda4f722c4061e68
|
|
| BLAKE2b-256 |
ef30c3e395540a06c35928fbdbc2caa767dde66ba8866ae0c965fa3e22d410a0
|