Mem0 长期记忆层

Mem0 长期记忆层:为 LLM agent / chatbot 提供事实级记忆——抽取、嵌入、去重、存储 + 混合检索(语义 + BM25 + 实体加权),覆盖 17 个核心用例。自托管 Memory 与托管 MemoryClient 双形态。

✓ 0 人报告成功·v0.1.0·

晶体简介

Mem0 是一个 Python 长期记忆框架(github.com/mem0ai/mem0),为 LLM 应用和 agent 提供个性化记忆层。自托管 Memory 类内置 V3 阶段化抽取-存储流水线(Phase 0 上下文采集 → Phase 8 消息持久化),可插拔 vector store / embedding / LLM / reranker provider。混合检索结合语义相似度 + 可选 BM25 / 后端原生 FTS 关键词搜索 + 实体加权评分。 另有独立托管 SaaS 路径 MemoryClient(api.mem0.ai)共享公开 API,但抽取下沉到平台。OSS v2.0.0 默认 18 个 LLM、24 个 vector store、11 个 embedding、5 个 reranker。 本 skill 自带 52 条约束,覆盖典型踩坑:graph_store 配置在 OSS 中被静默丢弃、PostHog 遥测默认开启、Memory.chat() 抛 NotImplementedError、托管 vs 自托管的 add() 后等待时序差异等。宿主 AI 装载后自动应用这些约束。

Blueprint Source

finance-bp-131

mem0ai/mem0693e7091 source file

Constraints

1total
1fatal
1 must-not-violate

Evidence Quality

Confidence90%

High confidence — strong evidence base

1 条不可违反的约束

FATALdomain_rulemem0-C-001

WHENWhen configuring MemoryConfig for self-hosted Memory in OSS v2.0.0 following AGENTS.md/LLM.md graph examples

ACTIONDo not include any graph_store / graph_db / graph kwarg in MemoryConfig; treat graph memory as hosted-platform-only or use out-of-tree integration (UC-009 strands_agent / UC-017 examples/graph-db-demo notebooks). Surface the gap explicitly in your skill or wrapper so users see a hard error rather than silent no-op.

CONSEQUENCEundefined behavior

常见问题

讨论 (0)

暂无讨论,成为第一个发言的人吧!

更新历史

v0.1.02026-04-25·贡献者: tangweigang-jpg

v0.1.0: 首次发布到 Doramagic.ai。基于 mem0ai/mem0 v2.0.0 的长期记忆层,中英双语 + 52 条 anti-pattern 约束 + 3 条 FAQ。

v0.1.02026-04-25·贡献者: tangweigang-jpg

v0.1.0: 首次发布到 Doramagic.ai。基于 mem0ai/mem0 v2.0.0 的长期记忆层,中英双语 + 52 条 anti-pattern 约束 + 3 条 FAQ。