ai_member_template/memory/README.md
2026-03-26 11:09:26 +08:00

37 lines
1.1 KiB
Markdown
Raw Permalink 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.

# memory/ - 短期经验记忆目录
存放数字员工的**按天记录的短期工作记忆**。
## 用途
- 记录每天工作中的临时经验、待跟进事项、对话要点
- 作为短期记忆缓冲区,避免 `MEMORY.md` 过度膨胀
- 便于回顾近期工作上下文
## 文件命名规范
按日期命名,格式为 `YYYY-MM-DD.md`
```
memory/
├── 2025-03-24.md
├── 2025-03-25.md
├── 2025-03-26.md
└── README.md
```
## 与 MEMORY.md 的关系
| | memory/YYYY-MM-DD.md | MEMORY.md |
|---|---|---|
| **内容** | 当天工作细节、临时经验、待跟进事项 | 重要的长期知识、核心规则、关键经验 |
| **生命周期** | 短期,可定期归档清理 | 长期保留,持续维护 |
| **写入时机** | 每次对话中随时记录 | 确认为重要且通用的内容后提炼写入 |
## 规则
- 每天的记忆文件在当天首次需要时自动创建
- 涉及多个用户的记录需标注来源(飞书 open_id 或姓名)
- **不要在日记忆中存放密码、密钥等敏感信息**
- 建议定期(如每周)回顾日记忆,将有价值的内容提炼到 `MEMORY.md`