Skip to main content

hippmem-py

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

CI PyPI License

Ecosystem: Rust engine · Python bindings · MCP server

Install

pip install hippmem

No GPU, API key, or network required — the deterministic fallback backend works offline.

Quick Start

from hippmem import Engine

# Hash embedder — offline, zero config (default)
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()

Neural embedder (higher semantic accuracy)

engine = Engine.open(
    embedder="neural",
    api_base_url="https://api.openai.com/v1",
    api_key="sk-...",
    model="text-embedding-3-small",
)

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.4.1.tar.gz (42.7 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.4.1-cp39-cp39-macosx_11_0_arm64.whl (6.8 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for hippmem-0.4.1.tar.gz
Algorithm Hash digest
SHA256 26ea461e6fc12f51071a6af272b850abc0ef8ffe617dcd677f6e6c7ad03f4ca9
MD5 5a9bfe739ed3dabe8768a9325c48c6ed
BLAKE2b-256 56aefb229e26377baa987d8df67e75f5207529b652e37a5947cb29f3ba4a11fa

See more details on using hashes here.

File details

Details for the file hippmem-0.4.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hippmem-0.4.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5b86c62022b250de6d89eacafcae8b00c5422c5f61b164bbd1c5669b494104c8
MD5 ab61850a1fb39ff714331d545964d11c
BLAKE2b-256 3a68d42ddf4eef2334c84c5b4b1396829b11e9efea4e65fb7d55fdb20782732e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.5

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

This release

0.4.1 This release

2 files

0.4.0

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page