跳转到内容

回忆流程

v1 ✅ 已实现: memory_recall(query) 四源统一召回,返回 results[](以 memory_type 区分)。

能力说明
memory_recall四源:semantic / conversation / limbic / autobiographical;Top N;conversation 返回 snippet
sessions_search会话消息搜索;返回 snippet(非全文)
memory_remember对话中语义记忆 CRUD
Resident memorysystem prompt 注入(非 recall)
memory_type内容类型
semantic事实、偏好、经历等
session历史对话片段
limbic感性记忆
autobiographical叙事标题 + 内容片段

与 recall 分开:置顶语义记忆与引用最多条目始终注入 system prompt。LLM 在回复中标注记忆 ID 标记;引用计数通过夜间 cron 同步。

自我层(六块)通过 memory_recall 检索——始终位于 system prompt 中。

注入原因
自我层始终位于 system prompt体量小、固定,每次对话都需要「我是谁」
记忆层按需 memory_recall体量大、动态,需要时再搜

扩展到资源层(工具、技能、资产)的统一 recall 及预设权重见 Issue #47。非当前运行时行为。

认知心理学中,Recall 正是「主动从记忆中拉取已有信息」——回想已存储的内容。即使范围扩展到资源层,动作本质不变。