Beginner rules for AI-assisted deduplication

Decide what duplicate means in your data before asking an assistant to group or remove records.

Choose the identity rule before reviewing the rows

Two identical display labels can describe different objects. Two distinct labels can describe the same object after a rename. Start by naming the identity key or the comparison fields and say whether the output should report duplicate candidates or produce a proposed merged set. A schema can make key fields explicit, but the task still has to define how identities should be interpreted. 1

Keep a borderline example visible

An exact match on one record ID is a different kind of evidence from a near match on a name. Ask for groups with the values that support each match. For uncertain cases, preserve both records and flag what evidence could resolve the question. Evaluation guidance recommends testing realistic edge cases with expected behavior, which is especially useful when group membership changes a later count. 2 3

Compare the proposed set with the input

Use a fixture containing an exact match, a punctuation difference, and two valid records with the same title. Count the IDs in each group and confirm that the assistant did not treat a repeated name as enough evidence. If real duplicates should be merged, specify which fields to keep and document where they came from so a second reader can reproduce the decision.

If two records disagree on a meaningful field, include both values in the proposed merge note before choosing a surviving value.

Sources

  1. What is JSON Schema?
  2. Agent Skills guide to evaluating output quality
  3. Anthropic’s guide to defining success criteria