How LLMs Work Explained Simply: Tokens, Context Windows, and Hallucinations
No math required. A plain business language explanation of tokens, context windows, training versus inference, and why models hallucinate, the four concepts almost every AI enabled interview eventually touches.
At some point in an interview for an AI enabled role, the conversation usually drifts from "what have you built" to "do you actually understand what's happening underneath it." Not a request for a computer science lecture, but a real, simple check: can you explain, in plain language, what a token is, why a model's context window matters, and why it sometimes states something confidently wrong.
Most candidates who have only used AI tools, without ever being asked to explain them, fumble this gently. They can operate the tool but cannot open the hood, even a few inches, which reads to an interviewer as surface level familiarity rather than genuine understanding. The gap is smaller than it looks. Four concepts, explained without math or jargon, cover almost everything that actually comes up.
This guide explains all four the way a good colleague would explain them over coffee, not the way a textbook would.
By the end of this guide, you will be able to explain tokens, context windows, the difference between training and inference, and why models hallucinate, each in a sentence or two, without hedging or reaching for a definition you half remember.
You will also understand why these four concepts specifically matter for real work, not as trivia, but as the actual reasons certain things go wrong and certain workarounds exist. No math, no model architecture, no jargon beyond what gets defined the moment it appears.
Why conceptual understanding gets tested, not just tool skill
A candidate who can operate a tool without understanding roughly how it works is in a specific kind of trouble: they can follow a known pattern successfully, but they cannot reason about a new situation the pattern does not cover. When a task fails in an unfamiliar way, understanding why the underlying system behaves the way it does is the difference between diagnosing the problem in two minutes and being stuck for an hour.
This matters more, not less, in procurement and operations roles specifically, because these roles increasingly involve explaining AI assisted work to people who do not use the tools themselves: a manager, a compliance reviewer, a supplier relations team. "The tool made a mistake" is not an acceptable explanation in a room like that. "The document was longer than the model's context window could hold in one pass, so it missed a clause near the end" is a real, credible explanation that only someone with basic conceptual understanding can give.
Interviewers test for this because it predicts something real: whether a candidate can be trusted to use AI tools independently, on tasks nobody has specifically walked them through, without supervision catching every mistake before it matters.
There is also a simpler, more immediate reason this comes up so often: these four concepts explain nearly every strange or surprising thing a new user runs into during their first weeks with an AI tool. Why did it forget something I told it earlier in a long conversation. Why did it confidently give me a wrong date. Why does the same question sometimes get a slightly different answer. A candidate who can answer these questions for themselves troubleshoots faster and asks for help less often, which is a real, practical advantage independent of any interview.
Tokens: the units a model actually reads
A language model does not read text the way you do, letter by letter or word by word. It breaks text into small chunks called tokens, roughly word sized pieces that might be a whole short word, part of a longer word, or a punctuation mark. "Procurement" might be one token or split into two or three, depending on how common that exact word is in the model's training. You do not need to memorize how the splitting works. You need to know that it happens, because it explains two things that otherwise seem strange.
First, it explains why AI tools are priced and measured in tokens rather than words or pages, since the model's actual unit of work is the token, not the word. Second, it explains why very unusual words, names, technical jargon, or a language the model saw less of during training, sometimes get handled slightly less reliably than common English words: they often break into more, smaller tokens, giving the model less of a clean pattern to work from.
Context window: the model's working memory for one conversation
A context window is the total amount of text, measured in tokens, a model can actually consider at one time within a single conversation or request. Think of it as a desk: everything currently on the desk is available to work with, but anything that never made it onto the desk, or that got pushed off to make room for something new, is simply not part of what the model is reasoning about right now.
This has a direct, practical consequence that explains a lot of confusing AI behavior. If you paste a 400 page contract into a tool with a context window too small to hold all of it, the model may only ever actually "see" the first portion, and any answer about a clause near the end is either missing entirely or based on a guess rather than the real text. This is not the model being careless. It is the model correctly reporting on the only part of the document that was actually on its desk.
The practical fix is straightforward once you understand the cause: for long documents, either use a tool with a context window comfortably larger than the document, or deliberately break the document into sections and process each one, the same chaining technique covered in the seven prompt engineering skills employers test.
Training versus inference: two very different phases
These two words get used loosely, and mixing them up leads to real misunderstandings about what a model can and cannot do. Training is the one time, resource intensive process where a lab teaches a model general patterns of language and reasoning, using enormous amounts of text, over weeks or months, before the model is ever released to the public. Inference is what happens every single time you send the model a message afterward: it applies what it learned during training to your specific input, in seconds, without learning anything new from that one conversation.
This distinction explains a specific, common confusion: a model does not "remember" your conversation from yesterday unless the tool you are using explicitly saves and resends that history, because inference does not change the underlying model at all. It also explains why a model's knowledge has a cutoff date tied to when its training data was collected, and why asking it about something that happened after that cutoff, without giving it the information directly, will produce either an honest "I don't know" or, less helpfully, a guess.
Hallucination: why a model states something confidently wrong
A hallucination is when a model produces a statement that sounds fluent and confident but is not actually true or not actually supported by anything it was given. This is the single most consequential concept in this guide for real workplace use, because a hallucinated number in a procurement report can be acted on before anyone notices it was never real.
The underlying cause connects directly back to training and inference. A model does not store facts the way a database does, in a lookup table it can check for certainty. It stores patterns, learned during training, about what kind of text plausibly follows other text. When it is asked something it genuinely does not have reliable information about, it does not have a built in mechanism to simply say "I don't know" by default, because generating a plausible sounding continuation is what the underlying pattern matching is built to do. The result can be a specific, confident, entirely invented number, citation, or fact, delivered in exactly the same tone as a correct one.
This is worth sitting with for a moment, because it is genuinely counterintuitive the first time it clicks. A wrong answer from a person usually comes with some tell, hesitation, a qualifier, a change in tone. A hallucinated answer from a model carries none of those tells, because the model is not experiencing uncertainty the way a person would, it is simply completing a pattern, and a wrong completion looks exactly as fluent as a right one. This is precisely why the verification habit matters more here than it would with a human colleague giving you an answer.
Practice these interview questions
You don't need to explain transformer architecture to pass this kind of interview question, but you do need to show you understand the practical mechanics well enough to make good decisions with these tools. Work through your own plain-language answer first, then compare it with the sample.
Why they're asking: They're checking whether you understand hallucination as a mechanism, plausible text generation, not a bug or a lie, and whether you can explain that without leaning on jargon.
Hit these points:
- Say the model predicts the next most statistically likely token, it doesn't look facts up in a database
- Give one concrete failure example: a fabricated citation, a case number that doesn't exist, or a stat that was never in the source
- Name why it's dangerous: fluent, confident phrasing carries zero signal about accuracy
- State your practical rule: never treat confident tone as evidence, verify anything that matters against the source
Sample answer:
- The mechanism: "A hallucination happens when the model generates the most statistically plausible next words instead of retrieving a stored fact, so a confident-sounding sentence can be entirely made up."
- A concrete example: "It might invent a court case citation that doesn't exist, or state a contract renewal date that was never actually in the document I gave it."
- Why it's risky: "The model sounds exactly as confident when it's wrong as when it's right, so tone gives you zero signal about accuracy."
- My rule: "I never treat a confident tone as proof, I check anything that actually matters against the real source before I act on it."
Remember it as: Confident is not the same as correct.
Why they're asking: They want to know if you understand the context window as a hard token budget with real consequences, not a vague notion of the model's 'memory.'
Hit these points:
- Define it as a fixed token budget covering the conversation plus any pasted documents, not an abstract memory
- Say what happens when you exceed it: earlier content gets pushed out or lost track of
- Give a concrete example: a long contract that exceeds the window and a clause that gets missed
- Name your practical workaround: work in smaller sections rather than trusting one giant pass
Sample answer:
- The definition: "The context window is the fixed amount of text, measured in tokens, that the model can hold in view at once: the conversation history plus any documents I've pasted in."
- What breaks: "If I paste in something longer than that budget, earlier content can get pushed out, so the model loses track of a clause or fact that mattered."
- A real case: "With a forty page supplier contract, I've seen a model miss a termination clause buried early in the document once the window filled up with later pages."
- My workaround: "For anything long, I work in smaller sections and check the pieces separately rather than trusting one giant pass caught everything."
Remember it as: Budget, not memory.
Why they're asking: They're testing whether you understand hallucination as a structural property of how the model generates text, not a behavior it's choosing and could simply stop.
Hit these points:
- Say hallucination isn't a choice or a lie, it's the model still generating plausible text when it doesn't have the real answer
- Explain that instructing it not to hallucinate can reduce frequency but doesn't remove the underlying mechanism
- Give the practical implication: verification has to stay a separate, deliberate step, not something you prompt away
- Avoid claiming any instruction eliminates the problem entirely
Sample answer:
- The core point: "It's not choosing to make things up the way a person choosing to lie would be, it's generating text from patterns, and when it doesn't have the real answer it still produces something that looks like one."
- What the instruction actually does: "Asking it to flag uncertainty can reduce how often it happens, but it doesn't remove the underlying tendency, it just nudges the pattern slightly."
- Why that matters: "Because of that gap, verification has to be a separate, deliberate step I build into the workflow, not something I can prompt my way out of."
Remember it as: You can't prompt away a mechanism.
9 of 12 answers are locked. Any paid plan unlocks every question like these, and Foundation adds the full course catalogue.