Files
myWiki/concepts/agent-memory-lifecycle.md

56 lines
1.8 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 记忆生命周期"
created: 2026-06-19
updated: 2026-06-19
type: concept
tags: [agent-memory, lifecycle, pipeline, memos]
sources:
- https://mp.weixin.qq.com/s/5Wo91nzstNtCIV9chnuQmw
---
# Agent 记忆生命周期
## 五阶段管线
一个完整的记忆系统可拆解为五个核心环节:
```
抽取 → 组织 → 检索 → 更新 → 共享
↑ |
└──────────────────────────────┘
(闭环反馈)
```
### 1. 抽取Extraction
- 从对话流、交互轨迹中识别和提取关键信息
- **关键风险**:记忆是对知识的高度总结,幻觉在此阶段引入后会在后续环节累积
- MemOS 使用自研记忆原生模型自主决定何时抽取
### 2. 组织Organization
- 结构化存储、去重、归纳合并
- [[memory-dedup-pipeline|三级去重漏斗]]SHA-256 → 向量余弦 → LLM Judge
- 平均压缩比 75%+
### 3. 检索Retrieval
- 多路召回、时间衰减、多样性处理
- 不同于文档检索——记忆检索需考虑时效性、相关性、可信度
### 4. 更新Update
- 增量合并、矛盾检测
- 记忆不是只增不减——需要合并重复、解决冲突、过期退役
### 5. 共享Sharing
- 跨 Agent/用户/会话传递记忆
- Hub 机制解决知识孤岛和经验蒸发问题
## 对应关系
这与 [[agent-skill|Agent Skill]] 的生命周期Representation → Acquisition → Retrieval → Evolution形成有趣的平行结构——两者共享"存储→检索→演化"的核心模式但记忆更侧重事实性上下文skill 更侧重过程性 know-how。
## 参考
- [[agent-memory-system|Agent 记忆系统]]
- [[layered-memory-architecture|三层记忆架构]]
- [[memory-dedup-pipeline|记忆去重管线]]
- [[agent-skill|Agent Skill]]