AI-102 Question 479
Select 3You are using Azure OpenAI Service to implement a chatbot for customer support. The chatbot often provides irrelevant or vague answers to user queries. To improve the quality of responses, you decide to apply prompt engineering techniques. Which of the following actions should you take to optimize the prompt?
- A
Provide clear instructions about the chatbot's role and desired tone.
- B
Include examples of both good and bad responses in the prompt.
- C
Replace the prompt with a generic phrase like 'Answer the question'.
- D
Set a temperature value to reduce randomness in responses.
- E
Use few-shot prompting to demonstrate response patterns.
Show answer and explanation
Correct answers: A, B, E
Explanation
Prompt engineering involves crafting detailed, clear, and context-rich prompts to guide an AI model's behavior. Techniques like providing clear instructions, including examples, and using few-shot prompting are essential for improving response relevance and quality. Generic prompts or unrelated settings like temperature control do not address the core issue of prompt design.
- A. Correct.
Providing clear instructions about the chatbot's role and the desired tone helps guide the model's behavior and ensures more relevant responses.
- B. Correct.
Including examples of good and bad responses helps the model understand what is expected and what to avoid, improving the quality of its answers.
- C. Incorrect.
Using a generic phrase like 'Answer the question' is too vague and does not provide enough context for the model to generate accurate or relevant responses.
- D. Incorrect.
Setting a temperature value can control randomness but is not directly related to prompt engineering techniques for improving response quality.
- E. Correct.
Few-shot prompting demonstrates response patterns through examples and helps the model generate more accurate and contextually relevant answers.