
Answer-first summary for fast verification
Answer: Both control creativity and can be tuned together for optimal output diversity
## Explanation In Amazon Bedrock, both **temperature** and **top-p** are parameters that control the creativity and diversity of model outputs: - **Temperature**: Controls the randomness of predictions. Higher values (e.g., 0.8-1.0) make the output more random and creative, while lower values (e.g., 0.1-0.3) make it more deterministic and focused. - **Top-p** (nucleus sampling): Controls the cumulative probability threshold for token selection. Lower values (e.g., 0.1) make the model more focused on high-probability tokens, while higher values (e.g., 0.9) allow more diverse token selection. **Why they work together**: - Both parameters influence the creativity and diversity of generated text - They can be tuned together to achieve optimal balance between coherence and creativity - Using them in combination allows fine-grained control over output quality **Why other options are incorrect**: - **B**: Top-p does not primarily affect latency; it affects token selection - **C**: Neither parameter specifically controls grammar or sentence length - **D**: These parameters don't reduce vocabulary size; they control how tokens are selected from the existing vocabulary
Author: Ritesh Yadav
Ultimate access to all questions.
Which of the following statements correctly describes how temperature and top-p can be used together in Amazon Bedrock?
A
Both control creativity and can be tuned together for optimal output diversity
B
They control unrelated aspects — top-p affects latency only
C
Temperature controls grammar while top-p controls sentence length
D
Both reduce the model's vocabulary size
No comments yet.