Lorebooks are tools that allow users to define keywords or phrases, known as keys, that trigger specific entries to be added into a prompt. This feature is particularly useful for adding lore, character backstories, settings, or environmental details without having to hardcode them into the character definition, which helps manage the token limit.
By activating these entries when a key is mentioned in a chat, the Lorebook serves as a flexible and dynamic extension, enabling context-specific information to be surfaced only when necessary. For example, if a keyword like sword
is defined, any time sword
is mentioned in the prompt, the associated content will be inserted into the chat.
You can access lorebooks from other users on our Explore page. Lorebooks can also be found via Search on the top of our site. From here, you can sort and filter by date uploaded and content rating.
Bookmarking lorebooks saves the lorebook for easy access when you're on the Chat page. You can find lorebooks you've bookmarked in the My Stuff page.
Want to learn what all those Lorebook settings mean? Read on to find out more!
Here are the key properties you’ll need to understand when working with Lorebooks. These settings are found in the Lorebook page's Properties panel.
Import from File
Allows you to import an existing Lorebook from a file. This is useful for reusing previously created Lorebooks.
Name
The name of the Lorebook entry. This helps identify the Lorebook.
Description
A brief description of what the Lorebook contains.
Visibility
Controls who can view the Lorebook. Options include:
Rating
Sets the maturity level of the content:
Scan Depth
Defines how many past messages the system scans for keywords. A setting of 2
means it will check the last two messages for keywords, helping to keep the prompts relevant to recent interactions.
Token Budget
Sets the maximum number of tokens that Lorebook entries can use in a single prompt. If the total combined tokens of triggered entries exceed the set budget, only the highest-priority entries are included, while the rest are ignored.
Recursive Scanning
Enables or disables the feature that allows one Lorebook entry to trigger another. For example, if Sword
in one entry mentions Excalibur
, and there's a separate Lorebook entry for Excalibur
, it will pull in that entry as well.
Token Count
How many tokens are in the Lorebook. This is visible after first entry.
Here’s a breakdown of each field under Entries:
Entry Name
Name of the entry. You can leave it empty if you need.
Keys
Also known as keywords. This is the most important aspect of a character book entry. These are the list of words that, when mentioned, insert the content into the prompt. They are separated by commas. For example: sword, Excalibur
Entry Content
The main body of the Lorebook entry. This is the text that will be inserted when the key(s) are triggered.
Priority
Controls the order in which the entry is triggered when multiple entries are activated. Entries with a higher priority number will appear first.
Position
Specifies where the entry will be placed relative to the character context. Options include:
Enabled
Determines if the entry is active in the Lorebook. If disabled, the entry will not be pulled even if the keys are mentioned.
Case Sensitive
If enabled, keys will be case-sensitive. For example, Sword
and sword
would trigger different entries if this setting is on.
Selective
Requires both the primary and secondary keys to be mentioned together for the entry to be triggered.
Constant
If enabled, the content from this entry will always be inserted into the prompt, regardless of whether the key is mentioned.
Secondary Keys
Additional keys that must also be mentioned for the entry to activate. These act as "selective" triggers, meaning both primary and secondary keys need to appear together. If you have a keyword of Sword
and a secondary keyword of Holy
, then the content will only be inserted if both keywords can be found.
Comment
An internal note for the creator. Comments are not visible to users or in prompts but can help keep track of each entry's purpose.
In WyvernChat, creating a Lorebook is a straightforward process. Here’s how you can create and manage Lorebooks:
Once you’ve created and saved your Lorebook entries, you can start using them in your chats. Lorebooks are added during the Character Creation phase OR on the Chat page's right sidebar. You can assign more than one Lorebook to a single character.
Attach Lorebooks to your created character:
Activate Lorebooks in Chat:
+
button.If you have any questions about what kind of content is allowed on WyvernChat, feel free to check out our Prohibited Content Guide for more details!
If you’d like a hands-on way to understand how Lorebook settings work, check out this interactive guide created by our moderator and community member Toadplant! The page lets you adjust different settings and instantly see how the tooltips update in real time, making it easier to grasp how each option affects your entries.
Check out the interactive guide here → https://toadplant.github.io/lorebook-tools/