Universal memory engine for AI bots. 3 layers: Redis (Hot) + Qdrant (Warm) + Neo4j (Cold). FZ-152 compliant.
Project description
Memory Core SDK
Universal memory engine for AI bots. 3 layers: Redis (Hot) + Qdrant (Warm) + Neo4j (Cold).
Quick Start
pip install memory-core
from memory_core import MemoryClient
memory = MemoryClient("mc_live_...")
# Bot remembers
memory.upsert(user_id="user_42", content="Люблю итальянскую кухню")
# Bot recalls
ctx = memory.context(user_id="user_42", query="что заказать на ужин?")
# → Hot: fresh messages
# → Warm: "итальянская кухня" (score: 0.82)
# → Cold: user knowledge graph
Async (for aiogram, FastAPI)
pip install memory-core[async]
from memory_core import AsyncMemoryClient
memory = AsyncMemoryClient("mc_live_...", bot_id="my_bot")
await memory.upsert(user_id="user_42", content="Предпочитает SPA")
ctx = await memory.context(user_id="user_42", query="что предложить?")
API
| Method | Description |
|---|---|
upsert(user_id, content) |
Save to memory (Hot+Warm+Cold) |
context(user_id, query) |
Retrieve relevant context |
remember(user_id, fact) |
Shortcut: save a fact |
recall(user_id, query) |
Shortcut: semantic search |
summarize(user_id) |
Summarize session into episode |
profile(user_id) |
Full user profile |
health() |
API health check |
Links
- Landing: https://memorycore.ru
- API Docs: https://api.memorycore.ru/docs
- Dashboard: https://memorycore.ru/dashboard
License
MIT - (c) 2025-2026 Otel Group
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
memorycore_ai-0.4.0.tar.gz
(5.4 kB
view details)
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 memorycore_ai-0.4.0.tar.gz.
File metadata
- Download URL: memorycore_ai-0.4.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19b0b61b01c562c7ebb5f42a42602107e1f45a261c7942693db05cd22f4d3dd4
|
|
| MD5 |
04d9729f14cce1a005403ae27f7b3440
|
|
| BLAKE2b-256 |
934c1566d9aac0c127515d21070d5d13bf4ad63cb6b7d4b27be842c016571890
|
File details
Details for the file memorycore_ai-0.4.0-py3-none-any.whl.
File metadata
- Download URL: memorycore_ai-0.4.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f45ab6aa7139d8e9850302cc02109d6fa4ec30b76094dfce75e1bb7958b4d36
|
|
| MD5 |
46bc349fcfc775fb91b44d6526919f5c
|
|
| BLAKE2b-256 |
6b441283ef2a6bfeed19375376fec02faaa870da1697278d72140680a3427224
|