Nishaglobal Education logo

How Large Language Models Work: Tokens, Prompts & Context Windows Explained

Video 3 of 50 · Chapter 1, Episode 2 · 7:00 · Free

How does ChatGPT actually work? In this beginner-friendly lesson you'll learn next-token prediction, what tokens are, how system prompts work, what a context window is, and what temperature really does — all with clear visuals.

What you will learn

  • What a large language model (LLM) actually is
  • Next-token prediction, step by step
  • What tokens are and the rules of thumb for counting them
  • System prompts vs user prompts
  • Context windows and why they matter for AI agents
  • Temperature: predictable vs creative output