D3: Sampling Parameters & Settings
Google Cloud Generative Leader exam practice questions · 12 flashcards
Question
What is temperature?
1 / 12
Tip: Space flips the card, ← / → navigate.
Show all 12 Sampling Parameters & Settings practice questions and answers
- What is temperature?Controls randomness: low = focused and consistent; high = creative and varied.
- When use low temperature?Factual answers, classification, data extraction.
- When use high temperature?Brainstorming, creative writing.
- What is top-p (nucleus sampling)?Limits choices to the smallest set of tokens whose cumulative probability reaches p.
- What is top-k?Limits choices to the k most likely next tokens.
- What is token count / max output tokens?Limits the length of the response (and affects cost).
- What are safety settings?Thresholds for blocking harmful content categories (hate, harassment, sexual, dangerous).
- What is output length control?Setting maximum tokens or instructing length to keep responses concise.
- What are stop sequences?Strings that tell the model where to stop generating.
- Customer support bot needing consistent answers: temperature?Low.
- Marketing slogan ideas: temperature?Higher.
- Why do tokens matter for cost?Pricing is based on input and output tokens.