Task Assignment
Control instance distribution in Potato with random, fixed-order, least-annotated, max-diversity and active-learning strategies, plus per-annotator workload caps.
Potato provides flexible task assignment strategies to control how annotation instances are distributed to annotators.
Routing instances to annotators
Overview
Task assignment controls:
- Which items each annotator sees
- How many items each annotator completes
- How many annotations each item receives
- The order in which items are presented
Key Configuration Options
| Option | Description | Default |
|---|---|---|
assignment_strategy | Strategy for assigning items | fixed_order |
max_annotations_per_user | Maximum items per annotator | unlimited |
max_annotations_per_item | Target annotations per item | 3 |
Assignment Strategies
Random Assignment
Assigns items randomly to annotators for unbiased distribution.
assignment_strategy: random
max_annotations_per_item: 3Best for: General annotation tasks where order doesn't matter.
Fixed Order Assignment
Assigns items in the order they appear in the dataset.
assignment_strategy: fixed_order
max_annotations_per_item: 2Best for: Tasks where annotators should see items in a specific sequence.
Least-Annotated Assignment
Prioritizes items with the fewest existing annotations for even distribution.
assignment_strategy: least_annotated
max_annotations_per_item: 5Best for: Ensuring all items receive adequate coverage before any item gets excessive annotations.
Max-Diversity Assignment
Prioritizes items with the highest disagreement among existing annotations.
assignment_strategy: max_diversity
max_annotations_per_item: 4Best for: Quality control and resolving ambiguous items.
Active Learning Assignment
Uses machine learning to prioritize uncertain instances.
assignment_strategy: active_learning
active_learning:
enabled: true
schema_names: ["sentiment"]
min_annotations_per_instance: 2
min_instances_for_training: 20
update_frequency: 10See Active Learning for full configuration.
Configuration
Modern Configuration (Recommended)
# Strategy selection
assignment_strategy: random
# Limits
max_annotations_per_user: 10 # -1 for unlimited
num_annotators_per_item: 3
# Reproducible shuffling
random_seed: 1234random_seed is a top-level key, not a member of a nested block, and it defaults to 1234 when unset. Fix it whenever you need a run to be reproducible, since the random and diversity strategies both draw from it.
num_annotators_per_item is the canonical spelling for the per-item cap. max_annotations_per_item is a deprecated alias for the same setting, and giving both a different value is refused at load rather than silently resolved.
The old automatic_assignment block
Potato no longer reads the automatic_assignment block. Potato 2.14.0 accepts the key and nothing acts on the block, so a config that still uses automatic_assignment gets the default assignment. potato validate warns that the block has no effect, and --strict fails on the warning. The current keys replace each old setting:
| Old setting | Current key |
|---|---|
sampling_strategy: random | assignment_strategy: random |
labels_per_instance: 3 | num_annotators_per_item: 3 |
instance_per_annotator: 50 | max_annotations_per_user: 50 |
test_question_per_annotator: 2 | an attention_checks block (see below) |
Test Questions
Items with a known answer, mixed into each annotator's queue, are configured as attention checks and gold standards. The old convention of marking a test item with _testing in its ID is no longer read. The items go in their own file, each with the answer the item should get:
attention_checks:
enabled: true
frequency: 10 # one check every 10 items
items_file: data/attention_checks.jsonExample Configurations
Basic Random Assignment
annotation_task_name: "Sentiment Analysis"
assignment_strategy: random
max_annotations_per_user: 20
max_annotations_per_item: 3Quality-Focused Assignment
annotation_task_name: "Quality Annotation"
assignment_strategy: max_diversity
max_annotations_per_item: 5
max_annotations_per_user: 50Crowdsourcing Setup
annotation_task_name: "Crowdsourced Task"
assignment_strategy: random
max_annotations_per_user: 10
max_annotations_per_item: 3
# Crowdsourcing settings
hide_navbar: true
jumping_to_id_disabled: true
login:
type: url_direct
url_argument: workerIdActive Learning Setup
assignment_strategy: active_learning
active_learning:
enabled: true
schema_names: ["sentiment", "topic"]
min_annotations_per_instance: 2
min_instances_for_training: 20
update_frequency: 10
classifier:
name: "sklearn.linear_model.LogisticRegression"
vectorizer:
name: "sklearn.feature_extraction.text.TfidfVectorizer"Admin Dashboard Integration
Monitor and adjust assignment settings through the Admin Dashboard:
- Navigate to
/admin - Go to the Configuration tab
- Modify:
- Max Annotations per User
- Max Annotations per Item
- Assignment Strategy
Changes take effect immediately without server restart.
Further Reading
- Active Learning - ML-based assignment prioritization
- Quality Control - Attention checks and gold standards
- Category Assignment - Route items by annotator expertise
- Crowdsourcing Integration - Prolific, SONA and other panels
- Full-Text Search for Qualitative Coding
- Model-in-the-Loop Labeling with Pre-Labels and Retraining - Ordering items by a trained model's pre-labels with
llm_confidenceandmodel_review
For implementation details, see the source documentation.