Preserve the unit next to a quantity
Watch short identifiers, spaces and punctuation. · 199 words
A good extraction prompt names the source, states what to collect, and gives an output shape. Give an AI this museum label: "The Harp Case was made in 1820. Its height is 3.5 m, and its display weight is 12 kg." Ask: "Extract every measurement as item | number | unit. Copy each value exactly, and do not convert units." The result is Harp Case height | 3.5 | m and Harp Case display weight | 12 | kg. Check it against the label: 3.5 must stay with height, and 12 must stay with display weight. The unit makes each quantity meaningful.
Try mixed quantity types. A travel page says, "The morning train leaves at 8:15 and takes 2 hours. The return bus leaves at 16:40, and the walking route is 4 km." Prompt: "Extract every time, duration, and distance as item | value | unit or label | source phrase. Copy the source wording and do not convert anything." The result pairs 8:15 with train departure, 2 with train journey, 16:40 with bus departure, and 4 with walking route. Check each row by finding its exact phrase in the source and confirming that no number was left behind.
Check your recall
In the museum example, what output format should you request, and why should you forbid unit conversion?
Check your answer
Request item | number | unit. Forbidding conversion preserves the source exactly and keeps a value such as 3.5 m from being silently rewritten.
Sources and credits
Original KeyTouch lesson. Background reading · DAIR.AI · Examples of Prompts.