AWS Certified AI Practitioner (AIF-C01) — Question 201
A company wants to add generative AI functionality to its application by integrating a large language model (LLM). The responses from the LLM must be as deterministic and as stable as possible.
Which solution meets these requirements?
Answer options
- A. Configure the application to automatically set the temperature parameter to 0 when submitting the prompt to the LLM.
- B. Configure the application to automatically add "make your response deterministic" at the end of the prompt before submitting the prompt to the LLM.
- C. Configure the application to automatically add "make your response deterministic" at the beginning of the prompt before submitting the prompt to the LLM.
- D. Configure the application to automatically set the temperature parameter to 1 when submitting the prompt to the LLM.
Correct answer: A
Explanation
Setting the temperature parameter to 0 ensures that the LLM generates the same output for the same input every time, resulting in deterministic responses. The other options do not effectively control the randomness of the LLM's output; using a temperature of 1 increases variability, and modifying the prompt does not guarantee consistent results.