Skip to main content

Universal memory engine for AI bots. 3 layers: Redis (Hot) + Qdrant (Warm) + Neo4j (Cold).

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

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_sdk-0.3.3.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

memorycore_sdk-0.3.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file memorycore_sdk-0.3.3.tar.gz.

File metadata

  • Download URL: memorycore_sdk-0.3.3.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

Hashes for memorycore_sdk-0.3.3.tar.gz
Algorithm Hash digest
SHA256 66fe475e1a49d5bb42c8308fc087a71c17ce6a7752901e344a9d84735a052bfa
MD5 41c6617ff56a03d37245facc74c1331b
BLAKE2b-256 bcfeb1046ddc9f3dad70ac66a3ce3f2a3c919408d465d592c7103d5bd1673b98

See more details on using hashes here.

File details

Details for the file memorycore_sdk-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: memorycore_sdk-0.3.3-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

Hashes for memorycore_sdk-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 12859097df851cd6035e7f7fee079f95ebf6084eff246753b271bfdebb618c88
MD5 2ec041cce8514a74a262244b534e894e
BLAKE2b-256 0ecd57973b18c9a7beeed65d75d571a9befe80d2fb9a3c5a5251390d1f576805

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 Pingdom Monitoring Sentry Error logging StatusPage Status page