AI-102 Question 448
Select 3You are tasked with building a chatbot using Azure OpenAI Service that can generate natural language responses based on user input. To ensure the chatbot generates appropriate and high-quality responses, which steps should you take when submitting prompts to the model?
- A
Provide clear and concise instructions within the prompt.
- B
Include examples in the prompt to guide the model's behavior.
- C
Set the temperature parameter to 0 for more creative responses.
- D
Use Azure Content Safety to filter inappropriate responses from the model.
- E
Limit the token count in the prompt to improve response quality.
Show answer and explanation
Correct answers: A, B, D
Explanation
When submitting prompts to Azure OpenAI models, providing clear instructions and examples can guide the model to generate accurate and relevant responses. Additionally, integrating Azure Content Safety ensures responses adhere to safety and compliance requirements. These practices collectively enhance the chatbot's performance and reliability.
- A. Correct.
Providing clear and concise instructions helps the model understand the specific task, reducing ambiguity in responses.
- B. Correct.
Including examples in the prompt can guide the model to generate responses that align with the desired behavior or style.
- C. Incorrect.
Setting the temperature to 0 reduces randomness, making responses deterministic and less creative. For creative responses, a higher temperature (e.g., 0.7) is more suitable.
- D. Correct.
Azure Content Safety can be used to filter inappropriate or harmful responses, ensuring the chatbot remains safe and compliant.
- E. Incorrect.
While limiting token count can help control costs and prevent overly verbose responses, it does not directly improve the quality of the generated output.