Agentic AI · Module 1Lesson 2

Study explanation · Lesson 02 · 13 min

How a large language model works

It predicts the next word rather than looking anything up. That single fact explains the fluency, the confident mistakes, the stale knowledge and the limited memory.

Listen to this lesson

Hear the lesson read aloud, with each sentence highlighted as you go.

Narrated by an AI voice.

A prediction machine, not a fact database

An LLM builds a brand-new answer one word at a time. It is not consulting a store of facts and reading them back. The notes say that single fact explains both its fluency and all of its quirks, which is why this lesson comes before any advice about prompting.

Key ideaIt composes, it doesn’t retrieve. An assistant is not a search engine, even when it sounds like one quoting a source.

Picture a brilliant new intern

The notes offer an analogy that carries the whole lesson: fast, well-read, and quirky in specific ways.

  • It has read a huge amount, but reading about something isn’t the same as reliably knowing it.
  • It can be confidently wrong. This is hallucination, and it means verifying names, numbers, dates and quotes.
  • It doesn’t look things up; it composes a fresh answer rather than retrieving a stored one.
  • It is frozen at a training cutoff, so it may not know recent events.
  • It has limited memory: the context window.

The desk, and its edge

The notes picture memory as a desk. Everything you have put in front of the model sits on it, and anything pushed off the edge is ignored — not remembered dimly, simply gone from view. That image comes back in the context lesson, where the job becomes choosing what deserves desk space.

The desk, and its edge · Lecture notes pp. 1-2

On the desk

  • The brief you wrote for this task.
  • The examples and materials you pasted in.
  • What has been said so far in this conversation.

Over the edge

  • Anything pushed out of the context window.
  • It is not remembered dimly — it is simply not there.

Memory is a desk, not an archive. Choosing what earns desk space is the job of the next lesson but one.

Card 1 · How it works

The notes summarise the lesson on a card worth keeping.

  • It predicts the next word.
  • It can be confidently wrong — verify names, numbers, dates and quotes.
  • It composes, it doesn’t retrieve. It is not a search engine.
  • It is frozen at a training cutoff.
  • It has a memory limit: the context window.

Read with careThe notes deliberately avoid naming particular models, context sizes or cutoff dates, and so does this site. Those details change and would date the lesson.

Key takeaways

  • An LLM predicts text; it does not look facts up.
  • Fluency is not evidence: it can be confidently wrong.
  • Its knowledge stops at a training cutoff.
  • Its memory is the context window, and what falls off the desk is ignored.

Study explanation based on the supplied Module 1 lecture notes for Agentic AI in Practice. The notes accompany slides that were not supplied. Open the source notes above for page-level traceability.

Your study checkpoint

Ready to continue?

Mark the lesson complete once you have read it and tried its idea on something real.

Next · Lesson 3