AIF-C01 Question 130
Select 3A team of data scientists is using a large language model (LLM) to generate customer support responses. However, they notice that the responses are inconsistent in quality and sometimes irrelevant to the input prompts. Which of the following prompt engineering best practices should the team implement to improve response quality?
- A
Experiment with different prompt structures to identify the most effective ones.
- B
Use concise and specific language in the prompts to reduce ambiguity.
- C
Add multiple unrelated topics in a single prompt to explore broader responses.
- D
Incorporate guardrails in the prompts to guide the model toward acceptable outputs.
- E
Avoid iterating on prompts after initial testing to save time.
Show answer and explanation
Correct answers: A, B, D
Explanation
Effective prompt engineering involves experimenting with different structures, using concise and specific language, and incorporating guardrails to guide the model's behavior. These practices help improve response quality, relevance, and safety. Avoiding iteration or introducing unrelated topics can lead to suboptimal results, as they hinder the model's ability to focus and improve through refinement.
- A. Correct.
Experimenting with prompt structures helps uncover the most effective ways to elicit high-quality responses from the model. This is a key best practice in prompt engineering.
- B. Correct.
Using concise and specific language reduces ambiguity, which directly improves the relevance and quality of the model's responses.
- C. Incorrect.
Adding multiple unrelated topics in a single prompt often leads to confusion and lower-quality responses, as the model struggles to focus on a specific task.
- D. Correct.
Incorporating guardrails ensures the model generates acceptable and relevant outputs, aligning with the intended use case and avoiding undesirable responses.
- E. Incorrect.
Avoiding iteration contradicts the principle of refinement and experimentation in prompt engineering, which is crucial for achieving the best results.