AWS Certified AI Practitioner (AIF-C01) — Question 14
A company is using a pre-trained large language model (LLM) to build a chatbot for product recommendations. The company needs the LLM outputs to be short and written in a specific language.
Which solution will align the LLM response quality with the company's expectations?
Answer options
- A. Adjust the prompt.
- B. Choose an LLM of a different size.
- C. Increase the temperature.
- D. Increase the Top K value.
Correct answer: A
Explanation
Adjusting the prompt directly influences the quality and specificity of the LLM's responses, making it the best option for aligning with the company's needs. Choosing a different-sized LLM may not guarantee the desired output format or language. Increasing the temperature typically results in more diverse outputs, which could lead to longer or less relevant responses. Raising the Top K value alters the sampling strategy, potentially reducing focus on the desired output length and specificity.