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

Choose Prodigy input-hash or task-hash exclusion according to whether repeated material represents a duplicate annotation or a deliberately new question.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-prodigy-input-task-hash-exclusion/
Language: en

## 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](https://prodi.gy/docs/api-loaders) 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](https://prodi.gy/docs/api-components) 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](https://prodi.gy/docs/api-database) 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](/journal/data-guide-exact-hash-normalization-boundary/) and [MinHash candidates](/journal/data-guide-minhash-shingle-threshold/) 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.
