Stopping a model from inventing support ticket categories
AI-901
Implement AI solutions by using Microsoft Foundry
Medium
Question 27 of 50
You are deploying a chat completion model in Microsoft Foundry to categorize customer support tickets into six predefined categories. Although the system message lists all six category names, the model occasionally invents categories that are not on the list and produces inconsistent classifications across identical tickets.
Which prompt engineering technique should you implement?
Show answer and explanation
DProviding few-shot examples of user and assistant messages
In few-shot learning, a set of training examples is provided as part of the prompt to give additional context and demonstrate the desired task to the model. Including example user queries and corresponding assistant responses shows the model exactly how to map varied support tickets to the six allowed category names. Decreasing the sampling temperature reduces randomness between runs, but it does not prevent the model from inventing categories if it lacks demonstrations of the expected output format. Rewriting negative instructions in the system prompt to forbid unlisted categories merely repeats rule-based instructions without providing concrete examples of proper categorization. Repeating the category list in user messages provides repetitive reference data but fails to demonstrate how tickets should be mapped to those categories.
Source: learn.microsoft.com/
Anonymous, no account needed. Your tally stays in this browser.
Practice by topic: Prompt engineering questions