Large Language Models (LLMs) rely on memory systems to maintain context and perform coherent reasoning. This short explains the different types of memory used in LLMs and agentic AI.
- Short-term memory: Holds the current conversation context, usually limited by the model's token window.
- Long-term memory: Stored externally (e.g., in vector databases) and retrieved when needed, enabling persistent knowledge.
- Episodic memory: Logs past interactions or experiences to inform future behavior.
- Working memory: Combines short-term and retrieved long-term data to perform tasks.
Understanding these memory types is crucial for building effective AI agents and applications using models like GPT, Claude, or Gemini.