How LLMs Work: Memory

@futurebird@sauropods.win

Content warning: How LLMs Work: Memory

LLMs generally add to a massive text document called the "context window" the entire window can be used to determine the next response.

Consumer LLMs will also have another file with a short profile of a user and notes about them that is invisibly injected into the context window on a regular basis. This is how an LLM can "remember" a user request such as "Call me Bob, never Kevin."

1/