TECHNOLOGY

Prodigy duplicate filtering: the same input can carry a different annotation question

In this article
THE QUICK TAKE

Input hashes identify material, while task hashes also reflect the annotation question; choose the exclusion unit deliberately.

Ask what counts as repetition

A sentence can be shown repeatedly because it is duplicated in the source, because another label is being tested or because a new model proposes different spans. These are not interchangeable events. The Prodigy loader documentation distinguishes an input hash from a task hash so a workflow can recognize repeated material separately from repeated questions about that material. Decide which event the annotation process is supposed to exclude before adding a deduplication filter.

Understand the hash boundary

The input hash describes source content such as text or an image. The task hash builds on the input identity and annotation-related properties. The component reference documents set_hashes, including configurable input and task keys. If a custom recipe carries the relevant evidence in an unusual field, inspect the hash configuration rather than assuming that every meaningful part of the custom task participates automatically in identity.

Match exclusion to the workflow

A binary workflow may intentionally ask several distinct questions about the same sentence. Excluding everything with the same input would suppress legitimate work. Conversely, after a reviewer has fully corrected a document, another set of model suggestions may not justify showing the document again. Input-level exclusion can fit that intended policy. State the policy in the recipe and check how the chosen loader and controller configuration apply it in the installed version.

Compare against the intended history

The database API exposes input and task hashes for existing datasets. A comparison against the wrong historical dataset can exclude unrelated work or leave previously answered tasks in the stream. Preserve the source revision and the task construction settings alongside the annotation run. Reusing a dataset name does not prove that the current producer generates tasks with exactly the same identity boundary as an earlier producer.

Test distinct questions as well as duplicates

A small trial should include a repeated task, unchanged input with a changed question, and changed input that looks superficially similar. Inspect which items reach annotation rather than judging the filter by total queue length alone. The guides on exact content hashes and MinHash candidates cover other meanings of duplication. Prodigy’s input/task distinction adds a workflow-specific question: whether the same material is being judged in the same way.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles