AI-102 Question 483
Select 3You are designing an Azure AI chatbot that uses OpenAI's GPT model to respond to user queries. The initial responses are vague and lack specific actionable insights. You want to use prompt engineering techniques to improve the chatbot's responses. Which of the following techniques should you apply?
- A
Provide clear instructions and examples in the prompt to guide the model's response.
- B
Add randomness to the prompt to generate diverse responses.
- C
Use a structured format in the prompt, such as bullet points or specific sections.
- D
Include a system message in the prompt to define the chatbot's behavior and tone.
- E
Shorten the prompt to ensure faster processing and response times.
Show answer and explanation
Correct answers: A, C, D
Explanation
Prompt engineering techniques, such as providing clear instructions and examples, using structured formats, and defining the chatbot's behavior through a system message, are effective in improving the quality and relevance of responses. These strategies ensure the model operates within the desired scope and produces accurate, actionable outputs.
- A. Correct.
Providing clear instructions and examples helps the model understand the desired output format and improves response quality.
- B. Incorrect.
Adding randomness to the prompt is not a recommended technique for improving response quality, as it may lead to inconsistent results.
- C. Correct.
Using structured formats in the prompt enables the model to generate well-organized and actionable responses.
- D. Correct.
Including a system message helps establish the chatbot's intended behavior and tone, leading to more relevant and accurate responses.
- E. Incorrect.
Shortening the prompt may reduce context and clarity, negatively affecting the quality of the responses.