Skip to content
Last Dictionary

MemGPT

proper nounAlso: Letta

In plain wordsA 2023 research system that gave a chatbot a computer-style memory hierarchy, letting it move information in and out of its limited working space so it could handle long documents and remember users.

  1. An agent design in which a language modellarge language model, n.: A computer program trained on enormous amounts of text to predict the words that come next. At vast scale, that simple skill lets it chat, answer questions, translate, summarize and write code. curates its own memory. Only a small working set fits in its context windowcontext window, n.: How much an AI model can read and keep in view at once: the instructions, the conversation so far and any attached documents. Text that does not fit has to be cut, summarized or left out., so the model is given functions to search, insert, edit and summarize material kept outside — a searchable log of past messages and an archival database — and decides for itself what to bring in or move out, prompted by system messages such as a warning that the window is nearly full. Its authors called the scheme virtual context management, by analogy with an operating system shuttling data between main memory and disk, and showed it working through documents too large for the window and keeping track of facts about users across many chat sessions. MemGPT was an early example of self-editing agent memoryagent memory, n.: The ways an AI assistant or agent keeps information — your preferences, past conversations, lessons from earlier tasks — and brings it back later, beyond what fits in a single conversation. and of the compactioncompaction, n.: Like replacing a stack of rough notes with a one-page digest: when an AI's conversation grows too long for its memory, the history is condensed into a summary and the work continues from there. and offloading techniques later grouped under context engineeringcontext engineering, n.: Managing an AI model's reading material: choosing, trimming and arranging the instructions, documents, tool results and memories it is given on every turn, so that it has what the task needs and little else..

    MemGPT-style agents decide for themselves when to archive a fact and when to search for it.

Origin

Introduced by Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir Patil, Ion Stoica and Joseph Gonzalez at UC Berkeley in 'MemGPT: Towards LLMs as Operating Systems' (arXiv, October 2023). In 2024 the open-source project was renamed Letta and carried on by a company of that name founded by members of the team.

Usage note

The name refers to the technique, not to a model in the GPT family; it can wrap any sufficiently capable model.

Related

See also
  • agent memoryagent memory, n.: The ways an AI assistant or agent keeps information — your preferences, past conversations, lessons from earlier tasks — and brings it back later, beyond what fits in a single conversation.
  • long-term memorylong-term memory, n.: Memory that lasts. For an AI agent, it means information saved outside the conversation — facts, past events, learned procedures — that can be looked up and used again days or months later.
  • context engineeringcontext engineering, n.: Managing an AI model's reading material: choosing, trimming and arranging the instructions, documents, tool results and memories it is given on every turn, so that it has what the task needs and little else.
  • compactioncompaction, n.: Like replacing a stack of rough notes with a one-page digest: when an AI's conversation grows too long for its memory, the history is condensed into a summary and the work continues from there.
  • context windowcontext window, n.: How much an AI model can read and keep in view at once: the instructions, the conversation so far and any attached documents. Text that does not fit has to be cut, summarized or left out.
  • tool calltool call, n.: A single request from an AI model to use one of its tools — naming the tool and filling in the details — which the surrounding software then carries out and reports back on.

Sources

  1. Packer, C., Wooders, S., Lin, K., Fang, V., Patil, S. G., Stoica, I. & Gonzalez, J. E. (2023). MemGPT: Towards LLMs as Operating Systems. arXiv:2310.08560. arxiv.org/abs/2310.08560v1

Mentioned in

agent memoryagent memory, n.: The ways an AI assistant or agent keeps information — your preferences, past conversations, lessons from earlier tasks — and brings it back later, beyond what fits in a single conversation., compactioncompaction, n.: Like replacing a stack of rough notes with a one-page digest: when an AI's conversation grows too long for its memory, the history is condensed into a summary and the work continues from there., long-term memorylong-term memory, n.: Memory that lasts. For an AI agent, it means information saved outside the conversation — facts, past events, learned procedures — that can be looked up and used again days or months later., episodic memoryepisodic memory, n.: Memory of particular past events — what happened, when and in what order. AI agents keep records of earlier conversations or attempts so they can recall them and learn from them.