Tokanny Faith Foundation Tokanny Faith Foundation Learning Hub
Unit 3 · Lesson 2

How a chatbot writes an answer

How large language models predict the next word, again and again, and why that means chatbots can sound right but be wrong.

1:53 videoSave video (1.9 MB) Captions are on

Key points

  • Chatbots run on large language models (LLMs), trained on huge amounts of text such as books and websites.
  • They write one word at a time, each time predicting a likely next word.
  • Likely words aren't always true, so chatbots can make up facts, names and numbers. This is often called hallucination.
  • Always check important facts from a chatbot.

Try it: Think like a language model

Pick the word you think the model would choose next. (The percentages are examples to show the idea.)

Check your understanding