Files
nexus/wiki/concepts/三层记忆架构.md
2026-04-14 16:02:50 +08:00

31 lines
1.1 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: "三层记忆架构"
type: concept
tags: [AI, Agent, 记忆]
sources: [yang-xia-ri-ji-2]
last_updated: 2026-04-14
---
## Definition
OpenClaw Agent的短期记忆 + 长期记忆 + self-improving复盘的三层记忆系统。
## 三层结构
| 层级 | 载体 | 功能 | 特点 |
|------|------|------|------|
| 短期记忆 | memory/YYYY-MM-DD.md | 每日对话记录 | 原始、仅追加 |
| 长期记忆 | LanceDB向量数据库 | 重要决策、偏好、流程 | 语义搜索 |
| 自改进层 | LEARNINGS.md | 每日23:00复盘、错误记录 | Pattern-Key追踪 |
## 各司其职
- **每日文件管上下文**Agent启动时读取接上昨天工作
- **向量数据库管知识**:语义搜索找回重要信息
- **self-improving管成长**:错误只犯一次,持续进化
## 核心观点
"三层各司其职每日文件管上下文向量数据库管知识self-improving管成长。" — 比利哥
## Connections
- [[Self-Improving Skill]] ← 自改进层 ← [[三层记忆架构]]
- [[LanceDB]] ← 长期记忆 ← [[三层记忆架构]]