hardStudy question · answer published in Prompt Engineering interview questions, so no pointsprompt-engineeringstructured-output
Forcing a PAN number format
You extract Indian PAN numbers, which have the pattern five capital letters, four digits, one capital letter. With an open-weight model, how can you guarantee the output matches this pattern?
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