Skip to main content

hyperspace-memory (Python) 🚀

Drop-in replacement for Mem0, Zep, and MemGPT powered by the HyperspaceDB native memory engine with 1-bit ADC quantization, MRL in-RAM cascades, and Lorentz hyperbolic spaces.

PyPI Version License: MIT


⚡ Key Advantages over Mem0 & Zep

  • 100x Lower Search Latency: Sub-millisecond (< 0.5 ms) retrieval via MRL in-RAM cascade indexing.
  • 98% RAM & Storage Reduction: Native extreme 1-bit ADC and turbo 4-bit Lloyd-Max quantization (compressed down to ~100B per vector).
  • Zero Extra LLM Calls: Direct vector and graph traversal memory operations without forcing expensive LLM parsing for every insert.
  • 100% Mem0 API Compatibility: Replace from mem0 import Memory with from hyperspace_memory import Memory without altering your application code.

📦 Installation

pip install hyperspace-memory

🛠 Quick Start (Mem0 Drop-In Migration)

from hyperspace_memory import Memory

# 1. Initialize Memory (connects to HyperspaceDB)
memory = Memory(config={
    "host": "the.yar.ink",
    "api_key": "YOUR_YARINK_API_KEY",
    "quantization": "medium_plus"  # "none" | "medium_plus" | "turbo" | "extreme"
})

# 2. Add Memory
res = memory.add(
    "User prefers Rust and dark mode UI over Python and light mode.",
    user_id="user_123",
    metadata={"category": "preferences"}
)
print("Added Memory:", res)

# 3. Search Memory
results = memory.search("What programming language does the user prefer?", user_id="user_123", limit=3)
for item in results:
    print(f"Memory: {item['memory']} (Score: {item['score']})")

# 4. Get All Memories for User
all_memories = memory.get_all(user_id="user_123")

# 5. Delete & Reset
memory.delete(results[0]["id"])

📄 License

MIT © YARlabs.

Download files

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

Source Distribution

hyperspace_memory-3.1.7.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

hyperspace_memory-3.1.7-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file hyperspace_memory-3.1.7.tar.gz.

File metadata

  • Download URL: hyperspace_memory-3.1.7.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.4

File hashes

Hashes for hyperspace_memory-3.1.7.tar.gz
Algorithm Hash digest
SHA256 c53088014b74874ae446974863b4fe0c392f08ec3b694d208396835d2a093734
MD5 a3b71aa1497f9abe58b30439f1b0ec17
BLAKE2b-256 9859799a578d48f9e6229cad948a53743adcb23ffa1fd6efa1f58f195c47ea0d

See more details on using hashes here.

File details

Details for the file hyperspace_memory-3.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for hyperspace_memory-3.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c63e22e52c053691d7278c346068d06f23eedecb578ff737454e1a82845bff39
MD5 d5e5aee7000e70cd8605f280f6c87122
BLAKE2b-256 9b23052364245e3a1a720f9ab7056ab496e8383bcf05f9c1035da1e7fd3ba415

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.1.7 This release

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