From AI Dungeon Wiki
Revision as of 20:46, 14 September 2022 by RockstarRaccoon (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Memory function is used to give the AI context which is included before the actual story writing. It is used to tell the AI things over the long term which it would otherwise forget.

Memory can be accessed with the /remember command or the Pin button, or by simply clicking it in the sidebar.

How to Use Remember

In Scenario Creation

See also... Scenario

When creating a scenario, the creator can set the default memory block. This can be used to store some basic, general information that sets the theme, such as the situation the scenario puts your character in. Once the scenario is launched, it is treated no differently from Remember; the player may freely edit that portion of Remember in their adventure.

Tips from /Remembergumin

IconHelp.pngThe contents of this section involve questions without a single unified answer, and advice on it may be in dispute or contradictory. Feel free to research and experiment to find what works for your style.

You all know me as Erin, the Senior Helper from the AI Dungeon Discord server. I wrote these guides quite a while ago in Scenarios, which can still be found in Explore, but we've put the tips here too for easy access.

  1. Don't /remember events that don't have any significance to the plot. If the event was significant in any way, /remember only the outcomes of the event, not the event itself, unless the memory of it is of importance to the character(s).
  2. Always make your relationship to another character AS CLEAR AS POSSIBLE. If it is vague in any way, the AI almost always assumes they have the same relationship to you as the previous character you described in /remember. Aside from the relationship, you can /remember how you feel about the person so the AI considers how to word your reactions to their actions. Just make sure you add this before writing about another topic.
  3. Don't bother with physical descriptions; the AI will mess them up anyway. Just use the Alter to fix any details it gets wrong.
  4. When starting a story, ALWAYS check /remember before doing ANYTHING else. Some scenario creators do not use /remember in a way that follows these guidelines, and I highly recommend you check what they have put in there (if anything) right at the start and edit it if needed.
  5. Most importantly, PUT RELATED INFORMATION NEXT TO RELATED INFORMATION. Chronology is useless when it comes to /remember command; it only cares that it has happened, not when! For example, put ALL the information about your character into one section. This makes it more likely that it will associate that information with only your character. In other words, if you discover new information, add that information next to what you already know, instead of adding it at the end of everything.

If you are playing a Custom Prompt or a player-created adventure, the AI will not store ANY information from the initial prompt in the /remember page. This is because the AI cannot predict the significant details of a prompt it did not create. When launching such a prompt, the first thing you should do is add details from the prompt into the /remember context.

Here's an example from the presets: The Knight Character. This is a preset, so there is some information the AI will automatically add to the /remember page, but let's imagine that it doesn't for a moment. DO NOT copy and paste the entire prompt into the /remember page! Only take out significant details. For example: 'You are [Name], a knight living in the kingdom of Larion. You have a steel sword and a wooden shield. You are on a quest to defeat the evil dragon of Larion.' These are the significant details. There's just one problem with this: 'You are on a quest to defeat the evil dragon of Larion.' If this always stays in the /remember context, the AI will assume you are still on that quest! This brings me to my next point: Change current events to past events once they are completed! For example, after the dragon is slain, change 'You are on a quest to defeat the evil dragon of Larion' to 'You have succeeded in your quest to defeat the evil dragon of Larion.' You don't always have to ADD to the /remember page; sometimes it's just better to change the information! If you leave both of these pieces of information there, for instance, it leaves a contradiction that the AI will get hung up on.

It's also oftentimes much better to simply record the outcome of an event rather than the event itself, such as what your character gained from it, without even chronicling the event itself.

DO NOT DELETE YOUR PREVIOUSLY ADDED INFORMATION! Unless, of course, it is no longer relevant.

I've noticed while helping people with this on the Discord server that some people believe that every time you make an entry in /remember, it saves the whole entry each time. Well, it doesn't; it only saves what's there in a single entry. Each entry overwrites the previous one! If you delete any information in the /remember page, it's gone! If you're doing it right, your /remember page should be quite long. This is one of the reasons why you should only add significant details to it--not only does it keep it shorter, but the AI can focus on only the important pieces of information, because the more you add, the more likely it'll mix a piece of information up with other parts of the /remember context! A prominent example of this is how the AI often mistakes your relationship to another character for a different one, even if it is well established in the story already. This is why the character relationships should be defined as explicitly as possible in the /remember context, even if your character is unsure of the relationship (because YOU, as the storywriter, ARE sure of it). That way, the AI less likely to respond as though the character has a different relationship to you.

Record any important information in /remember EVEN IF YOUR CHARACTER DOES NOT KNOW ABOUT IT. If you don't, then the AI will never take that information into consideration with its responses. The AI will occasionally mess this up and respond as if your character knows about the information, so you could, perhaps, specify that your character is not aware of it.

Another thing: DO NOT RECORD INFORMATION TO SHOW THAT SOMETHING IS FALSE. For example, do not say 'Orcs do not exist.' if anything is mentioned in /remember, the AI treats at as existent, so if it doesn't exist within your story, don't mention it all! (The same thing goes for abilities; don't add 'you cannot fly'.) This is another case where Retry or Alter should be used. If you're looking for perfect coherency, I'm sorry to say that you won't be able to achieve it solely with /remember; Alter and Retry will be needed as well.

Finally, /Remember is NOT FOR WORLDBUILDING. The AI will be very confused if that's put into /remember! With the new introduction of world info in scenario creation, however, you can still provide the AI with lore context. /Remember should only be used for information about the story AS IT PROGRESSES (along with character(s) and the like). If you do want to do some worldbuilding, make your own scenario and add some World Info entries!

I'll close with this: /remember shouldn't be too much of a lore. It's more like a journal. Imagine that your character has amnesia, and they consult remember every day to remind themselves of their capabilities, relationships, and experiences.