Kito

How do AI chatbots like ChatGPT work? (Simple explanation)

How large language models like ChatGPT work, explained simply: training, tokens, predicting the next word, why they make mistakes and how to get better answers.

By the Kito team · · 3 min read

AI chatbots like ChatGPT, Gemini, Claude and Kito are powered by large language models (LLMs). Here's how they work, without the maths.

1. Training on lots of text

An LLM is trained on a huge amount of text: books, articles, websites, code. During training it plays one game billions of times: guess the next word. Each time it guesses wrong, it adjusts slightly. Over time it learns grammar, facts, styles and reasoning patterns.

2. Tokens, not words

Models read text as tokens, small chunks of words. "Unbelievable" might be split into "un", "believ", "able". Limits like "context length" are counted in tokens.

3. Predicting one token at a time

When you ask a question, the model predicts the most suitable next token, adds it, then predicts the next, and so on. That's why answers appear word by word.

4. Learning to be helpful

After the first training, models are refined with human feedback so they follow instructions, stay polite and refuse harmful requests.

Why chatbots make mistakes

  • They predict likely text, so they can produce confident but wrong answers, sometimes called "hallucinations".
  • Their knowledge stops at a training date unless they can search the web.
  • Vague questions get vague answers.

How to get better answers

  • Give context: who it's for, the goal, the format.
  • Ask for steps or a table.
  • Check facts that matter.

Learn more in how to write better AI prompts, or try it now in Kito chat.

Try it with Kito, free

“Explain how a large language model predicts the next word, using a simple everyday analogy”

Ask Kito this

Frequently asked questions

Does ChatGPT understand what it says?

It recognises patterns in language very well, but it doesn't understand the world the way people do, which is why it can be wrong.

What is a large language model?

An AI model trained on large amounts of text to predict and generate language.

Keep reading