Define a small vocabulary of statuses
Use the opposite Shift key for paired punctuation. · 149 words
A structured prompt should limit labels to a short, explicit list. For a book-lending desk, allow exactly received, processing, ready, returned, and needs_review. Define them: a newly logged request is received; preparation work is processing. A completed, pickup-ready request is ready. A returned item is returned. A note that fits none of the first four is needs_review. Give records L-41: request logged; L-42: books are being prepared; L-43: packed and waiting for pickup; L-44: returned from borrower. Fixed labels prevent vague answers such as in progress.
The prompt can then require an array of objects with loan_id and status, plus valid JSON and no extra text. The expected output is [{"loan_id":"L-41","status":"received"},{"loan_id":"L-42","status":"processing"},{"loan_id":"L-43","status":"ready"},{"loan_id":"L-44","status":"returned"}]. A simple checker verifies that there are four records, each ID appears once, and every status belongs to the allowed five-item list. If a source note is unclear, the correct result is needs_review, not a newly invented label.
Check your recall
In the book-lending example, which statuses should the prompt allow, and what should happen when a note matches none of the first four?
Check your answer
The allowed vocabulary is received, processing, ready, returned, and needs_review. A note that matches none of the first four statuses should receive needs_review.
Sources and credits
Original KeyTouch lesson. Background reading · JSON Schema · Understanding JSON Schema.