| Quick Reference Gen AI CheatsheetGenerative models on one page — tokens, prompts, sampling, retrieval, and the traps around context, grounding, and finish reason. 10 sections 10 tables 14 code snippets Next tokenA chat turn A sharper draw What a generator does
This page is generative models. Training a network from scratch and classical machine learning are left out. TokensCount pieces, not words The unit that is billed
MessagesFew-shot in the same list Who said it
SamplingTemperature rescales logits Nucleus cutoff How one token is chosen
The windowRoom left for the answer Where the fact sits
RetrievalPaste, then generate What retrieval changes
What you can changeA prompt is this call only Prompt, penalty, or weights
How it stopsA schema, when the model supports it Read the stop reason Finish and format
The billAdd both sides What you pay for
Interview trapsGreedy is still one build Validate before you run it Traps worth memorising
How to use this page: sample the next token from logits, keep instructions separate from retrieved text, and read |