Prod Squad

How LLMs work, explained for PMs

The mental model of LLMs a PM actually needs, covering tokens, training, context windows and why models behave the way they do.

7 min readAI PM#llm#large language models#tokens#context window
Ask about this lesson
On this page

You don't need to train models to be a great AI PM, but you need an accurate mental model of how large language models (LLMs) work. It explains why they're brilliant at some things, unreliable at others, and what levers you have to shape their behaviour.

Why interviewers ask this

AI PM interviews often start with "Explain how an LLM works to a non-technical stakeholder" or probe your understanding through product questions ("Why might the model give different answers to the same question?"). Interviewers check that you understand capabilities and limits well enough to make good product decisions, and that you can explain them clearly.

The framework

1. Next-token prediction

An LLM is trained to predict the next token (a word or piece of a word) given the text so far. Generating a response is repeated prediction: predict a token, add it, predict the next. Everything an LLM does, from answering to coding to summarising, emerges from this simple objective trained at enormous scale.

2. Training in stages

  • Pre-training: the model learns patterns of language and knowledge from huge amounts of text. It learns facts, styles and reasoning patterns, but also errors and biases in the data.
  • Post-training (fine-tuning and RLHF): the model is trained to follow instructions, be helpful, and avoid harmful outputs, using example conversations and human (or AI) feedback on which responses are better.

3. Key concepts PMs use daily

  • Tokens: pricing and limits are measured in tokens. Roughly, 1,000 tokens ≈ 750 English words.
  • Context window: how much text (prompt + conversation + documents + output) the model can consider at once. Anything outside it is invisible to the model.
  • Knowledge cutoff: the model doesn't know about events after its training data, unless you provide that information in the context (e.g. through retrieval).
  • Temperature and sampling: responses are sampled from probabilities; higher randomness gives more varied outputs. That's why the same prompt can produce different answers.
  • System prompts: instructions from the product (not the user) that set behaviour, tone and rules.
  • Tool use: models can call functions (search, databases, calculators) to act or fetch information, the basis of agents.

4. Why models behave as they do

  • Hallucinations: the model generates plausible text, not verified truth. Without grounding, it can confidently invent facts.
  • Sensitivity to wording: small prompt changes can change outputs.
  • Strong at: language tasks, summarising, drafting, classification, extraction, translation, coding, pattern-based reasoning.
  • Weaker at: precise arithmetic without tools, facts not in training or context, guaranteeing consistency, knowing what it doesn't know.

5. Product implications

Ground the model with relevant data, design for variability and errors, measure quality with evals, and manage cost and latency, which scale with tokens.

Worked example

Question: "Explain how an LLM works to our head of sales, and what that means for the AI feature we're launching."

Sample answer:

"I'd say: 'Think of an LLM as an extremely well-read autocomplete. It's read a huge portion of the internet and books, and it's learned to predict what text should come next. When you ask it a question, it writes the most likely helpful answer, word by word.

That gives it two important traits. First, it's remarkably good at language: summarising a call, drafting an email, answering questions in natural language. Second, it doesn't look things up by default. It predicts what sounds right, so if it doesn't have the facts, it can confidently make something up. We call that a hallucination.

For our feature, which drafts follow-up emails after sales calls, here's what that means:

  • We give the model the actual call transcript and the CRM data, so it writes from real facts, not memory.
  • The rep always reviews before sending. We position it as a first draft, not autopilot.
  • It can occasionally get details wrong, like a date or a price, so we highlight numbers for the rep to double-check.
  • Responses take a few seconds and cost us a little each time, so we generate drafts on request rather than for every call automatically.

When you talk to customers, the honest pitch is: it saves reps 10–15 minutes per call and produces a strong first draft, and a human stays in control.'"

Common mistakes

  • Describing the model as a database that "looks things up".
  • Describing it as magic or as "thinking like a human".
  • Ignoring the context window: assuming it remembers everything about every user.
  • Assuming deterministic output: expecting identical answers every time.
  • Too much jargon when explaining to non-technical people.

Interviewer tips

What "great" sounds like:

  • "At its core, it predicts the next token, which is why it's fluent but can be confidently wrong."
  • "It only knows what's in its training data or what we put in the context."
  • "We ground it with our own data and keep a human in the loop for high-stakes outputs."
  • "Cost and latency scale with tokens, which affects how we design the feature."
  • Translating technical concepts into business implications.

Practice questions

Answer one in a mock interview and get graded instantly.

  1. 1.Explain how an LLM works to a non-technical head of sales, and what it means for our AI feature.

    Practice this →
  2. 2.Why might an AI assistant give different answers to the same question, and is that a problem?

    Practice this →
  3. 3.What can't LLMs do reliably today, and how would you design around those limits?

    Practice this →

Finished reading?