Skill 4.2.4
Enhance FM performance to achieve optimal results for specific GenAI use cases (for example, by using model-specific parameter configurations, A/B testing to evaluate improvements, appropriate temperature and top-k/top-p selection based on requirements)
Key Concepts
Temperature scales randomness: values near 0 make outputs focused and repeatable for extraction, classification and factual answers; higher values add variety for creative writing. Top-p (nucleus sampling) limits choices to the smallest set of tokens whose probabilities add up to p; top-k limits choices to the k most likely tokens. Usually only temperature or top-p is adjusted. Maximum tokens and stop sequences control length.
Supported parameters and ranges differ by model, and model-specific fields go in additionalModelRequestFields with the Converse API. Changes are validated with A/B testing: split traffic or an offline evaluation set between configurations and compare quality, consistency and cost before adopting the new setting.