What is AI Instructions?

What is AI Instructions?

All About AI Instructions

icon
AI Instructions is a new feature that gives you unprecedented control over the AI. It’s a great way to steer the AI in the direction you want it to generate responses.

AI models can accept a set of instructions that influence their behavior. Up to this point, we’ve used backend model instructions to guide the AI to respond in a text adventure format. Now, this is built into AI Dungeon Scenarios and Adventures so you can add your own custom instructions and direct AI models in even better ways.

We used special AI Instructions to create our funny test model, Mixtral Duck. Story text can be read via screenreader through the toggle below.
We used special AI Instructions to create our funny test model, Mixtral Duck. Story text can be read via screenreader through the toggle below.
Story text from Mixtral Duck instructions

How to Add AI Instructions

We’ve set up this feature to function like other Plot Components, so you can add AI Instructions from the Scenario or Adventure levels with the + Add Plot Component button.

You can add AI Instructions during Scenario creation with the
You can add AI Instructions during Scenario creation with the + Add Plot Component button under the “Plot” tab.
You can also add AI Instructions to an Adventure through the in-game settings sidebar
You can also add AI Instructions to an Adventure through the in-game settings sidebar + Add Plot Component button under the “Adventure” → “Plot” tabs.

If you don’t want to start with a blank slate, use the + Insert Default button when creating or editing a Scenario to populate the section with an example of our default instructions. From the Adventure level, use the + Insert Example button to do the same.

Use
Use + Insert Default from the Scenario settings to start with a set of example instructions.
Use
Use + Insert Example from the Adventure settings to do the same.

Like other Plot Components—such as Plot Essentials or Author’s Note—AI Instructions are not required to create a Scenario or play an Adventure, but having good instructions can help keep the AI on track, which leads to more coherent and consistent gameplay.

How to Use AI Instructions

AI Instructions are extremely powerful. You can use them to control anything from the:

  • Writing style (want an H.P. Lovecraft vibe?)
  • Conflict level
  • Events in your story
  • Character behavior
  • Point of view (first, second, third person)
  • Much more

You can also use instructions to solve common issues like:

  • Avoiding cliche phrases (if a sense of dread washes over me one more time...)
  • Avoiding repetitive phrases
  • Avoiding other common tropes

Model instructions are one of the first things sent to the AI during prompt construction. For some models, they are formatted in a unique way to ensure the AI follows the directions they contain. So, you can use the model instructions to solve some of the issues described above. For instance, you might add lines like:

  • Use unique phrasing and language. Avoid common phrases and cliche tropes.
  • Keep the story centered on topics and themes that would be appropriate for a younger audience
  • This is a historical fantasy. Only use technology, tools, settings, and locations that would have been present during the Middle Ages. Swords, knights, castles, etc.

One thing to pay attention to is that the AI doesn’t always respond well to “don’t talk about this” sorts of instructions. Think of AI language models like a probability machine. If you say “don’t think about the blue banana”, it might have a hard time forgetting about blue bananas. It’s better to instruct with what you want it to stick to, like the examples above.

Types of AI Instructions

image

Model Default

Our built-in, default model instructions can be accessed through the in-game Adventure settings when Mixtral, MythoMax, Tiefighter, or GPT-4 Turbo are selected as the Story Generator. Once you add the AI Instructions card, use the dropdown to select Model Default. Changing your AI model under the “Gameplay” tab brings up other default model instructions.

image

Editing the Model Default instructions automatically turns them into Custom instructions.

If the AI Instructions component hasn’t been added to a Scenario or Adventure, our default model instructions will always be used.

Examples of Model Default Instructions

Note: Because of model limitations, AI Instructions are not available for the deprecated Griffin or Dragon AI models. Instructions may be more beneficial to some models than others.

Mixtral
MythoMax
Tiefighter
GPT-4 Turbo

Scenario Default

When AI Instructions are added on the Scenario level, every resulting Adventure will have Scenario Default instructions available as an option through the in-game Adventure settings:

image

Editing the Scenario Default instructions automatically turns them into Custom instructions.

Custom

Whenever you add your own instructions or edit the Model and Scenario instructions, these will be labeled Custom under the in-game Adventure settings:

image

A blank custom instructions component will function differently than no instruction component (which falls back to our default model instructions), so you may end up with a pretty funky story if custom instructions are added but not filled in.

If you delete custom instructions with the trash can icon, they will be completely unrecoverable and cannot be brought back.

icon
Remember: the AI will do its best to follow whatever you add to Custom instructions. Keep this in mind if you start running into strange bugs—you may just need to adjust your custom AI Instructions.

Examples of Custom Instructions

Our Alpha testers group on Discord has been playing around with custom AI Instructions for several weeks now. We’ve included some of their examples that you can look at for tips and tricks or use for yourself. We’ve also included our Mixtral Duck instructions if you’d like to recreate that AI experience, since this model is now retired.

Open the toggles below, copy the text inside the code block, and then paste them into AI Instructions for your own Scenarios and Adventures:

Mixtral Duck
Author
Chat Bot
Human DM
Sci-Fi Slice-of-Life DM
First Person Post-Apocalyptic DM
Universal DM (very long)
icon
Remember: AI Instructions is part of the total context. Longer custom instructions will take up more tokens and should be used sparingly if you have limited context.

Default versus Custom AI Instructions

To highlight the effectiveness of custom AI Instructions, here’s a comparison of the same Quick Start prompt using the default Mixtral instructions versus custom AI Instructions:

Default Mixtral Model Instructions

The knight Quick Start prompt with default Mixtral model instructions. Story text can be read via screenreader through the toggle below.
The knight Quick Start prompt with default Mixtral model instructions. Story text can be read via screenreader through the toggle below.
Story text from default instructions

Custom AI Instructions

The knight Quick Start prompt with custom AI Instructions. Story text and custom instructions can be read via screenreader through the toggles below.
The knight Quick Start prompt with custom AI Instructions. Story text and custom instructions can be read via screenreader through the toggles below.
Story text from custom instructions
Custom instructions used in this example

You can see in these examples that custom AI Instructions produced a much different story than the default model instructions.

Author’s Note versus AI Instructions

Up to this point, you may have been using Author’s Note to accomplish what AI Instructions can now do more easily. But, both components can be used together to guide the AI into generating a coherent story.

While AI Instructions are included toward the beginning of the context, Authorʻs Note is inserted near the bottom, which means it has more of a direct influence on how the AI generates outputs. You shouldn’t add too much information here, or the AI is likely to focus on those details instead of what happened most recently in your Adventure. Our recommendation is to keep Authorʻs Note short, no more than 3 or 4 sentences, and only focus on a couple of key instructions about your story’s theme and setting that you want the AI to follow.

If AI Instructions is like talking to a customer support rep, Authorʻs Note is “Can I speak to the manager?” Try to address most issues in AI Instructions, and use Authorʻs Note when the AI Instructions isnʻt accomplishing what you need.

Comparing AI Instructions and Author’s Note

AI Instructions
Author’s Note
List of general directions the AI should follow when generating new outputs.
Short list of 3-4 key instructions the AI should follow when generating new outputs.
Could be used for story instructions, style guidance, plot outline, topics/words to avoid, or description commands.
Could be used for specific scene instructions, setting guidelines, or theme reminders.

Banned Words versus AI Instructions

The Banned Words feature has been deprecated. Many of you have noticed that the banned words system hasn’t worked well (due to issues with token conversion and logit bias not being supported on many modern models). We believe AI Instructions will be more effective at helping you guide the AI away from words and topics you wish to avoid. Read more about this change →

icon
Ultimately, there aren’t strict guidelines about what information needs to be in each Plot Component. We highly recommend playing around with AI Instructions to see what works best for you! As you find awesome instruction combinations, share them with the rest of the community on our Discord or Reddit so we can all level up our story quality.
icon
image

© Latitude 2024