Conversation History

Domain: LLM Concepts

🎯 Motivation

The model needs to see previous messages to maintain context. The conversation history is the list of all prior messages sent in the chat.

πŸ“‹ Concrete Example

Messages: [user: Hi, assistant: β€˜Hello!’, user: β€˜What is 2+2?’, assistant: β€˜4’, user: β€˜And 3+3?’]. The model sees all of this to understand And refers to addition.

πŸ”— Analogy

A chat log on your phone - you scroll up to see what was said before. The model does the same: it reads the full conversation history to understand context and references.