PRODUCTION SCENARIO
A Foundry prompt that classifies tickets into six categories labels the same ticket differently across runs and invents category names that are not on the list.
What should the developer add to the request?
Answering here is anonymous. Nothing is saved unless you sign in.
Show answer and explanation
Answer: Example user and assistant messages after the system message
Few-shot examples condition the model to respond as desired for the current inference, and with the Chat Completion API they are added to the messages array as example user and assistant interactions after the initial system message. Showing labeled examples is the documented step before reaching for more expensive options.