Exova Academy

Module 1 — Understanding AI Assistants · 30 min

How Claude and ChatGPT Really Work

Nadia is the marketing manager at Atelier Mareva, a 35-person company in Lyon, France, that makes eco-designed office furniture. She has already "tried ChatGPT": she got a bland social post, then a made-up answer about an environmental standard. Her verdict: "handy, but not reliable." The problem isn't the tool. She's using it like a search engine, or like a colleague who knows everything about the company, and it works like neither.

This lesson gives you the mental model most users are missing.

A language model predicts what comes next in a text

Claude (built by Anthropic) and ChatGPT (built by OpenAI) are powered by large language models. The core idea is simple to state: given a piece of text, they calculate the most likely continuation, one chunk at a time. Those chunks are called tokens: a short word, part of a longer word, a punctuation mark. In English, a rough rule of thumb is 1 token for every 4 characters, or about three quarters of a word.

The model learned these probabilities from an enormous amount of text, then was fine-tuned to follow instructions. So when you type "Write a polite follow-up email," it doesn't "look up" an email in a database. It generates brand-new text, token by token, drawing on everything it has learned about how people write polite follow-up emails.

%% titre: How an answer is born, token by token
%% narration: This diagram shows that your message and the conversation history are split into tokens, then the model predicts the next token, appends it to the text, and starts again until the answer is complete.
flowchart LR
  A["Your message"] --> B["Split into tokens"]
  H["Conversation history"] --> B
  B --> C["Language model"]
  C --> D["Most likely token"]
  D --> E{"Answer finished?"}
  E -- "no" --> C
  E -- "yes" --> F["Answer displayed"]
How an answer is born, token by token

Three practical consequences follow directly from how this works:

  1. The model always produces something plausible, even when it doesn't know. Plausible doesn't mean true. This is where the "hallucinations" we'll cover in lesson 4 come from.
  2. The quality of the output depends on the quality of the input. A vague prompt triggers "average" answers. A precise prompt steers the prediction toward what you actually want.
  3. The same prompt run twice gives two different answers. Token selection includes a controlled dose of randomness, which is handy when you want variations.

The context window: the model's only working memory

The model doesn't "remember" you the way a person does. Every time you send a message, the app sends it the entire current conversation: your messages, its replies, attached files, any instructions. That bundle is called the context, and its maximum size is the context window. It's large (several hundred pages of text for current models), but not infinite.

What the model can see in a conversation:

Item Visible to the model?
Your messages in the current conversation Yes
Files you attached in this conversation Yes
Your custom instructions (if you set any) Yes
Memory items enabled in your settings Yes, if enabled
A different conversation you had yesterday No, unless memory or a project is used
Your company's website No, unless web search is on or you paste it in
What you "mean" but didn't write No, never

The last row is the most important. Nadia used to type "Write a post about our new sit-stand desk." The model has no idea who Atelier Mareva is, what the price is, who the product is for, or what tone the brand uses. So it fills the gaps with generic filler. It can't read minds: anything that isn't in the context doesn't exist for it.

%% titre: What goes into the context window
%% narration: This diagram shows that the model sees only one thing, the context window, which is fed by your messages, your files, your instructions and possibly memory. Everything else is invisible to it.
flowchart TD
  M["Conversation messages"] --> W["Context window"]
  F["Attached files"] --> W
  I["Custom instructions"] --> W
  Mem["Memory, if enabled"] --> W
  W --> R["Model's answer"]
  X["Your unwritten intent"] -. "invisible" .-> R
What goes into the context window

Tip: in a very long conversation, information from the beginning may get less attention, and the model can blend contradictory instructions. When you switch topics, start a new conversation.

Knowledge has an expiration date, tools push it back

The model's knowledge stops at a training cutoff date: anything that happened afterward wasn't part of its training. To make up for this, Claude and ChatGPT now come with tools the app can turn on:

  • Web search: the model writes queries, reads pages and cites its sources.
  • File reading: PDFs, Word documents, spreadsheets, images.
  • Data analysis / code execution: the model writes and runs code to calculate, build charts or transform a file.
  • Creation workspaces (Artifacts in Claude, Canvas in ChatGPT): a document or mini-tool displayed next to the conversation that you edit together.

A crucial distinction: without web search, an answer about current events, a price or a recent regulation comes from the model's statistical memory, so it may be outdated or wrong. With web search, you get sources you can check. Available features vary by plan and change often, so check what yours includes.

What this changes about how you write a prompt

Compare two of Nadia's requests.

Before:

Write a LinkedIn post about our sit-stand desk.

After:

You are a copywriter for Atelier Mareva, a small company in Lyon, France, that makes eco-designed office furniture (certified French wood, made in Lyon).

Write a LinkedIn post announcing our new "Lune" sit-stand desk.
- Audience: HR managers and office managers at companies with 20 to 200 employees.
- Key points: quiet electric height adjustment, French oak desktop, 10-year warranty, delivered fully assembled in the Lyon area.
- Tone: warm, concrete, no empty superlatives.
- Length: 120 to 160 words, 2 or 3 emojis max, and a closing question to spark comments.

The second prompt contains no "magic formula." It simply gives the model the context it couldn't have guessed. That's the central idea of this entire course: you don't get better answers by finding the right keyword, but by providing the right information.

Hands-on practice

Goal: see for yourself the effect of context and variability. Time: 20 minutes.

  1. Open Claude or ChatGPT (the free version is fine) and pick a real task from your work: a message to send, a short introduction text, a reply to a customer.
  2. First, write a one-line prompt, the way you naturally would. Copy the answer into a document.
  3. Open a new conversation and send exactly the same prompt. Note the differences between the two answers.
  4. Open a third conversation and rewrite your prompt, adding: who you are, the recipient, the goal, the tone, the length.
  5. Compare the three answers.

Deliverable: a three-row table (short prompt #1, short prompt #2, enriched prompt), with a 1-to-5 usability score for each and one sentence explaining what's missing.

Show solution

Here's the table Nadia came up with for the task "introduce our old-furniture take-back service."

Prompt Score What's missing
Short #1: "Write a text about our furniture take-back service" 2/5 Generic text; it invents a 48-hour turnaround and a "20% discount" that don't exist
Short #2: same prompt, new conversation 2/5 Different structure, different invented numbers: proof that the model fills gaps at random
Enriched (context, audience, real terms, tone, 100 words) 4/5 Usable after a quick tweak to match in-house vocabulary

Nadia's enriched prompt:

I'm the marketing manager at Atelier Mareva (eco-designed office furniture, Lyon, France).
Write a 100-word text for our website introducing our take-back service:
- we pick up our customers' old desks and chairs free of charge when we deliver an order over €3,000 (excluding VAT);
- the furniture is refurbished or recycled by a local partner;
- audience: office managers.
Plain, concrete tone. Do not invent any numbers or timelines: if a piece of information is missing, flag it in square brackets.

Key lessons from the exercise:

  • Invented numbers show up exactly where context was missing.
  • The instruction "flag in square brackets anything you're missing" is a simple trick to reduce fabrication: it gives the model an approved way out when it doesn't know.

Key takeaways

  • Claude and ChatGPT generate plausible text token by token: plausible doesn't mean true.
  • The model only sees the conversation's context: what you don't write doesn't exist for it.
  • The same prompt gives varying answers; start a new conversation for each new topic.
  • Web search, files and data analysis extend what the model can do; their availability depends on your plan.
  • A better prompt is first and foremost more useful context and an explicit format, not a magic formula.

Enjoyed this lesson?

Unlock all 40 lessons, the quizzes and the certificate.

Buy — $97