回忆流程
统一 Recall 检索
Section titled “统一 Recall 检索”v1 ✅ 已实现:
memory_recall(query)四源统一召回,返回results[](以memory_type区分)。
v1 已实现
Section titled “v1 已实现”| 能力 | 说明 |
|---|---|
memory_recall | 四源:semantic / conversation / limbic / autobiographical;Top N;conversation 返回 snippet |
sessions_search | 会话消息搜索;返回 snippet(非全文) |
memory_remember | 对话中语义记忆 CRUD |
| Resident memory | system prompt 注入(非 recall) |
memory_type | 内容类型 |
|---|---|
semantic | 事实、偏好、经历等 |
session | 历史对话片段 |
limbic | 感性记忆 |
autobiographical | 叙事标题 + 内容片段 |
与 recall 分开:置顶语义记忆与引用最多条目始终注入 system prompt。LLM 在回复中标注记忆 ID 标记;引用计数通过夜间 cron 同步。
与自我层的关系
Section titled “与自我层的关系”自我层(六块)不通过 memory_recall 检索——始终位于 system prompt 中。
| 层 | 注入 | 原因 |
|---|---|---|
| 自我层 | 始终位于 system prompt | 体量小、固定,每次对话都需要「我是谁」 |
| 记忆层 | 按需 memory_recall | 体量大、动态,需要时再搜 |
扩展到资源层(工具、技能、资产)的统一 recall 及预设权重见 Issue #47。非当前运行时行为。
认知心理学中,Recall 正是「主动从记忆中拉取已有信息」——回想已存储的内容。即使范围扩展到资源层,动作本质不变。