Browse the docsOpen Smut Writer AI

What is a lorebook in AI writing? How lore entries work on Smut Writer AI

Short answer

A lorebook is a set of notes about your story's world that the AI reads only when they come up. On Smut Writer AI, which is completely uncensored, every world keeps its own lore entries: one fact per entry, woken by keywords in the last few messages or set to Always active, so a big canon stays consistent without crowding every reply.

Last updated

On this page
  • A lorebook is a collection of facts about your story's world, each saved as its own entry with keywords that wake it.
  • The AI reads an entry only when one of its keywords comes up, so a large canon takes no room until it matters.
  • On Smut Writer AI the lorebook is the Lore and worldbuilding section of a world, beside its characters, places, items and groups.

What is a lorebook, in plain words?

  • Think of a box of index cards for your story: house rules, history, magic, politics, the things everyone in your world knows and nobody explains.
  • Each card holds one fact and a few trigger words. When a trigger word shows up in the conversation, that card is added to what the model reads before it writes.
  • Cards that never come up stay in the box and take no room in the reply.
  • You write every entry yourself, and it stays exactly as you wrote it until you change it.

Lore entry, character entry or project instructions?

Where it goes

What it holds

When the model reads it

Lore entry

One fact about the world: a rule, a custom, a piece of history

When one of its keywords comes up, or every reply if set to Always active

Character entry

One person: looks, personality and a voice prompt

While that character is selected for the story

Project instructions

Point of view, tense, tone and anything every story should follow

Every reply in the project

The story so far

What has already happened

As much as fits in the model's window

What is in a lore entry?

  • Title: a name for the entry, so you can find it in the list.
  • Text: the fact itself, written the way you want the model to read it.
  • Keywords: the words that wake the entry, separated by commas.
  • Always active: a switch for the few facts every reply needs. It needs no keywords, and the keyword field is turned off while it is ticked.

How does a lore entry get triggered?

  • Before each reply, Smut Writer AI looks through the most recent messages for any entry's keywords. How far back it looks is the world's scan depth: two, four or eight messages, set in the Worlds panel.
  • Scan depth counts your newest message, so the default of two means what you just wrote plus the message before it.
  • Matching is literal and ignores capitals, so "Veil" and "veil" both fire an entry keyed to veil, and "the barrier" does not.
  • An entry with no keywords and Always active off never fires.
  • Turn on Show sources in the gear tray beside the draft box to see which entries fired on any reply.

How much lore can a story use?

  • Lore that fires on one reply is capped at 16,000 characters across every attached world.
  • When more fires than fits, entries are let in by their stored order until the next one would not fit, so order decides what gets in when lore runs long.
  • A world holds 16,000 characters across all its entries. That limit applies when you save, and the per-reply cap only decides what is sent.
  • Always-active entries spend room on every reply: three long ones cost more over a chapter than thirty keyword entries that rarely fire.
  • A world belongs to you, so one set of lore can serve several projects, a sequel included.

How do you write lore entries that work?

  • One fact per entry. An entry holding six facts fires all six whenever any one of them comes up.
  • Specific keywords. Use names and unusual words, such as a city's name or an order's title. Common words like city or night fire on almost every reply.
  • Every form of a name. Add nicknames, surnames and titles as keywords, so the entry fires however the story refers to it.
  • Name the subject in the text. Write the name inside the entry text as well, so the fact makes sense on its own.
  • Short and plain. Three to five short lines read better than a page of description, and leave room for other entries.
  • Always active for the core only. Keep it to the few rules the whole story stands on, such as the setting and the era.

Lore entry templates

Copy a template into a new entry, fill in the brackets, and keep each line short.

A rule of your world

  • Rule: [one sentence, such as "Magic drains the caster's strength, and a large spell leaves them unable to stand."]
  • Who knows it: [everyone, a few, or almost no one]
  • Exception: [if any, such as "Knights of the order are trained to resist it."]
  • Keywords: [magic, spell, caster]

A piece of history

  • What happened: [one sentence, such as "The northern bridge fell during the harvest festival and cut the valley off for a winter."]
  • When: [twenty years before the story opens]
  • Who was there: [the names that matter]
  • What it changed: [how the world is different because of it]
  • Keywords: [northern bridge, harvest festival, the valley]

A custom or a secret

  • The custom: [one sentence, such as "Guests at the manor are given a silver ring at the door, and handing it back means they are leaving for good."]
  • Who keeps it: [the household, the town, one family]
  • What breaking it means: [the consequence everyone understands]
  • Keywords: [silver ring, manor, guest]

Why isn't my lore entry firing?

  • The word never came up. The keyword has to appear in the recent messages. Add the words the story actually uses for it.
  • The scan depth is too short. At two, a name from three messages back no longer counts. Raise it to four or eight.
  • It has no keywords. An entry with no keywords and Always active off can never fire.
  • It did not fit. When lore runs past 16,000 characters on one reply, later entries are left out. Trim the long ones.
  • It is in another world. Lore fires only from the worlds attached to the project, listed in its Worlds panel.

What do other apps call a lorebook?

App

Its name for it

What wakes an entry

Smut Writer AI

Lore entries in a world

Keywords in the last two, four or eight messages, or Always active

NovelAI

Lorebook

Activation keys found in the recent story

SillyTavern

World Info

Keywords in the recent messages

  • If you keep a lorebook in another app, the idea carries over: copy each entry's text and keywords into a new lore entry.
  • On Smut Writer AI, lore sits in the same world as your characters and places, and works on every model with nothing to install.

Frequently asked questions

What is a lorebook in AI writing?

A lorebook is a set of facts about your story's world that the AI reads only when they come up, each woken by its own keywords. On Smut Writer AI, which is completely uncensored, every world keeps its own lore entries.

What is the difference between a lorebook and the AI's memory of the story?

A lorebook is reference you write once, and it stays as written. The story so far is what the model reads back, and the oldest parts of a long story drop out of view; lore keeps the facts that must stay.

How long should a lore entry be?

Short: one fact in a few lines. Everything that fires on a reply shares a 16,000-character cap, and a long entry crowds out the others.

How many keywords should an entry have?

As many as the story uses for that thing: its name, nicknames and short forms. Leave out common words that appear in almost every message.

What does Always active do?

It sends the entry with every reply, without keywords. Keep it for the few facts the whole story needs, since those entries spend room on every reply.

Can I use the same lorebook in two stories?

Yes. A world belongs to you, so you can attach it to several projects, a sequel included, and its lore works in each.

Was this helpful?