LumiChat AI

SillyTavern World Info 工作流

SillyTavern Lorebook 指南(2026):World Info 与触发词

了解 SillyTavern Lorebook(World Info)如何通过关键词、扫描深度、预算和作用域按需加入世界信息,避免 Prompt 被无关内容淹没。

作者: LumiChat AI Team发布时间:

阅读约 12 分钟

快速回答

这篇指南主要讲什么

在 SillyTavern 中,Lorebook 通常称为 World Info。它会在扫描到匹配关键词时,把对应条目动态加入 Prompt。先建立一条短小、可独立理解的条目,使用一个有区分度的关键词和较窄的扫描深度,再测试无关键词、精确关键词、大小写、整词、预算和绑定。Character、Chat、Persona 与全局 Lore 的作用域不同,应选择最小可用范围。

  • SillyTavern Lorebook 到底做什么
  • 设计可预测的触发关键词
  • 会改变激活结果的设置

角色快速入口

每次刷新随机展示 3 个角色;有推广视频时优先播放视频,没有视频时显示角色图片,并保留角色介绍和聊天入口。

Cassian Vale

夜行猎手

Cassian Vale

猎手与对手的双重气质,适合悬念、反转和会主动回击的互动。

暗夜对手悬念
开始聊天
Zahara Nyx

草原猎手

Zahara Nyx

野外冒险感很强,适合追逐、竞争与不断反转的角色扮演。

冒险竞争野性
开始聊天
Lilith Moreau

吸血鬼伯爵

Lilith Moreau

古堡、礼仪和超自然秘密,适合优雅克制的慢热浪漫。

哥特吸血鬼优雅
开始聊天
用于说明 SillyTavern Lorebook 与 World Info 行为的真实 LumiChat 角色库

搜索 SillyTavern LorebookWorld Info 的用户需要的是行为答案,而不是词典解释:为什么会触发、扫描几轮消息、Lore 插在哪里、为什么书越大回复反而越差。本篇聚焦这条操作链,补充 Janitor AI Lorebook 指南Janitor AI 导出指南AI 角色卡指南,不重复它们的平台和文件迁移内容。

SillyTavern Lorebook 到底做什么

SillyTavern 中的 Lorebook、World Info 和 World Info 文件,指的都是一组按关键词动态加入 Prompt 的条目。模型真正读取的是 content,key 和 comment 是激活与编辑控制,不会自动替你解释背景。World Info 能提供上下文,但不保证模型一定复述每个事实。稳定身份、当前场景和可选世界事实应分层保存,避免变成无法测试的一整段文字。

LayerJobCommon mistake
Character cardStable identity and scenarioPutting every temporary event here
World Info entryAdd lore when a key appearsUsing broad keys that fire everywhere
Chat LoreFacts for one conversationExpecting it to follow every chat
Persona LoreFacts about the user roleTreating it as character memory

设计可预测的触发关键词

可靠的关键词要足够独特,能指向目标概念,又不能在普通聊天中频繁命中。优先使用完整地点、阵营或姓名,少用“家”“朋友”这种常见词。第二个关键词应是真正的同义表达;secondary key 应表达条件,而不是另一个无关主题。Regex 可以处理受控模式,但需要更多误触测试。每个 key 都要有一条应该触发和一条不应触发的消息。

Key typeExampleWhat to check
Primary keyAster HarborExact spelling and expected trigger
Multiple keysharbor council, councilWhether the shorter key overfires
Secondary keyA faction plus a locationSelective logic and matching mode
Regex keyA documented JavaScript regexEscaping, flags and false positives

会改变激活结果的设置

扫描深度、Token 预算、大小写、整词匹配、插入位置、顺序、概率和递归都会改变结果。排错时先保留默认位置和较小预算,只扫描最近几轮消息,便于解释为什么触发。英文单词适合整词匹配,但中文、日文等无空格语言要谨慎。常驻条目会在每次请求消耗上下文,应尽量少用。预算变大也不能替代精简 content。

SettingWhat it controlsSafer first value
Scan depthHow many recent messages are scanned2–4 turns while debugging
Context budgetMaximum World Info tokensSmall enough to leave story room
Case sensitivityWhether letter case must matchOff unless a key is ambiguous
Match whole wordsPrevents partial-word matchesOn for English single-word keys
Insertion orderRelative placement of entriesKeep defaults until behavior is known

先添加一条条目再扩展世界书

先做一本文很小的世界书。每条 content 都要独立说明主题、关键事实和适用条件,不能依赖编辑器标签或 key 才看得懂。修改前保存 JSON 备份,并记录条目数、关键词和设置变化。一条通过后再添加第二条不同主题的 entry。批量导入会隐藏问题,因为一个错误作用域或过长内容可能同时影响几十条。

  1. Create or open the World Info file.
  2. Add one concise entry with one distinctive key.
  3. Save, open a disposable chat and mention the key once.
  4. Inspect the generated prompt or activation indicator.
  5. Add a second entry only after the first behaves correctly.
  6. Keep a JSON backup before bulk edits.

如何选择 Character、Chat、Persona 或全局

事实要跟随一个角色的所有聊天时,用 Character Lore;只属于一个分支或临时剧情时,用 Chat Lore;与用户 Persona 绑定时,用 Persona Lore;只有明确要跨角色复用时才用 Global World Info。作用域越窄越容易排错,也更不容易把不相关信息泄露到其他对话。导出角色时仍要保留独立备份,绑定书和嵌入卡片不一定是同一个文件。

ScopeActivation boundaryBest use
Character LoreEvery chat with one characterCanon facts tied to that character
Chat LoreOne chat or branchTemporary campaign state
Persona LoreEvery chat using one personaUser role, profession or identity
Global World InfoAny selected chatReusable setting intentionally shared

执行8轮 World Info 测试

创建、导入或修改 World Info 后,都用相同8轮流程测试。先发送不含关键词的消息,再测精确触发,然后改变大小写、使用部分词、同时命中两个 key、测试 secondary 条件、切换场景并重新打开聊天。记录是否触发、插入位置、Token 消耗和回复连贯性。模型、预设、扩展或扫描设置变化后,应视为新的测试。

TurnMessage patternExpected result
1No key mentionedNon-constant entry stays out
2Exact primary keyTarget entry activates
3Different caseMatches configured case behavior
4Partial wordWhole-word rule behaves as chosen
5Two keys in one messageOrder and budget remain coherent
6Secondary condition onlySelective logic prevents overfiring
7Scene change, key repeatedEntry returns without duplicate prose
8Reopen the same chatBinding and saved state persist

排查不触发、乱触发和位置不对

按“激活 → 注入 → 生成”顺序排错。不触发先查拼写、启用状态、绑定和扫描深度;乱触发先收窄 key、关闭 constant 或检查递归;已触发但模型忽略时,缩短并补全 content;导入被截断时按概念拆分并减少重复。Janitor AI Lorebook 导出指南负责授权转换;如果你只是想立即进入角色聊天、不想维护 World Info 文件,可以试试 LumiChat 角色库

SymptomCheck firstSmallest fix
Entry never activatesKey, enabled state, scan depthUse one distinctive key and two-turn scan
Entry activates on every messageBroad key or constant=trueNarrow the key or disable constant
Lore appears too latePosition or insertion orderMove it to the intended context slot
Imported text is truncatedToken budget or long contentSplit into standalone concise entries
Character ignores the loreContent assumes the key label is visibleRepeat essential context in content
Results change after updateModel, preset or extension changedRecord the route and rerun the same test

常见问题

SillyTavern Lorebook 就是 World Info 吗?

是,World Info 是 SillyTavern 当前对动态 Lorebook 系统的称呼。

Lorebook 如何触发?

扫描聊天上下文时匹配 key,就会把对应 content 加入 Prompt。

扫描深度设多少?

排错时先用最近2–4轮,确有需要再增加。

为什么总是乱触发?

关键词太宽、开启 constant 或递归激活了更多条目。

Character Lore 和 Chat Lore 怎么选?

长期角色事实用 Character,单分支或临时状态用 Chat。

World Info 会保证模型记住吗?

不会,它只是加入上下文,模型仍可能遗漏或误解。

可以使用 Regex key 吗?

可以,但要理解 JavaScript Regex 并测试误触。

LumiChat 能直接导入吗?

本篇不承诺直接导入;LumiChat 是独立的托管角色聊天服务。

Sebastian Laurent

继续体验

进入 LumiChat,开始真实角色聊天

浏览在线角色,选择适合你的人设与场景,立即开始对话。

进入聊天