Nearby lessons

12 of 30

Context Window

Concept in One Line

Context Window is the limited amount of recent conversation that GPT can remember while generating an answer.

Why This Concept Is Important

  • It explains why GPT remembers now and forgets later.
  • It helps students use ChatGPT correctly.
  • It is an important interview and practical usage concept.

Key Points to Remember

  • GPT has no permanent memory.
  • It remembers only the current conversation.
  • Memory is temporary.
  • Old messages are dropped when the limit is crossed.
  • New chat = fresh memory.
  • This limit is called context window.

How Context Window Works

  • You start chatting -> GPT remembers messages.
  • Chat becomes long -> memory space fills.
  • Old messages go out -> new messages come in.
  • GPT sees only recent messages.

This is short-term memory, not human memory.

Simple Daily Life Example

  • Phone call conversation.
  • During call -> everything remembered.
  • Call ends -> memory gone.

GPT works the same way.

Simple Flow

Recent Messages -> Context Window -> Answer

Interview / Exam Points

Q1: What is context window in GPT?

Context window is the limited short-term memory where GPT remembers only recent conversation messages.

Q2: Does GPT remember past chats?

No. GPT does not remember previous chats unless information is given again.

Common Confusions to Avoid

  • GPT does not remember yesterday's chat.
  • GPT does not store personal data permanently.
  • GPT remembers only the current chat.
  • Forgetting is by design, not a bug.

One Line to Remember

Context window = short-term memory of GPT

Quick Self-Check

  • GPT has permanent memory -> Yes / No?
  • GPT remembers only recent messages -> Yes / No?
  • Correct answers: No, Yes

🧠 Test Your Knowledge

3 Questions

Progress: 0 / 3
Keep Going!What Is Hallucination in AI?