Introduction
When you ask an AI to generate text, it can give answers that are very predictable or very surprising. The challenge is to control how creative or random the AI's responses should be, so they fit what you want.
Imagine you are ordering a meal at a restaurant. If you always pick the most popular dish, your meal is safe and familiar. But if you try a chef's surprise or a rare dish, your meal might be exciting or unusual. Temperature is like choosing between the safe dish or the surprise.
┌───────────────┐
│ Temperature │
│ Controls AI's │
│ creativity │
└──────┬────────┘
│
▼
┌───────────────┐ ┌───────────────┐
│ Low Temp (0) │──────▶│ Predictable │
│ │ │ and safe │
└───────────────┘ └───────────────┘
│
▼
┌───────────────┐ ┌───────────────┐
│ High Temp (1) │──────▶│ Creative and │
│ │ │ surprising │
└───────────────┘ └───────────────┘