Microsoft Azure AI Engineer Associate AI-102 Practice Question
You use the gpt-3.5-turbo model through Azure OpenAI to generate promotional product descriptions. The model's output frequently has an inconsistent tone that is off-brand. You need to apply a prompt engineering technique to ensure the output consistently matches your company's specific style and voice. Which change should you make?
Reduce the temperature to 0.2 and lower the max_tokens value.
Add a system message containing style guide instructions and an example of the desired output.
Configure a stop sequence consisting of two newline characters to force longer responses.
Increase the presence_penalty to 1.5 to encourage the model to use new words.
Adding a system message that defines the model's persona, tone, and style, and includes an example of the desired output (a technique known as one-shot or few-shot learning), is the most effective way to control the brand voice. Lowering the temperature parameter makes the output more deterministic but does not teach it a specific style. A stop sequence is used to end generation at a specific point, not control tone. The presence_penalty parameter encourages the use of new words, which affects novelty, not the stylistic tone.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a system message in Azure OpenAI?
Open an interactive chat with Bash
How does lowering the temperature parameter affect AI responses in Azure OpenAI?
Open an interactive chat with Bash
What is one-shot or few-shot learning in prompt engineering?
Open an interactive chat with Bash
Microsoft Azure AI Engineer Associate AI-102
Implement generative AI solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .