Skip to content

What is a language model?

A machine that guesses what comes next, very well.

A large language model (LLM), like Gemini, Claude or GPT, learns from huge amounts of text to do one thing: predict what comes next. Guess first, then reveal what a real one wrote.

  • The capital of India is
  • for i in range(
  • Mera naam Rahul hai aur main
  • The time complexity of binary search is O(
  • Dear Sir, I am writing to

Real continuations from gemini-3.5-flash-lite, 2026-10-21

Answering questions, writing code, even deciding to use a tool: it's all the same skill, continuing text one piece at a time. Act 1 looks at those pieces up close.

When a model writes code, what is it actually doing?