A developer wants to prevent the watsonx.ai model from repeating phrases. Which parameter should be adjusted?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Todd Lammle: 'Imagine you're building a chatbot and this exact situation comes up — repetition penalty set above 1.0 is your go-to move. Repetition penalty discourages the model from generating tokens it has already produced; reducing redundant phrasing. This is a classic Domain 4: Integrate with watsonx concept you'll want locked in before exam day.'
Full explanation below image
Full Explanation
Repetition penalty discourages the model from generating tokens it has already produced; reducing redundant phrasing. Temperature set to 0 makes output deterministic but does not specifically target repetition. Max new tokens affects length. Changing the random seed alters randomness but does not penalize repetition. The correct answer, "Repetition penalty set above 1.0", directly satisfies the scenario because it aligns with watsonx Assistant's design principles and the specific capability being tested. The incorrect options ("Temperature set to 0", "Max new tokens increased", "Random seed changed to a new value") may appear relevant but each misses a key requirement or introduces a step that is either unnecessary or belongs to a different workflow. Mastering the distinction between these approaches is essential for effective watsonx Assistant implementations and is a core focus of the Domain 4: Integrate with watsonx section of the certification exam.