Keep two people with the same surname apart
Watch short identifiers, spaces and punctuation. · 190 words
Shared surnames can make an apparently clear extraction wrong. A training record says: 'Participant A: Jordan Lee, employee 7310, Sales. Participant B: Jordan Lee, employee 4821, Operations.' Ask: 'Create one record per participant. Use employee_id as the unique key and copy the full name, surname, department, and source participant label. Never merge records with the same name. If names match, keep IDs and departments separate.' The output contains two records keyed 7310 and 4821. This is checkable because each employee ID appears once and exactly once with its stated department.
Use another source where only the surname is shared. A package log reads: 'Sender: Nia Patel, ID P-21. Recipient: Ravi Patel, ID P-93.' Ask: 'Extract sender and recipient separately. Pair each name with its own ID and role. Do not assign Nia's ID to Ravi or describe both only as Patel.' The result names Nia Patel as sender with P-21 and Ravi Patel as recipient with P-93. Roles, IDs, and nearby labels confirm the pairing. When no stable ID is available, preserve the full supplied name and other context instead of guessing. Compare every name-value pair with its source line.
Check your recall
Why should the two Jordan Lee records remain separate, and what should uniquely identify each record?
Check your answer
They are different employees, so merging them would attach the wrong department to at least one person. Their employee IDs, 7310 and 4821, uniquely identify the records.
Sources and credits
Original KeyTouch lesson. Background reading · DAIR.AI · Examples of Prompts.