Janitor AI Lorebook 模板
Janitor AI Lorebook 模板(2026):关键词与示例
用主关键词、条件、独立内容、优先级和8轮测试,建立精简可维护的 Janitor AI Lorebook 模板。 适合新手上手和后续排错。
阅读约 11 分钟
快速回答
这篇指南主要讲什么
好用的 Janitor AI Lorebook 模板不靠堆字数。每条 entry 只负责一个主题,设置有区分度的关键词、独立 content 和明确触发条件。稳定身份放角色卡,变化事件放 Memory,Lorebook 只放按关键词调用的世界事实。先复制小模板,再跑8轮测试,最后按概念逐条增加。
- Lorebook 模板应该解决什么
- 每条 entry 必须有的4个字段
- 设计不会乱触发的关键词

Janitor AI Lorebook 模板指南
搜索 Janitor AI Lorebook template 的用户想要可修改的结构,而不是“代码越多效果越好”的承诺。本篇给出关键词、条件和 content 的小型可测试模板,补充 Janitor AI Lorebook 指南、授权导出指南和失效排查指南,不重复它们的主意图。
Lorebook 模板应该解决什么
Lorebook 模板是可重复的条目结构,不是提升人设的魔法。它适合地点、阵营、物品和事件等只在相关场景出现的世界事实。不应隐藏稳定身份、每轮都执行的规则或私有创作者内容。小模板比大型脚本更容易检查、迁移和排错。
| Template goal | Put it in | Avoid |
|---|---|---|
| Stable character identity | Character card | Repeating it in every lore entry |
| World fact on demand | Lorebook entry | Making every fact constant |
| Current relationship state | Chat Memory | Treating it as permanent canon |
| Reply style | Advanced Prompt | Hiding it behind a keyword |
每条 entry 必须有的4个字段
每条 entry 至少需要编辑器标签、主关键词、可选 secondary 条件和独立 content。启用、常驻、顺序、位置、概率和深度等字段应在理解后再加。非原创内容要保留来源和授权记录。
| Field | What to write | Quality test |
|---|---|---|
| Title/comment | A short editor label | You can find it later |
| Primary keys | Distinctive names or phrases | One clear activation message |
| Secondary keys | A real condition | It prevents unrelated activation |
| Content | Standalone facts | It makes sense without the key label |
| Enabled/constant | Whether it participates | It fires only when intended |
设计不会乱触发的关键词
优先使用罕见姓名或地点,不要用常见词。一个强关键词比十个近似词更容易测试。同义词只有自然且通过负向测试时才添加。Secondary 应收窄上下文,不能引入无关主题。Regex 不是必需,使用时要补充误触测试。
- Choose one rare primary key.
- Add one synonym only if users naturally type it.
- Keep secondary conditions separate.
- Test a negative control that should not activate.
- Narrow broad keys before increasing any token budget.
让 content 独立且可用
写 content 时假设模型看不到 key 标签:说明主题、关键事实、后果和适用范围。长历史按人物、地点和事件拆分。避免与角色卡冲突,也不要把可执行 Script 直接粘贴进普通 Lore 文本。
| Weak content | Why it fails | Better pattern |
|---|---|---|
| “The city is important.” | No usable detail | Name the rule, place and consequence |
| A 1,000-word history dump | Consumes context | Split by location, faction and event |
| Facts that depend on the key text | Model may not see the key | Repeat essential context in content |
| A script pasted as prose | It will not execute | Keep code in a supported script layer |
一次只调一个设置
排错时从小扫描深度、预算和默认插入位置开始。调试阶段保持概率100%,避免随机性掩盖关键词问题,基线测试关闭递归。一次改一个设置,重新发送相同消息,并记录结果。
| Setting | Beginner choice | Change it when |
|---|---|---|
| Scan depth | 2–4 recent turns | Older mentions must activate |
| Context budget | Small, measurable cap | Entries are visibly truncated |
| Insertion position | Default | The model sees facts too late |
| Probability | 100% for testing | You intentionally want variation |
| Recursion | Off for baseline | Linked entries are deliberately designed |
可复制的安全模板示例
下面示例使用虚构的港湾议会事实,可以替换成自己的世界。保留结构,再换成你有权使用的名称、关键词和 content。不要复制创作者关闭的条目,也不要把公开角色页面当作提取隐藏 Lorebook 的许可。
Title: Harbor Council
Primary keys: Aster Harbor, harbor council
Secondary condition: the council is being discussed
Content: Aster Harbor is governed by five council seats. A tie pauses new laws until the harbor bell is rung.
Use: add this entry only when the place or council matters to the current scene.
用8轮测试证明模板有效
每次重要修改后执行下面8轮:无关键词、精确词、同义词、条件、碰撞、场景变化、纠错和重新打开聊天。记录是否激活、插入位置、Token 和回复质量。合格模板只在需要时触发,其他时候保持安静。
| Turn | Input | Expected result |
|---|---|---|
| 1 | No key | Entry is absent unless constant |
| 2 | Exact primary key | Target entry activates |
| 3 | Synonym | Only the intended synonym activates |
| 4 | Wrong context | Secondary condition blocks it |
| 5 | Two related keys | Budget and order remain coherent |
| 6 | Scene change | Relevant fact returns without a dump |
| 7 | Correction | New scene truth overrides stale wording |
| 8 | Reopen chat | Binding and state persist |
模板不能修复弱模型、登录故障、角色卡冲突或未经授权的来源。若你真正想直接和角色聊天而不是维护 Lorebook,可以试试 LumiChat 角色库。LumiChat 是独立平台,不会解锁 Janitor AI 内容。
常见问题
最好的 Janitor AI Lorebook 模板是什么?
使用能清楚定义关键词、条件、独立 content 并可测试的最短结构。
一条 entry 要放几个关键词?
先放一个独特关键词,只增加通过负向测试的自然同义词。
每条都要常驻吗?
不需要。常驻条目会每次消耗上下文,应尽量少用。
Lorebook content 放什么?
放按关键词调用的地点、阵营、物品和事件等世界事实。
为什么模板总是乱触发?
关键词太宽、开启常驻、扫描过深或递归可能造成过度激活。
可以把 Script 当模板吗?
Script 是独立层,普通 Lore 文本不会自动执行 JavaScript。
公开创作者模板可以复制吗?
只有创作者允许复用时才可以,公开可见不等于隐藏内容可提取。
LumiChat 能导入吗?
本篇不承诺直接导入,LumiChat 是独立托管角色聊天服务。
继续体验
进入 LumiChat,开始真实角色聊天
浏览在线角色,选择适合你的人设与场景,立即开始对话。
继续阅读
Janitor AI 故障排查
Janitor AI Lorebook 不工作(2026):触发修复指南
逐层诊断 Lorebook 不触发、乱触发和模型忽略的问题。
Janitor AI Lorebook 迁移
Janitor AI Lorebook 导出指南:迁移到 SillyTavern
一套尊重内容权利的字段映射与8轮测试,用于把授权 Lorebook 迁移到 SillyTavern。
Janitor AI 提示词工作流
Janitor AI Advanced Prompt(2026):模板与修复指南
一套可测试的 Advanced Prompt 工具包,包含用户控制、文风、节奏、场景状态模板与 6 轮 A/B 测试。
世界记忆指南
JanitorAI Lorebook 世界书指南(2026):创建、导入与修复世界记忆
Lorebook 是按条件提供的世界知识,不是无限长期记忆。好条目在准确 key 出现时注入一个相关事实;坏条目要么每轮都触发,要么永远不触发。
