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.
⚡ 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
extreme1-bit ADC andturbo4-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 Memorywithfrom hyperspace_memory import Memorywithout 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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c53088014b74874ae446974863b4fe0c392f08ec3b694d208396835d2a093734
|
|
| MD5 |
a3b71aa1497f9abe58b30439f1b0ec17
|
|
| BLAKE2b-256 |
9859799a578d48f9e6229cad948a53743adcb23ffa1fd6efa1f58f195c47ea0d
|
File details
Details for the file hyperspace_memory-3.1.7-py3-none-any.whl.
File metadata
- Download URL: hyperspace_memory-3.1.7-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c63e22e52c053691d7278c346068d06f23eedecb578ff737454e1a82845bff39
|
|
| MD5 |
d5e5aee7000e70cd8605f280f6c87122
|
|
| BLAKE2b-256 |
9b23052364245e3a1a720f9ab7056ab496e8383bcf05f9c1035da1e7fd3ba415
|