mediumStudy question · answer published in Prompt Engineering interview questions, so no pointsprompt-engineeringstructured-output
Labels with stray spelling
A JSON output field "category" should be one of five values, but the model sometimes writes "Refunds", "refund" or "money back". What is the strongest fix?
Discussion 0
Join free to post in the discussion.
Related questions
- Prefilling the responsePrompt Engineer
- Tracking broken JSONPrompt Engineer
- What top_p controlsPrompt Engineer
- What a stop sequence doesPrompt Engineer
- Reply ends mid-sentencePrompt Engineer
- Estimating tokens from wordsPrompt Engineer
- Letting the model say it does not knowPrompt Engineer
- Asking for a precise lengthPrompt Engineer