medium10 pts · first answer countsprompt-engineeringstructured-output
Retrying failed validation
Your code validates model JSON with Pydantic. About 2% of replies fail because a date is "15th March". What is a good retry strategy?
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