Write the fact in Entry Text and use the title to identify it
Open the story’s Lorebook and create an entry. Give it a title you will recognize in a list. Then write the information the model needs in Entry Text. NovelAI uses the title to help you organize entries. A character’s name in the title alone does not tell the model who the description is about.
For a first entry, one sentence is enough. An entry titled “Station hours” might read “North Station closes at nine each evening.” The name and the constraint both appear in the text. Once inclusion works, you can add other information you expect to need at the same time. Keeping the first test short also makes it easy to recognize the full entry in the context viewer.
Choose an activation key that occurs naturally in the manuscript
Add North Station as an activation key. Enable the entry and leave Always On off for this first check. Write a line in the manuscript that mentions the station by name. Omit the closing time from the line. If you put the same information into both the prompt and the entry, the eventual reply cannot tell you which source supplied it.
Ordinary keys ignore case. Add a shorter alias if it is the name your characters actually use. A broad key such as “station” might also fire at other stations, wasting space or supplying the wrong opening hours. Leave advanced matching and placement settings alone until you have seen a simple name match work. The controls available can also differ by model.
Last Context shows whether the previous generation received the entry
Generate once, then open the Advanced settings and select Last Context. Find the entry and inspect the included text. Check the activation key and the reason shown for inclusion. If it is missing, the option to show non-activated entries can help you distinguish an entry that never triggered from one that reached the context builder.
Last Context and Current Context answer different questions. Last Context describes the generation you are investigating. Current Context shows what the setup looks like now. Changing a key after a disappointing reply can make the current setup look perfect while telling you little about the earlier failure. Generate again after the edit, then inspect that new reply’s context.
Fix the trigger, the space allowance or the prose according to what the viewer shows
| What the viewer shows | What to change |
|---|---|
| The entry never activated | Check Enabled, the key and its appearance in recent text. |
| The entry activated but the important line is absent | Shorten the entry or reconsider how much material is competing for space. |
| The full entry was included | Check for contradictory prose. Edit or retry the continuation. |
| The correction appears only in Current Context | Generate again and inspect the new Last Context. |
An inactive entry calls for a closer look at its spelling, aliases, enabled state and the recent text. An entry that activated but lost its important line needs a shorter body or more room in context. Start by cutting details unrelated to the current scene. Reserving extra room for every entry eventually leaves less room for the story itself.
If the entire correct fact arrived, adding more keys cannot repair the reply. Look for an older sentence that contradicts the entry, then edit the reply or retry the continuation. A successful setup means the model received the intended information. The quality of the sentence it wrote is a second judgment. Keeping those checks separate saves a surprising amount of tinkering.
Sources & further reading
- NovelAI | Lorebook documentation docs.novelai.net
- NovelAI | Context viewer and advanced settings docs.novelai.net
- NovelAI | Story settings docs.novelai.net
- DreamGen | NovelAI play report dreamgen.com