文档导航
文档/概念/披露触发条件

披露触发条件

写清楚触发条件,让 Lore 知道什么时候应该展示某条记忆。

Disclosure 描述一条记忆应该在什么时候出现。

好的 disclosure 很具体:

*.txt
Plaintext
When working on Cloudflare Pages deployment, custom domains, build commands, or Pages deploy hooks for LoreHub.

弱 disclosure 很模糊:

*.txt
Plaintext
Important project info.

面向未来 prompt 编写

Disclosure 应该描述触发记忆的场景,而不是概括记忆本身。包含可能的任务、症状、产品名和决策领域。

使用这个模式:

*.txt
Plaintext
When [doing task], [touching area], [debugging symptom], or [making decision] for [project/product].

Disclosure 与 glossary 的区别

字段用途
Disclosure记忆什么时候应该展示
Glossary别名、缩写、产品名、文件名和可能的搜索词
Content实际持久事实、规则、决策或工作流

不要把每个关键词都塞进 disclosure。别名和替代名称应该放进 glossary terms。

Lore 适合保存什么了解哪些事实、偏好、决策和规则应该成为持久记忆。Lore 如何工作理解启动上下文、召回、读取记忆、写入持久变更和审阅的循环。什么时候使用 Lore判断哪些信息值得保存,哪些短期笔记不需要进入记忆。记忆模型了解路径、域、优先级、披露、术语和生成视图这些核心记忆结构。