Sampling and trustworthy answers 00:00:01 A lottery for the next word Rosa's word machine contains a hundred glass counters. Sixty are amber, thirty are blue and ten are coral. She can reach only the most likely colors whose combined count fills her basket. Which counters should she leave outside? A decoder turns the model’s scores into a choice. Temperature changes the shape of the distribution, while top P truncates the low-probability tail. Sampling after truncation requires normalizing the surviving mass. Both settings influence variation across runs. After removing coral, the basket holds ninety counters. Drawing amber now means sixty chances in ninety. Sampling changes the outcome from run to run even while every counter stays put. 00:00:52 Fill the probability hopper Hold logits and temperature fixed. These three tokens form the complete vocabulary in this worked example. A alone covers 0.60 of the mass. Adding B reaches 0.90, so the smallest qualifying prefix contains both. Sampling uses the retained mass. A is more likely than B, but either can be drawn. Neither probability measures the truth of a factual claim. A logit gap of 1 yields odds of about 2.72 at temperature 1 and 7.39 at temperature 0.5. Apply nucleus truncation to the resulting probabilities. 00:01:39 Change the shape of the draw Inventing a plausible detail may be useful in a short story and harmful in an invoice summary. Define the task’s evidence requirement first. For an extraction task, permit an explicit missing field and verify every reported amount against the document. Deterministic decoding can repeat a fabricated amount consistently. A fiction exercise can allow an invented glass lighthouse. In an inventory report, require a source record for the same claim. Temperature rescales logits before sampling. Lower values sharpen the distribution. Nucleus sampling sorts candidates by probability and retains the smallest prefix whose cumulative mass reaches the threshold. With masses 0.6, 0.3 and 0.1, a threshold of 0.85 retains the first two, then sampling renormalizes their probabilities. With a cutoff of 0.6, the 0.6-probability token alone qualifies. At 0.61 the 0.3 token must join it. Sampling temperature reshapes token probabilities during decoding. Choosing to defer an answer is a separate product decision based on measured correctness, evidence quality and the cost of mistakes. Evaluate the risk at several levels of answer coverage. If answering ninety of a hundred questions yields nine errors, the error rate among answered questions is ten percent. Report coverage with that rate so a policy cannot improve simply by declining everything. For a slogan, varied continuations may be desirable. For an invoice total, even the most likely continuation needs evidence. Evaluate variation and factual accuracy independently when deciding which settings belong in a product. 00:03:24 Move the cutoff Raise the threshold to 0.95. Which tokens can now be selected? A and B cover only 0.90. The decoder must include C to reach the higher threshold. For an imaginative story Rosa can keep the draw. For a factual inventory entry she checks the shelf record. The filter governs which words may follow. evidence governs the claim she is willing to publish.