Crack your next interview in 2 weeks — cohort starts Jul 27 — Join free →

The Question You'll Be Asked

"How does an LLM generate a response?"

This is the question you will be asked in every AI / Applied Engineer interview. Practice until you can deliver it in 60–90 seconds without sounding like you're reciting it.

5 Beats Interviewers Listen For

Miss one and they probe.

  1. Tokens — sub-word units; the model reads these, not words
  2. Embeddings — each token becomes a vector of numbers capturing its meaning
  3. Attention — scores relevance across every token in context, for each new token generated
  4. Generation / sampling — next-token prediction, one at a time, until done
  5. Hallucination root cause — plausibility ≠ truth; there is no truth-check step in the loop

The Model Answer

"An LLM converts your input into tokens — sub-word units — then maps each token to an embedding vector that captures meaning. An attention mechanism scores which parts of the context are relevant when generating each new token. The model then repeatedly samples the next most probable token from a probability distribution until done. It is not retrieving facts — it is predicting statistically plausible continuations — which is why it can sound confident while being wrong, and why anything it doesn't know must be explicitly provided in context."

Your version doesn't have to match word-for-word — the five beats must all be present.

Say This, Not That

Say

  • "Tokens, not words"
  • "Embeddings capture meaning as vectors"
  • "Attention scores relevance across the full context"
  • "Plausibility ≠ truth — no truth-check step"

Avoid

  • "It's just autocomplete"
  • "It thinks like a human"
  • "It searches the internet"
  • Skipping the hallucination beat — it's the most probed follow-up