Extract an uncertain reading from a label

Watch short identifiers, spaces and punctuation. · 176 words

Extraction prompts should separate visible text from interpretation. A museum label scan reads: "Title: Rain on the Pier"; "Artist: Ana Lee"; "Date: 199?"; "Medium: Oil on canvas." A scanner note says the question mark represents one unreadable digit caused by glare, not a printed mark. The source supports "199" but not one exact year. A strong prompt identifies the target field, requires exact transcription, and gives an uncertainty format. Do not let the model guess a familiar year.

Try: "Read only the Date line. Return visible_text, uncertain_span, possible_readings, confidence, and evidence. Write [unclear] for unreadable characters. Do not choose an exact year unless every digit is readable." The expected result is visible_text = "199[unclear]"; uncertain_span = "final digit"; possible_readings = "1990 through 1999"; confidence = "high for 199, low for the full year"; evidence = "the first three digits are clear and glare covers the last." Check that clear characters remain, the damaged span is uncertain, and no final year is claimed. An answer such as "1996" fails because the source does not identify that digit.

Check your recall

What date should be safely transcribed from the label, and why is "1996" not a valid final answer?

Check your answer

The safe transcription is "199[unclear]." Only the first three digits are readable, so choosing 1996 would invent the obscured final digit.

Sources and credits

Original KeyTouch lesson. Background reading · DAIR.AI · Examples of Prompts.