Testing with Generative AI study guide
Temperature and Top-P Parameters
Temperature and Top-P are sampling parameters that control the creativity and randomness of an LLM's output. A lower temperature generally reduces variation, while a higher temperature can increase it; behavior depends on the model and settings.
Practical example
Temperature: Scales next-token probabilities. Permitted ranges and zero-temperature behavior depend on the provider; temperature zero does not guarantee identical outputs across runs. Top-P (Nucleus Sampling): Restricts the model to choosing only from a subset of words whose cumulative probability equals 'P' (e.g., 0.90).
Exam scenario and common trap
Scenario: You are testing an automated legal contract generator. Which settings should you use? The Trap: "High Temperature to generate diverse legal clauses." The Correct Answer: A low temperature may improve consistency, but it does not ensure factual accuracy or identical outputs. Validate legal content, formatting and repeatability using representative cases and appropriate human review.
Related syllabus material covers the broader concept; this page includes additional context. Reference sections: 1.1.2–1.1.3. See the official ISTQB syllabus for exam scope. Examples are independent; QA-ace is not affiliated with ISTQB.