← Season 1: AI in Plain English

Episode 6 of 8 · 7 min

How do chatbots work?

A chatbot is an LLM plus instructions plus a short memory.

Tap first

Why does a bank's chatbot refuse to write you a poem?

  1. Step 1

    Three parts

    The LLM, the system prompt (hidden role, tone and rules) and the conversation so far.

  2. Step 2

    The context window

    It can only see a limited amount of text. In long chats the early parts fall out, so it seems to forget.

  3. Step 3

    Saved memory

    Saved memory is a separate notebook the app keeps, not the model learning.

  4. Step 4

    Answering from documents

    Companies attach documents so it answers from them (RAG — Season 5).

Check yourself

Your chatbot forgot your name after a long conversation. Why?

Takeaway

Change the instructions or the context, and you change the chatbot.

Watch the explainer

Words in this episode