AIF-C01 Question 121
Select 3You are building a chatbot using Amazon Bedrock and a foundation model to assist customers in troubleshooting common technical issues. During testing, you notice that the responses from the model are either too generic or irrelevant. What are the most effective prompt engineering techniques to improve the quality and relevance of the responses?
- A
Provide clear instructions and context in the prompt.
- B
Use short and generic prompts to encourage creative responses.
- C
Incorporate examples of desired outputs in the prompt.
- D
Use temperature and max tokens settings to control the model’s behavior.
- E
Iteratively refine the prompt based on the model’s responses.
Show answer and explanation
Correct answers: A, C, E
Explanation
Effective prompt engineering focuses on providing clear instructions, incorporating examples, and iteratively refining prompts based on output quality. These techniques help guide the foundation model to produce relevant, accurate, and contextually appropriate responses. Adjusting model settings like temperature and max tokens, while useful, is not a core part of prompt engineering.
- A. Correct.
Providing clear instructions and context helps the model better understand the task and produce more relevant and specific responses. This is a fundamental prompt engineering technique.
- B. Incorrect.
Using short and generic prompts often leads to vague or irrelevant outputs. Specificity and clarity are key to effective prompt engineering.
- C. Correct.
Incorporating examples of desired outputs provides the model with guidance on what kind of responses are expected, improving the quality of its answers.
- D. Incorrect.
While adjusting settings like temperature and max tokens can influence the model’s behavior, these are not direct prompt engineering techniques. They are model configuration settings.
- E. Correct.
Iteratively refining the prompt based on the model’s responses allows you to identify and resolve issues, leading to better and more relevant outputs over time.