Context

Introduction
Context is the total raw user input sent to an AI Dynamic Storyteller's Model to generate each output.

Story
The bulk of a generation's input context is usually the Story text; it should be filled with Prose. The initial content of an AI Dynamic Story is a sharable piece of text known as a Prompt. Outputs generated by the AI are added to the Story, and benefit by a user's skill in Wrangling.

Memory
Memory is text inserted into the context separate from the Story. As such, Memory text can be retained consistently across multiple output generations.

Key-Activated Context
See also: Lore Repositories Segments of text can be inserted into the context by certain strings in a user's input. In Novel AI parlance, Key-Activated Context is known as the 'Lorebook'. AI Dungeon refers to this concept as 'World Info'. Used intelligently, this can be a powerful tool to organically insert information that isn't desired to permanently remain in the context via the Memory or Author's Note fields. The most basic form of the Key-Activated Context (KAC) involves a block of text set to be inserted into context whenever a trigger word or phrase, known as a key, appears in the story field. Novel AI offers more customizable insertion settings and triggering mechanisms for advanced users to exploit. Key Relative Insertion tries to plug the Lorebook entry text near where the key appears in the context to make it read more closely as an associated concept by the AI model. Cascading Activation allows the Lorebook to search outside of the story field for keys, including in the Memory, Author's Note, and other Lorebook entries. Novel AI also offers the ability to trigger Biases upon activation of a lorebook entry, making chosen words or phrases more likely to be generated by the AI while the activated entry remains in context. Categories for the Lorebook, at is simplest, is a user-facing sorting system for Lorebook entries, but also possess the ability to activate entries sorted under the category with their own specific insertion locations in context, as well as phrase bias based on the entire category. Bias for Categories can also be utilized when the entries in the Category are inactive, meaning you can bias in favor of a chosen term which in turn triggers associated entries under the given category, without the user having to deliberately invoke the keys.

Keys
Activate a given Lore entry. Can benefit from intelligent use of RegEx.

Search Range
Specifies how many tokens/characters backwards in context an AI should search for lore keys.

Author's Note
See also: Tags