MemU - An open-source AI memory framework for AI-powered emotional companionship.
MemU is an open-source AI memory framework for AI-powered emotional companionship. MemU can remember every conversation between a user and AI, extract key points, and build a knowledge graph, enabling AI to truly understand the user.
What is MemU?
MemU is an open-source AI memory framework for AI-powered emotional companionship. MemU remembers every conversation between a user and AI, extracts key points, and builds a knowledge graph, enabling AI to truly understand the user. MemU's memory evolves autonomously, continuously optimizing with use. MemU supports rapid integration; only a few lines of code are needed to give AI persistent memory. Compared to other frameworks, MemU boasts 92% accuracy, 90% lower cost, and a retrieval speed as fast as 50 milliseconds. In emotional companionship, education, and other scenarios, MemU can become a thoughtful intelligent partner for users.
MemU's main functions
- Memory storage and managementMemU stores conversations as "self-growing" folders, persisting memories and evolving autonomously over time, ensuring information retention and continuous optimization.
- Memory retrieval and retrievalMemU offers high accuracy (95% for single-hop, 88% for multi-hop) and fast retrieval (50 milliseconds), supporting semantic, hybrid, and contextual retrieval strategies for efficient information extraction.
- Memory comprehension and evolutionIt automatically extracts key points from conversations, builds knowledge graphs, and can analyze and generate new insights offline, continuously optimizing the knowledge base.
- Personalized experienceBuild personalized profiles based on user conversations and behaviors, provide deep emotional companionship, remember stories and preferences, and thoughtfully support user needs.
- Integration and ExpansionIt integrates with mainstream platforms such as OpenAI and Anthropic through simple code, and supports enterprise-level customized development and intelligent analysis tools.
MemU's project address
- Project official websitehttps://memu.pro/
- GitHub repositoryhttps://github.com/NevaMind-AI/memU
How to use MemU
- Create an account and obtain an API key
-
Visit the official websiteGo to the MemU official website: https://memu.pro/.
-
Register an accountRegister a free account on the official website.
-
Get API keyAfter logging into your account, visit the API Key page to generate your own API key.
-
- Install MemU libraryIn the code environment, install the MemU Python library using the following command:
pip install memu-py
- Integrate MemU into the codeHere is a simple code example demonstrating how to integrate MemU into your project:
import os
from memu import MemUClient
# 初始化 MemU 客户端
memu_client = MemUClient(
base_url="https://api.memu.so",
api_key=os.getenv("MEMU_API_KEY")
# 从环境变量中获取 API 密钥
)
# 准备对话内容
conversation_text =
"""
User: 你好,MemU!
Assistant: 你好!有什么可以帮你的吗?
User: 我最近在学习编程,你能给我一些建议吗?
Assistant: 当然可以!编程是一个很棒的技能。你可以从 Python 开始,它非常适合初学者。
"""
# 将对话内容传入 MemU,让其开始记忆
memu_client.memorize_conversation(
conversation=conversation_text,
user_id="user001",
# 用户 ID
user_name="User",
# 用户名称
agent_id="assistant001",
# AI 助手 ID
agent_name="Assistant"
# AI 助手名称
)
print("对话已成功记录到 MemU!")
- View and manage memoriesAfter integration, on the MemU management page... View and manage all conversations and memories that the AI has remembered.
Application scenarios of MemU
- AI-powered emotional companionshipMemU can record users' emotional journey and preferences, providing them with thoughtful emotional support, making AI a companion that is more considerate than a lover and understands you better than family.
- AI EducationIt provides personalized learning plans and tutoring for educational applications, helping students learn more efficiently.
- AI therapyIn medical and psychotherapy, it helps record patients' medical history and treatment progress, assisting doctors and therapists in making more accurate diagnoses and treatments.
- AI robotsMemU enables AI robots to remember interactions with users and environmental information, providing smarter and more personalized services and interactive experiences.
- Intelligent Customer ServiceWith MemU, intelligent customer service systems can record customers' historical questions and preferences, enabling more coherent multi-turn conversations and providing more efficient and personalized customer service.