CertBrain
Sign in
← Back to decks
Sign in to save your progress.Sign in

How Generative AI Models Work

Generative AI models such as large language models write text by predicting what comes next. This lesson explains tokens, embeddings, prompts and the temperature setting, so you can describe how a model turns a prompt into a completion on the AI-901 exam.

10 cards

How Generative AI Models Work

In this lesson · 5 sections
Step 4 of 5

Controlling randomness

Settings sent with a request change how the model samples its output. The best known is temperature. Raise it for more random, varied output, which suits brainstorming a marketing slogan. Lower it for more focused, predictable output, which suits writing a product specification. Top_p is a second setting that also influences randomness, though by a different method, and the usual advice is to adjust only one of the two at a time. Examples placed in a prompt (few-shot examples) steer the reply to that one request and do not permanently alter the model.