AI for product managers The foundation

Lesson 1 of 9

How an AI product works.

What a language model actually does, why it sometimes makes things up, and the parts your team builds around it.

By Nagesh Koritala, product manager October 2026

  • About 14 minutes
  • 7 parts
  • 6 quick questions
  • A worksheet
The model in the middle, supplied by a provider. Around it, the parts a product team builds and owns: instructions, your data, the loop, tools, subagents, evals, guardrails, observability, and cost and speed. Instructions Your data The loop Tools Subagents Evals Guardrails Observability Cost and speed The modelfrom a provider your team owns everything around it

Before you start

A shopper opens a furniture store’s chat assistant and types: “Will the Harbor sofa fit through a 30-inch door?” Two seconds later, a confident answer appears. Before you read on: where do you think that answer came from? Write it in one sentence.

It stays on this device only. You’ll see it again at the end.

In this lesson, you’ll learn to

  • Explain in plain words what a large language model does, and what it doesn’t do
  • Describe tokens and the context window, and why they shape cost, speed, and quality
  • Explain why the same question can get different answers, and why models sometimes make things up
  • Ground a model in your own data, so answers come from facts you control
  • Name the parts of an AI product around the model, and which ones your team owns
  • Ask the questions a product manager should ask before an AI feature ships

Key terms

Large language model (LLM)
A model trained on very large amounts of text that generates text: it answers questions, summarizes, drafts, and follows instructions.
Token
The unit a model reads and writes: a word, part of a word, or a character. Usage, limits, and pricing are counted in tokens.
Context window
Everything the model can see while it writes one answer, including the answer itself. Its working memory, separate from what it learned in training.
System prompt
Instructions your team writes that the model sees before every conversation: its job, its tone, and its rules.
Hallucination
A plausible-sounding answer that is wrong or made up.
Grounding (RAG)
Looking up relevant facts at the moment of the question and putting them in the context window, so the model answers from them. RAG stands for retrieval-augmented generation.
Temperature
A setting that controls how much randomness goes into the model’s word choices.

The idea

Most people meet AI as a chat box. You type, it answers, and it sounds sure of itself. So it’s easy to picture a very smart database somewhere, looking up the right answer. That picture is wrong, and it leads product teams into real trouble.

This lesson replaces it with a better one. You’ll see what the model actually does, why it can be confidently wrong, and what your team builds around it to make it useful. The rest of this course takes those parts one at a time. One made-up example runs through every lesson: an online furniture store adding an AI shopping assistant.

The lesson, in seven parts

  1. What a large language model actually does.

    Start with how a model is made. First comes pretraining: the model reads a huge amount of text and learns to predict the next word, given the words before it. That’s Anthropic’s own description of how its models start out. A model at this stage isn’t good at answering questions or following instructions yet.

    So it’s trained further. Fine-tuning teaches it from more examples. Reinforcement learning from human feedback (RLHF) has people rank example answers, and the model learns to prefer answers like the higher-ranked ones. That’s what turns a next-word predictor into an assistant that follows instructions.

    Here’s the part that matters for you. When the model answers, it isn’t looking anything up. It writes a likely next piece of text, then the next, then the next. Often that text is right, because it learned a lot. But “likely” and “true” aren’t the same thing.

    A sentence so far: The Harbor sofa is. The model weighs likely next pieces, shown with made-up bars: 34 inches is most likely, then available, then blue. It picks one, adds it, and does it again. The Harbor sofa is ? Likely next pieces 34 inchesavailableblue picks one,adds it,and again bars are made up, for illustration
    A model writes one piece at a time, choosing from likely next pieces. The likelihoods shown are made up, for illustration.

    Two more things follow from how it’s made. A model learns from text up to a date, its training data cutoff, and model providers publish that date for each model. It knows nothing after it unless you tell it. And it has never seen your store’s product catalog, your return policy, or today’s stock. Unless you give it those facts, it can only guess.

  2. Tokens: the unit everything is counted in.

    Models don’t read words the way you do. They read tokens: words, parts of words, or single characters. How many characters fit in a token depends on the model and the language. Anthropic says a token was about 3.5 English characters on its earlier Claude models, and that its newer models split the same text into about 30 percent more tokens (as of October 2026). Other model makers split text their own way, so the same sentence can be a different number of tokens on a different model.

    Why should a product manager care? Because tokens are how the work is measured:

    What tokens affectWhat it means for your product
    CostModel providers usually charge per token, for what goes in and what comes out. A longer prompt or a wordier answer costs more, on every single question.
    SpeedThe model writes one token after another. Longer answers take longer to finish, and shoppers feel that wait.
    LimitsThe context window holds a fixed number of tokens. Instructions, documents, the conversation, and the answer all have to fit.

    Prices and limits change often and differ by model. Check your provider’s current pricing and model pages, never a number you remember.

    You’ll come back to this in lesson 8, on cost, speed, and quality. For now, remember the shape of it: every word you put in front of the model, and every word it writes, has a price and a wait attached.

  3. The context window: what the model can see right now.

    Anthropic defines the context window as all the text a language model can reference when generating a response, including the response itself. It calls it the model’s “working memory”, and it’s separate from everything the model learned in training.

    Picture the furniture store’s assistant answering that doorway question. In its context window, there might be:

    • The system prompt: “You’re the store’s shopping assistant. Answer only about our products…”
    • The conversation so far: the shopper’s question, and anything said before it.
    • Facts your team added for this question: the Harbor sofa’s product page, with its measurements.
    • Results from tools it used, like a delivery date check.
    • The answer it’s writing, as it writes it.
    A large sheet labeled context window, what the model sees right now, holding five strips: the system prompt, the conversation, facts you added, tool results, and the answer as it is written. An arrow goes to the model. Separately, a block labeled training, learned earlier up to a cutoff date, connects to the model with a dashed line. Context windowwhat it sees right now System promptThe conversationFacts you addedTool resultsThe answer, as it’s written The model Traininglearned earlier,up to a cutoff
    The context window holds everything the model sees for one answer. Training is separate, and older.
    • If a fact isn’t in the window, and the model didn’t learn it in training, the model doesn’t have it.
    • Bigger isn’t automatically better. Anthropic notes that as the token count grows, accuracy and recall degrade, and it calls this “context rot”. Choosing what goes into the window matters as much as how big it is.
    • Most models don’t remember last week’s conversation on their own. If your product “remembers” a shopper, your team built that, and decided what to put back in the window.
  4. Why answers vary, and why models make things up.

    Ask the same question twice and you may get two different answers. That’s partly by design. Temperature is a setting that controls how much randomness goes into the model’s word choices: higher for more varied answers, lower for more predictable ones. Anthropic notes that even at a temperature of 0, results aren’t fully deterministic, and the same input can produce different outputs.

    So you can’t test an AI feature the way you test a button. You test it many times, on many questions, and judge the pattern. That’s what evals are for, and they get their own lesson (lesson 5).

    The bigger risk is the hallucination: an answer that sounds right and isn’t. In a 2025 paper, researchers at OpenAI and Georgia Tech (Kalai, Nachum, Vempala, and Zhang) argue that models guess when they’re uncertain because training and evaluation reward guessing over admitting uncertainty. Like a student on a multiple-choice test, a guess can score points, and under right-or-wrong scoring, “I don’t know” never does.

    Here’s how that plays out at the made-up furniture store:

    What the assistant hadWhat it said
    Only its training“Yes, most sofas fit through a standard door.” Confident, general, and possibly wrong for this sofa.
    The Harbor sofa’s product page, with its measurements“The Harbor’s diagonal depth, the measurement that has to clear the doorway when movers tilt it through, is 34 inches. That’s more than a 30-inch door, so it won’t fit. The two-piece Harbor Modular will.” Specific, and based on facts you can check.

    Made-up example. The sofa, its measurements, and both answers are invented for this lesson.

    Anthropic’s guide to reducing hallucinations suggests a few practical steps. Give the model explicit permission to say “I don’t know”. Ground its answers in documents you provide. For long documents, have it pull out direct quotes first. And ask it to cite the source behind each claim, so you can check it.

  5. Grounding: give the model the facts.

    If the model doesn’t know your catalog, give it the right piece of the catalog at the moment of the question. That’s grounding. The best-known way to do it is retrieval-augmented generation (RAG). The name comes from a 2020 paper by Patrick Lewis and colleagues at Facebook AI Research, University College London, and New York University. Today it usually means what this part describes: look up the right text, and put it in the context window.

    In plain steps, for the doorway question:

    • The shopper asks: “Will the Harbor sofa fit through a 30-inch door?”
    • Your system looks up what’s relevant: the Harbor’s product page and its measurements.
    • Those facts go into the context window, next to the question.
    • The model answers from those facts, and can point to where each one came from.
    Grounding in four steps: a shopper’s question, will it fit a 30-inch door; look up the Harbor sofa’s product page; add those facts to the context window next to the question; the model answers from the facts and names the source. A note: wrong data in, a confident wrong answer out. 1QuestionWill it fit a30-inch door?2Look upthe Harbor’sproduct page3Add factsto the context,by the question4Answerfrom the facts,with the source wrong data in, a confident wrong answer out so the data is part of the product
    Grounding: look up the facts first, then let the model answer from them.

    Here’s the part product managers often miss. Anthropic’s glossary puts it plainly: how well this works depends on the quality and relevance of the knowledge base, and of what gets retrieved. If the Harbor’s product page lists the wrong depth, the assistant will repeat the wrong depth, confidently. In AI products, your data is part of the product. Fixing a product page can matter more than changing the model.

  6. The parts around the model, and who owns them.

    In a December 2024 guide, Anthropic engineers Erik Schluntz and Barry Zhang call the basic building block of agentic systems “the augmented LLM”: a model enhanced with retrieval, tools, and memory. The model is one part. The rest is built by a team, and a product manager shapes every one of those decisions.

    Here are the parts, what each one does, and where this course covers it:

    PartWhat it doesAt the made-up furniture storeLesson
    The modelReads the context window and writes the answerA model from an outside providerThis one
    InstructionsSet the job, the tone, and the rules“Answer only about our products. Never promise a delivery date you haven’t checked.”This one
    Your dataSupplies the facts, at the moment of the questionProduct pages, measurements, care guides, return policyThis one
    The loopLets the model plan, act, check, and try againFind sofas, check sizes, compare, answer2
    ToolsLet the model look things up and do thingsStock check, delivery date check, room planner3
    SubagentsSplit a big job across helper agents, each with its own focusA sofa finder, a fit checker, and a delivery planner4
    EvalsDecide whether answers are good enough to shipA set of real shopper questions with known-good answers5
    GuardrailsStop what must never happenNo made-up measurements, no private data in answers6
    ObservabilityShow what happened, so you can fix itEvery question, answer, and tool call, recorded and reviewable7
    Cost and speedKeep each answer affordable and fast enoughChoosing a model, keeping prompts lean8

    The furniture store and its assistant are made up. Lesson 9 puts all the parts together.

    Notice how much of that table isn’t the model. When an AI feature disappoints, the fix is often in the data, the instructions, or the tests, not in switching to a newer model.

  7. Questions to ask before an AI feature ships.

    You don’t need to train models to do this job well. You need to ask good questions early, and keep asking them after launch. Here’s a starting set:

    Ask

    • What job does it do for the customer, and what must it never do?
    • Where do its facts come from, and who keeps that data right?
    • What should it say when it doesn’t know?
    • How will we know an answer is good, before launch and after?
    • What does one answer cost, and how long will a customer wait for it?
    • When it’s wrong, how will we find out, and how fast can we fix it?

    Avoid

    • “Can we add AI to this?” (Start with the customer’s problem, not the technology.)
    • “Which model is the smartest?” (The best model for your job is the one that passes your tests at a cost you can afford.)
    • “The demo looked great.” (A demo shows a few answers. Customers will ask thousands of questions.)
    • “It sounds confident, so it’s probably right.” (Confidence isn’t evidence.)

    Each of these questions has a lesson coming. By the end of the course, you’ll be able to answer them for your own product, not just ask them.

With AI: AI is the subject here, so use it as a study partner. Ask an assistant to explain a term from this lesson with a new example, then check its answer against the sources below. That habit, using AI and verifying it, is the habit this whole course builds.

Check your understanding

Answer each one in your head or on paper first. Then open the answer to check.

1When a model answers a question, is it looking the answer up?

No. It writes a likely next piece of text, again and again, based on what it learned in training and what’s in its context window. It only “looks things up” if your team gives it a way to, like grounding or a tool.

2What’s the difference between what a model learned in training and what’s in its context window?

Training is what it learned from large amounts of text, up to its training data cutoff. The context window is what it can see for this one answer: instructions, the conversation, facts you added, tool results, and the answer itself.

3Why might the same question get two different answers?

Models add some randomness to word choices (set by temperature), and even at a temperature of 0 results aren’t fully deterministic. So you judge an AI feature on many questions, not one.

4According to Kalai and colleagues (2025), why do models make things up?

Because training and evaluation reward guessing over admitting uncertainty. A guess can score points; “I don’t know” doesn’t.

5The store’s assistant gives a wrong sofa depth. The product page lists the same wrong depth. What’s the fix?

Fix the product data. With grounding, answers are only as good as the facts retrieved. A newer model would repeat the same wrong number.

6Name three parts of an AI product, besides the model, that your team owns.

Any three of: the instructions, your data (grounding), the loop, the tools, the evals, the guardrails, observability, and the trade-off between cost and speed.

Practice: write a one-page AI feature brief

The made-up furniture store wants its assistant to answer delivery questions: “Will this sofa fit?”, “When can it arrive?”, “Can you carry it upstairs?” Using the worksheet below, write a short brief that covers:

  1. The job: what the assistant does for the shopper, in one sentence.
  2. The facts it needs, and where each one comes from.
  3. Three things it must never do.
  4. What it says when it doesn’t know.
  5. How you’ll judge whether its answers are good enough to launch.
Show a model answer

Job: help shoppers find out, before they buy, whether a piece will reach their room and when. Facts: measurements from the product pages (owned by the catalog team); delivery dates from the delivery date check (a tool, never a guess); stair and carry-up rules from the delivery policy page. Never: make up a measurement; promise a date the tool didn’t return; share another customer’s order details. When unsure: “I don’t have that measurement. Here’s how to reach someone who can check.” Good enough to launch: on a set of real shopper questions with known-good answers, every measurement and date is correct and sourced, and it says “I don’t know” instead of guessing. We’ll keep checking after launch, using real questions. (Made-up example.)

Back to where you started

The short answer

An AI product is a model plus everything your team builds around it. The model is a large language model: it writes a likely next piece of text, based on what it learned in training and what it can see right now. Your team decides what it sees and what it’s allowed to do: the instructions, your data, the tools, the guardrails, and the tests that decide whether its answers are good enough to ship.

Go back to your sentence. If you wrote that the answer came from the model “knowing” the sofa, you’re in good company: that’s the picture most people start with. Now you know the better one. The model writes a likely answer from what it learned and what it can see. Whether that answer is right depends mostly on what your team put in front of it.

Common mistakes

New product managers on AI features often:

  • Treat the model like a database that looks facts up.
  • Blame the model for wrong answers that came from wrong data.
  • Ship after a good demo, without testing many real questions.
  • Stuff everything into the context window, hoping more is better.
  • Forget that every answer has a cost and a wait.

Try this today

Open any AI assistant you already use and run three small experiments:

  1. Ask the same question three times, in fresh chats. Compare the answers.
  2. Ask about something that happened last week. See whether it says it doesn’t know, or guesses.
  3. Paste in a short document, like a product page, and ask a question about it. Then ask it to quote the line its answer came from.

Worksheet: AI feature brief

AI FEATURE BRIEF

The customer's problem (in their words):

The job (one sentence: what it does for them):

Facts it needs, and where each comes from:
  - Fact:            Source:            Owner:
  - Fact:            Source:            Owner:

Tools it can use (look up or do things):

It must never:
  1.
  2.
  3.

When it doesn't know, it says:

How we'll know an answer is good (before launch):

How we'll know it's working (after launch):

Cost and wait we can accept per answer:

Open questions:

Questions people ask

How does an AI chat assistant come up with its answers?

It’s built on a large language model, which writes a likely next piece of text, one piece at a time, based on what it learned in training and what’s in its context window. It doesn’t look answers up unless the product gives it a way to, such as grounding in documents or a search tool.

What is a token in AI?

A token is the unit a model reads and writes: a word, part of a word, or a character. How much text fits in a token depends on the model and the language, so the same sentence can count differently on different models. Usage, limits, and pricing are counted in tokens.

What is a context window?

It’s all the text a model can reference while generating a response, including the response itself: instructions, the conversation, added documents, and tool results. It works like short-term memory and is separate from what the model learned in training.

Why does AI make things up?

A 2025 paper by Kalai, Nachum, Vempala, and Zhang argues that training and evaluation reward guessing over admitting uncertainty, so models guess when unsure. Grounding answers in real documents, allowing “I don’t know”, and asking for citations all help reduce it.

What is RAG?

Retrieval-augmented generation: looking up relevant information when a question comes in and putting it in the model’s context window, so the answer is based on those facts. The name comes from a 2020 paper by Patrick Lewis and colleagues. Its quality depends on the quality of the information retrieved.

Do product managers need to code to work on AI products?

Not usually. You need to understand how the parts work well enough to ask good questions: where the facts come from, what it must never do, how answers are tested, and what each answer costs. It helps to try the tools yourself.

Sources and further reading

All lessons

Keep going

Up next:
agentic loops.

You’ve seen the model and the parts around it. Next, watch them work together: plan, act, check the result, and try again, until the job is done.

Got a question this lesson didn’t answer? Email me. I read every note.

The agent loop. Four steps in a circle around the goal, a sofa that fits and arrives in time: plan the next step, act by using a tool, observe the real result, and check whether it is on track or done. Then round again. From the check, two ways out: done, so it answers the shopper; or stopped, because it hit a step limit or budget, or needs a person. Planpick the next stepActuse a toolObserveread the real resultCheckon track? done? The goala sofa that fitsand arrives in time round again Doneanswer the shopper Stoppedstep limit, budget, or ask a person