# Short-Term Memory

- **Canonical URL:** https://getaimath.com/dictionary/short-term-memory/
- **Topics:** [Context, Memory & Retrieval](https://getaimath.com/dictionary/category/context-memory-and-retrieval/)
- **Last updated:** 2026-11-25

## What is Short-Term Memory?

**In one sentence:** In AI, short-term memory is the information a model can use right now, which is basically what is in its current context.

Like remembering a phone number just long enough to dial it, the model only "remembers" what is in the context window. When the chat ends or overflows, that memory is gone.

![Context Window vs. Memory: Your Desk vs. The Filing Cabinet — Simple cartoon comparing the AI Context Window (a small desk that can only fit a few pages right now) with External Memory & Search (a big filing cabinet where a librarian grabs just the 3 pages you need).](https://getaimath.com/diagrams/context-memory-and-retrieval.png)
*Napkin Diagram (Context, Memory & Retrieval): The context window is the small desk the AI can see right now; search grabs the right pages from the filing cabinet.*

## What is an example of Short-Term Memory?

A chatbot remembering your name from earlier in the same conversation uses short-term memory.

## Why does Short-Term Memory matter?

Understanding this helps you know why AI forgets between chats.

## Related Concepts

- [Long Context](https://getaimath.com/dictionary/long-context/): Long context means a model can handle very large inputs, often hundreds of thousands or millions of tokens.
- [Long-Term Memory](https://getaimath.com/dictionary/long-term-memory/): Long-term memory in AI is information saved outside the model and brought back in later conversations.
- [Context Rot](https://getaimath.com/dictionary/context-rot/): Context rot is when a model gets worse at using information as its context gets longer and more cluttered.
- [Working Memory](https://getaimath.com/dictionary/working-memory/): Working memory is the information an AI is actively using to solve the current task.
- [Context Compression](https://getaimath.com/dictionary/context-compression/): Context compression shrinks the information in a model's context so more fits or it costs less.
- [Conversation History](https://getaimath.com/dictionary/conversation-history/): Conversation history is the record of past messages in a chat, sent back to the model so it knows what was said.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/short-term-memory/)
