Skip to main content

hippmem-py

Python bindings for HIPPMEM — native associative memory engine for AI agents.

CI PyPI License

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hippmem-0.1.1.tar.gz (37.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hippmem-0.1.1-cp312-cp312-macosx_11_0_arm64.whl (6.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file hippmem-0.1.1.tar.gz.

File metadata

  • Download URL: hippmem-0.1.1.tar.gz
  • Upload date:
  • Size: 37.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.14.1

File hashes

Hashes for hippmem-0.1.1.tar.gz
Algorithm Hash digest
SHA256 756854bf870a155a350be9509ec288fa1719df34d34da310195d80cabfe1c6a0
MD5 ad243d496a3a84cb361fba5e7d9c2531
BLAKE2b-256 12de55bc18162a47f555d9b8ce9444b320069ac97b22e281e5488ab1cd2f9ec9

See more details on using hashes here.

File details

Details for the file hippmem-0.1.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hippmem-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1100e2fa5456056d274009888d385cf1190d36752452d39a4c5c78044cba8eb1
MD5 604c273277c65289d794b92177c9a62e
BLAKE2b-256 606be0d6ef6bcfad1e2af813a2fc06ac8b1c45272e06da5e9c7689b579ad1bc8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page