Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesAI Basics: How LLMs WorkWhat a Large Language Model Is
A language model continues the phrase “Unfortunately,” and picks the next word from three optionsA prompt made of four parts: role, task, context, formatA chat request: reply to the customer, delivery on Thursday, up to 80 words
Course

AI Basics: How LLMs Work

Module 1 · What an LLM Is
01What a Large Language Model Is02Context, Memory, and Tokens
Module 2 · Where the Model Breaks
03Model Limits and Hallucinations04Which Model to Choose for the Task
AI Basics: How LLMs Work · Lesson 1

What a Large Language Model Is

We unpack what an LLM is, how it 'thinks', and why its answers are statistics rather than knowledge.

15 min readUpdated Nov 9, 20262 questions in quizReady prompt included
What a Large Language Model Is

What an LLM is

A large language model (LLM) is a program trained to predict the next word in a piece of text. Show the model billions of pages of text, and it learns to continue any phrase statistically. ChatGPT, Claude, Gemini, and dozens of other assistants are all built on this simple mechanism.

What matters from the very start

  1. The model works from patterns of language. If the correct answer appeared often in the training data, it will probably surface. If it appeared rarely, the model will confidently invent a plausible but false answer. This is called a hallucination.
  2. Memory lives in the assistant around the model. Each request to the model is a fresh context window. Apps add memory on top: in Claude it's on by default on Free, Pro, Max and Ultra, ChatGPT has memory that can reference past chats, and Gemini can draw on your chat history through Personal Intelligence (a beta, not available in every country). For a clean start, Claude has incognito chats.
  3. The model has a "cutoff date". It was trained on data up to a certain point. Chat apps make up for this with web search: ChatGPT and Claude include it on every plan, Free included, and the assistant usually decides on its own when to search and shows links to its sources. Without search (for example, in the API with no search tool connected) the model only knows what it learned before the cutoff.

Where the "smartness" comes from

The model is strongest wherever the task reduces to the combinatorics of language: rewrite, summarize, classify, continue. The more a task is tied to stable patterns in text (writing, code, law, documentation), the better the result.

Many current models also reason in an internal draft before they reply, and Claude models decide for themselves how much to think. This helps on hard tasks; the facts still need checking.

For tasks that need precise, fresh information or independent fact verification, you need extra tooling: search, connectors to your mail and files (for example Gmail in Claude and ChatGPT), RAG, tool use, human review. Treat the raw model as a fast first draft and check its facts against the sources.

Practical exercise
What to do after this lesson

Take a task from your routine that eats 30+ minutes. Describe it in one sentence. Hand it to ChatGPT/Claude and compare the result against your own reference output.

Task grader

Take a task from your routine that eats 30+ minutes. Describe it in one sentence. Hand it to ChatGPT/Claude and compare the result against your own reference output.
Ready-to-use prompt
Template for this lesson

Copy and adapt to your context. Text in angle brackets should be replaced.

You are my assistant. I have a task I do often. Before doing it, ask me 3-5 clarifying questions so you don't invent facts. If you don't have enough information, say so explicitly.

Task:
<paste the description>

Prompt sandbox

Common mistakes
What people get wrong
  • People assume the model "knows" things — in reality it completes them statistically.
  • They don't specify audience or format — and get a generic, faceless answer.
  • They accept the first answer as final, even though the prompt could be improved.
Pro tips
What works but no one documents
  • If an answer feels uncertain, ask the model to explicitly list what it does NOT know.
  • Ask the model to ask clarifying questions first, before answering.
  • For important tasks, ask it to respond as a skeptic who hunts for holes.
When to use

Any language task: rewrite, explain, build a list, turn notes into an email, brainstorm options, answer a routine question.

When not to use

When you need verifiable real-time facts and have no search tool. When the answer drives a legal/medical decision with no human check.

Official sources
  • Anthropic — Claude developer docs
  • OpenAI — models
  • Claude — memory, chat search and incognito chats
  • ChatGPT — searching the web
  • Gemini — Personal Intelligence
  • Claude — web search

Quiz — 2 questions

1.What does a large language model actually predict?
2.What is a model hallucination?
Answered: 0 of 2

Done with this lesson? The next one opens after a free sign-up: email and password or Google, no card. Your progress is saved.

Sign up freeHave an account? Sign in
Context, Memory, and Tokens →

Discussion

Sign in to leave a comment.

No comments yet. Be the first!

In this lesson
What an LLM isWhat matters from the very startWhere the "smartness" comes fromPracticeReady promptQuiz
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
Get started free