Hypothetical scenario. Priya asks Northwind's policy assistant whether a returned drill qualifies for a refund. The answer sounds confident. Before treating that confidence as evidence, it helps to understand what the language model actually computes and what the surrounding application must supply.
A continuation built one step at a time
A language model processes a sequence of tokens and predicts a distribution over possible next tokens. A token is a unit from its tokenizer's vocabulary; it need not be a whole word. The system selects a token from that distribution, appends it to the sequence and repeats. A complete paragraph emerges from many such prediction steps.
The prompt is the input sequence presented for this request, including any instructions, conversation text and retrieved material the application includes. It changes which continuation the model predicts. It does not automatically change the model's learned parameters. An instruction such as “use the current return policy” also does not fetch that policy unless the application provides a retrieval or tool path.
Parameters are learned numerical values used in the model's calculations. They encode patterns acquired during training; they are not a neat table mapping every question to a verified answer. A model can generate a plausible claim without an identifiable source record behind that particular answer. The application must distinguish fluency from supported evidence.
Follow one illustrative distribution
Illustrative calculation. Consider the text “The capital of France is”. For this toy vocabulary, suppose the next-step probabilities are 0.70 for a token representing “Paris”, 0.10 for “Lyon” and 0.20 for all other tokens combined. They sum to 0.70 + 0.10 + 0.20 = 1.00. These are chosen teaching values, not measured probabilities from a named model.
Choosing the most probable token returns “Paris” in this example. Sampling instead can choose another token according to the distribution. If a uniform random draw lies in an interval assigned to another candidate, the continuation changes. The probability assigned to a token is a model output under this context, not a calibrated probability that the full eventual answer is true.
After selecting “Paris”, the next computation conditions on the longer sequence that includes it. The model now predicts what comes after “The capital of France is Paris”. Ending the answer, adding a sentence and producing a citation are further generation decisions. A correct first token does not guarantee all later claims are correct.
Training and inference change different things
Training adjusts parameters using examples and an optimization objective. In a basic next-token setup, the training process compares predictions with the observed next tokens and changes parameters to reduce a loss. The later loss-and-gradients foundation traces a small update so “learning” becomes a numerical process rather than a metaphor.
Inference uses a chosen set of parameters to compute outputs for an input. Ordinary generation can create temporary computational state and extend the current context without updating those parameters. A conversation remembering an earlier message in its input is therefore different from training the model on that message.
Persistent application memory is another mechanism. The application can store a preference or past decision and retrieve it during a later request. The model only sees that record if it is supplied through an input or supported tool interaction. “It remembers” needs a location, scope and retrieval rule before it becomes an engineering explanation.
Put evidence next to the question
In the wild. Hugging Face's generation documentation separates model generation from decoding configuration such as sampling controls. The interface makes an important boundary visible: the model produces candidate continuations, while the calling application chooses how to obtain and interpret them. An output string is not itself a database receipt or source citation.
For Northwind, a safer path starts with an authorized current policy record, supplies the relevant passage and asks the assistant to answer within it. The system still needs to check whether the cited passage supports the conclusion and whether the caller may see it. Adding a document to context improves the available evidence; it does not convert generation into guaranteed truth.
A model answer is not a lookup receipt
Misconception: the model looks up the answer in an internal factual database. A standalone generative model does not inherently issue a source lookup for each assertion. A model-backed application may include search, retrieval or database tools, but those are explicit system components with their own evidence and authority boundaries.
A second misconception is that a helpful conversation permanently teaches the underlying model. A particular provider may offer separate retention or training policies, but ordinary context conditioning and parameter updates remain different mechanisms. Avoid promising either persistent learning or complete non-retention without the actual application's documented contract.
Use this explanation when deciding which problem needs a different prompt, a retrieval path, a model change or a durable application record. It describes a basic autoregressive text-generation view. Real model architectures and interfaces add details, but the essential question remains concrete: what input did this computation receive, what state changed and what evidence supports the resulting answer?
Check yourself
Does a 0.70 probability for the next toy token mean the complete answer has a 70% chance of being correct?
No. It describes one token distribution under the chosen context. Full-answer correctness, source support and calibration are separate questions.
Priya corrects the model in the current chat. Have its learned parameters necessarily changed?
No. The correction can affect later predictions because it is in context. Training or fine-tuning would be a separate parameter-update process.
How can the application use a preference from a previous session?
Store it under an explicit scope and retrieve it into the new request when authorized. Persistent application storage and current model context have different lifetimes.
Go deeper
- Video — watch first: Intro to Large Language Models — Andrej Karpathy. Watch first for the boundary between learned model parameters and application behavior.
- Book chapter: Neural Networks and Deep Learning — chapter 1, Using neural nets to recognize handwritten digits — Michael Nielsen. Builds intuition for learned parameters; its digit example is not an LLM implementation.
- Primary document: Transformers generation configuration — Hugging Face. Separates generation and decoding settings from an evidence lookup.