Context Window Simulator

This simulates how ChatGPT, Claude, and Gemini use short-term memory called the Context Window. Every message consumes tokens and eventually older messages get forgotten.

Conversation

AI Brain

Context Window Size: 120 tokens

Total Tokens: 0

Still Remembered

Forgotten

Short-Term vs Long-Term Memory

AI systems use different memory mechanisms.

⚡

Short-Term Memory


• Current conversation

• Limited context window

• Gets forgotten when full

• Fast temporary memory

🧠

Long-Term Memory


• Stored preferences

• External memory systems

• Can persist across chats

• Retrieved later

⚡ Short-Term Memory Demo

Add information here. Then overflow the context window.

Current Memory:

🧠 Long-Term Memory Demo

Long-term memory persists even after overflow.

Persisted Memory:

Hallucination Playground

Hallucinations often happen when important context is forgotten or unavailable.

Conversation Simulator

AI Response

Context Status

No important fact saved yet.
Ask AI:

“What was my favorite city?”

AI has no answer yet.

Temperature Control

Temperature controls randomness and creativity.

0.7

Low Temperature

• More factual

• More deterministic

• Better for coding/math

• Less creative

High Temperature

• More random

• More creative

• More diverse outputs

• Higher hallucination risk

Live Interpretation

Balanced creativity and accuracy.