Copy an identifier with leading zeros
Watch short identifiers, spaces and punctuation. · 167 words
Begin with source text that stores an identifier as text. This booking record says: ticket_id: 00127, event: Robot Workshop, seat: 4B. A useful prompt says, Extract ticket_id exactly as written. Do not convert it to a number or remove leading zeros. Return one field named ticket_id and nothing else. The checkable result is {"ticket_id": "00127"}. Compare it with the source character by character, including the two leading zeros. The rule is simple: an ID is a label, not a quantity, so labels must be copied exactly.
A second example uses a library card. The source line is card_number: 004219, and the prompt says, Copy card_number exactly as text, keep every leading zero, and return only card_number. The expected output is {"card_number": "004219"}. Check that it has six characters and begins with 004. If the result is 4219, both leading zeros were lost. If it is 4219.0, the label was treated as a number. Asking for a string and an exact copy makes the answer easy to verify.
Check your recall
If the source contains ticket_id: 00127, what exact value should the model return, and what prompt wording prevents a wrong answer?
Check your answer
Return the string "00127". Tell the model to copy the identifier exactly as text and not remove leading zeros or convert it to a number.
Sources and credits
Original KeyTouch lesson. Background reading · DAIR.AI · Examples of Prompts.