AI-102 Question 482
Select 3You are designing an AI solution that uses Azure OpenAI to generate responses for a customer support chatbot. Customers have reported that the responses sometimes lack context or relevant details. Which prompt engineering techniques can you apply to improve the quality of the responses?
- A
Provide explicit instructions in the prompt, such as specifying the tone or format of the response.
- B
Add examples of desired responses directly in the prompt to guide the model's output.
- C
Shorten the prompt to ensure the model generates concise responses.
- D
Use structured prompts that break down the request into multiple specific tasks.
- E
Enable the 'Automatic Context Enhancement' feature in Azure OpenAI to refine prompts.
Show answer and explanation
Correct answers: A, B, D
Explanation
Improving the quality of model responses often involves applying effective prompt engineering techniques. Providing clear instructions, offering examples, and using structured prompts are proven methods to guide the model and enhance its performance. These techniques help the model better understand user intent and generate more accurate, context-aware responses.
- A. Correct.
Providing explicit instructions helps the model understand what is expected, improving the relevance and quality of responses.
- B. Correct.
Including examples in the prompt gives the model a clear sense of the desired output style and content, making responses more aligned with user expectations.
- C. Incorrect.
Shortening the prompt can lead to a loss of important context, which may result in less accurate or relevant responses.
- D. Correct.
Structured prompts guide the model by breaking down complex tasks into simpler steps, improving response quality and coherence.
- E. Incorrect.
There is no 'Automatic Context Enhancement' feature in Azure OpenAI; this is a fictitious option.