Skip to main content

Long-Term Memory

A character's Long-Term Memory allows them to establish a collection of notable information over time, accumulated across interactions with a player throughout multiple sessions.

After these memories are collected and synthesized, the character can choose to mention a relevant memory if a conversation naturally touches upon the topic.

Long-Term Memory

Components of Long-Term Memory

The Long-Term Memory system consists of two primary components: Flash Memory and Long-Term Memory.

Flash Memory

Flash Memory refers to immediate, fact-based information derived from conversational exchanges, such as:

  • "Adam goes to eat at pasta and pizza every week."
  • "Adam likes to eat sushi."

Long-Term Memory

Long-Term Memory refers to topic-based summaries that are synthesized from Flash Memories. The system compiles and summarizes information over time, leading to conclusions from Flash Memories such as:

  • "Adam likes Italian and Japanese food."
  • "Adam is especially fond of the restaurant pasta and pizza."

Example of Memory Use

For example, if during a conversation Adam mentions several times that he enjoys sushi and eats at pasta and pizza every week, the Flash Memory would record each of these specific instances.

Over time, these individual records contribute to the Long-term Memory, which synthesizes this information into summaries such as "Adam likes Italian and Japanese food."

This synthesized memory allows the character to recall and reference pertinent information whenever a relevant topical discussion occurs during conversation, in this case, anything related to the topic of Italian or Japanese food.

Enabling Long-Term Memory

To enable Long-Term Memory for a character, go to their Advanced options tab and flip the Enable Long-Term Memory toggle.

Toggle

Long-Term Memory in Chat

When interacting with a character using Chat in Inworld Studio, memory retention persists as long as the Restart Conversation button is not activated.

This means that you can close and re-open the chat without compromising the character's memory persistence.

Refresh

Pressing the Restart Conversation button results in a flush of the character's Long-Term Memory, causing them to forget everything they have learned so far and re-setting them to a blank state.

Platform Integration

When integrated into Unreal, Unity, Web, or Node.js, ensure State Save and Load are implemented in order for memory to be persistent across multiple sessions.

For additional information, see the relevant section for your platform: