Files
myWiki/concepts/agent-memory-five-category-model.md

54 lines
2.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "Agent Memory Five-Category Model (sz 设计)"
created: 2026-06-25
updated: 2026-06-25
type: concept
tags: ["agent-memory", "architecture", "design", "multi-index"]
sources:
- "[[atlas-agent-memory-architecture-2026]]"
- "[[longmem-eval-2025]]"
---
# Agent Memory Five-Category Model
基于 sz 的 Agent 记忆构建模式分析,将记忆按生命周期和检索特征划分为五类,并映射到现有 wiki 框架。
## 五类记忆模型
| # | 类别 | 存储方式 | Atlas 对应 | 检索特点 |
|---|------|---------|-----------|---------|
| 1 | **知识** | text + frontmatter delimiter | catalog无 user_id共享 | 确定性查找,结构化 |
| 2 | **概念** | 知识图谱 | —wiki 体系独立) | 遍历 + 关联推理 |
| 3 | **Cron 定时** | cron 直接构建 | — | 触发式,不算完整记忆 |
| 4a | **用户偏好/习惯/认知** | 结构化文本 | semantic稳定事实 | last_used_at 衰减 + use_count boost |
| 4b | **近期交流日志** | 结构化文本,快速塞上下文 | episodic原始日志 | timestamp 衰减(短期) |
| **5** | **计划/想法/洞察/遗留问题** | 结构化摘要 | **prospective**(前瞻) | 语义关联匹配(平坦时间衰减) |
## 设计原则
1. **知识(类型 1**独立于用户MCP Server 的 catalog 索引承载。frontmatter 提供结构化元数据(来源、标签、更新时间),正文提供全文检索。
2. **概念(类型 2**wiki link graph 承载。概念之间的交叉引用形成知识图谱,与记忆系统的全文检索形成互补——一个是遍历式探索,一个是精确召回。
3. **Cron类型 3**不进入记忆索引。Cron job 的配置本身是外部触发器,执行结果可作为 episodic 事件写入,但 job 定义不是"记忆"。
4. **用户绑定信息(类型 4**Atlas 的双索引episodic + semantic直接承载。日志部分走 episodic 的高频写入+短期衰减,偏好/习惯/认知走 semantic 的 consolidation 提炼+长期稳定。
5. **长周期随机提取(类型 5**:需要专门的前瞻记忆索引——见 [[prospective-memory-index]]。
## 关键洞察
第 5 类(计划/想法/洞察)在传统三索引框架中处于缝隙位置:
- 不是 episodic不应随 timestamp 沉底)
- 不是 semantic不是稳定事实是动态状态
- 不是 procedural不是可重复操作流程
它是**意图/计划/未闭合的思路**——介于 episodic 的短周期和 semantic 的稳定性之间,有自己的生命周期特征。
## 参考
- [[atlas-memory-system]]
- [[agent-memory-taxonomy]]
- [[prospective-memory-index]]
- [[longmem-eval-2025]]
- [[memory-indexing-retrieval-reading]]