Question 1 · choose 1
A legal team uses a foundation model in Amazon Bedrock to summarize contracts. Reviewers complain that the summaries use unexpected, creative wording and vary too much from run to run. Which inference parameter change addresses this most directly?
- ARaise the temperature so the model explores more word choices
- BRaise Top P so that a larger share of candidate tokens is considered
- CLower the temperature so the model favors higher-probability tokens
- DIncrease the maximum response length so the model has more room
Show the answer and why
ARaise the temperature so the model explores more word choices
Incorrect
A higher temperature flattens the probability distribution and makes lower-probability tokens more likely, which leads to more random output.
BRaise Top P so that a larger share of candidate tokens is considered
Incorrect
A higher Top P widens the pool of candidate tokens and lets the model consider less likely outputs, the opposite of what the reviewers want.
CLower the temperature so the model favors higher-probability tokens
Correct
A lower temperature steepens the probability distribution, makes the model select higher-probability tokens, and leads to more deterministic responses.
DIncrease the maximum response length so the model has more room
Incorrect
Response length only limits how many tokens are returned. It does not change how the model chooses its words.
Temperature, Top K and Top P control randomness; lowering them makes output more focused and repeatable. Length parameters only cap or penalize length.
AWS documentation