Pair a number with its correct item
Watch short identifiers, spaces and punctuation. · 213 words
Pairing numbers correctly requires instructions that forbid guessing and preserve source order. A sports notice says: "1. Ravi - 18 points; 2. Mina - 15 points; 3. Lee - 12 points." Prompt the AI: "Extract the standings as rank | player | points. Match each name only with the number in its own entry. Do not invent missing values." The result is 1 | Ravi | 18, 2 | Mina | 15, and 3 | Lee | 12. Check it by covering each name and verifying that its nearby number did not move to another row. This catches the error of pairing names and scores after the list is rearranged.
Use the same method with a museum audio guide: "1. Bluebirds - 4 min; 2. Roman Coins - 7 min; 3. Paper Boats - 3 min." Ask: "Extract each stop as stop number | title | duration. Preserve titles exactly and pair each title only with the duration in its own entry." The output is 1 | Bluebirds | 4 min, 2 | Roman Coins | 7 min, and 3 | Paper Boats | 3 min. Check every row against one complete source entry. Do not read all names down one column and all durations down another, because that can swap the pairs.
Check your recall
What should an extraction prompt say when a team in a standings list has no score?
Check your answer
It should say not to invent a score. Preserve or report the missing score as unknown and pair the team only with values that actually appear in its entry.
Sources and credits
Original KeyTouch lesson. Background reading · DAIR.AI · Examples of Prompts.