The Memory Layer for Personalized AI
A smart, self-improving memory layer for LLM applications. Create personalized AI experiences that delight users.

from mem0 import Memory
m = Memory()
# Add content to the memory layer
result = m.add("Likes to play cricket on weekends", user_id="alice", metadata={"category": "hobbies"})
# Retrieve related memories
related_memories = m.search(query="What are Alice's hobbies?", user_id="alice")