Productivity Features
Potato binds labels to number and letter keys, and review_mode opens the next item once an item is answered. Keyword highlights and tooltips add context.
Potato includes several features to help annotators work faster and more accurately, including keyboard shortcuts, hotkey review mode, tooltips, keyword highlights, and label suggestions.
Keyboard Shortcuts
Sequential Keybindings
For annotation schemes with at most 10 options, keybindings can be assigned sequentially by default:
annotation_schemes:
- annotation_type: radio
name: sentiment
description: "What is the sentiment of this text?"
labels: [positive, neutral, negative]
sequential_key_binding: trueThe first option will correspond to the "1" key, the second to "2", and so on.
Custom Keybindings
For greater control, configure custom keybindings on each label:
annotation_schemes:
- annotation_type: multiselect
name: options
description: "Select every option that applies"
labels:
- name: "Option 1"
key_value: "1"
- name: "Option 2"
key_value: "2"
- name: "Skip"
key_value: "s"Hotkey review mode
The review_mode block moves the annotator to the next item once the current item is answered. With the key bindings above, one key press labels an item and opens the next item. Review mode suits high-volume passes in which each item needs one quick verdict, such as spot-checks of LLM judge labels or a sweep through agent responses. Potato waits 350 milliseconds before moving on, and the selection stays visible during the wait. Pressing a different key during the wait replaces the answer and starts the wait again.
Add the block below to an existing config to turn review mode on with every option at its default:
review_mode:
enabled: true # off unless set
auto_advance: true
advance_on: complete # or required
delay_ms: 350Each option and its default are listed below:
| Option | Default | What the option controls |
|---|---|---|
enabled | false | Turns review mode on. |
auto_advance | true | Moves to the next item once the current item counts as answered. |
advance_on | complete | When an item counts as answered. complete waits until every scheme on the page holds a value, and required waits until every required scheme does. Any other value behaves as complete. |
delay_ms | 350 | Milliseconds between the answer and the move. 0 moves at once, and a value that is not a number falls back to 350. |
In 2.14.0 the automatic advance is the only behavior of review mode. A config with auto_advance: false therefore behaves like a config without the block, and annotators press Next or the right arrow key as usual.
Completion rules for advance_on
With advance_on: complete, Potato waits until every scheme on the page holds at least one value. Under advance_on: required, Potato runs the same check as the Next button and waits until every required scheme is filled. Use required when the page also has an optional scheme. Under complete, an optional note box holds the page until the annotator types something. A required page with no required scheme moves on after the first answer of any kind, because the required check passes when nothing is required.
Under complete, a scheme counts as answered as soon as the scheme holds any value. A multiselect scheme therefore moves the page on after the first ticked box, and a page with a multiselect scheme works better with auto_advance: false. For the same reason, a best-worst scheme moves the page on after the first of its two picks. With the best-worst scheme marked required and advance_on: required, the page waits for both the best and the worst pick.
A pure_display scheme holds the page indefinitely under complete. The scheme adds an annotation form with no input to the page, and the form never holds a value. Use advance_on: required on any page that carries a pure_display scheme.
Questions hidden by display_logic hold the page under complete, because Potato still counts a hidden scheme that has no value. Under required, Potato skips a hidden question, as the Next button does. A text box counts as answered one second after the annotator stops typing, and a pause mid-sentence can therefore move the page on. A slider counts as answered from its first movement, and the page moves on once the dragging has stopped for delay_ms.
Image, video, audio, spectrogram, volume, and tiered annotation schemes store each drawing or timeline in one hidden field, and review mode does not watch the field. An annotator drawing boxes or regions presses Next as usual. The triage scheme has an auto_advance option of its own, independent of review mode. A page with one triage scheme needs no review_mode block, and review mode is meant for pages with several schemes.
Key bindings on a review page
Review mode works with the keys that sequential_key_binding and key_value assign, and Potato shows each key as a badge beside its label. Each scheme with sequential_key_binding: true gets its own row of the keyboard. The first scheme takes the number row (1 to 0), the second scheme the top letter row (Q to P), and the third scheme the home row (A to L). An explicit key_value takes precedence over the sequential keys. Label keys do nothing while the cursor is in a text box, and an annotator who has typed a note clicks outside the box before pressing a label key.
The partial config below puts two required verdicts and an optional note on one page. Add the block to a config that already names its data and item properties:
review_mode:
enabled: true
advance_on: required # the optional note does not hold the page
annotation_schemes:
- annotation_type: radio
name: verdict
description: "Verdict"
labels: [good, acceptable, bad]
sequential_key_binding: true # keys 1, 2, 3
label_requirement:
required: true
- annotation_type: radio
name: issue
description: "Main issue"
labels: [factual, tone, format, none]
sequential_key_binding: true # keys Q, W, E, R
label_requirement:
required: true
- annotation_type: text
name: note
description: "Optional note"Under advance_on: required, the page moves on once the last required scheme is answered. An annotator who wants to leave a note types the note before pressing the second verdict key.
Going back and saving
The left arrow key goes back to the previous item, and the right arrow key moves forward, as on any annotation page. Returning to an answered item does not move the page on by itself. Changing an answer on the returned item starts the delay again, and the page then moves on to the next item. The automatic advance runs the same steps as the Next button. Potato checks the required schemes, saves the answers, and only then loads the next item. A failed save keeps the annotator on the current item with an error message.
Where review mode applies
Review mode acts only on the main annotation page. The training phase and the consent, instructions, and survey pages render through a separate page path that never receives the review_mode block, and annotators press the page's own button there. Attention checks appear in the main queue and auto-advance like any other item. With attention_checks.min_response_time set, a check answered faster than the threshold counts as failed, and a fast hotkey pace can fall under the threshold. The grid view at /annotate/grid (the grid_view block) runs its own page script and ignores review mode.
Example project
Potato ships a runnable example in examples/advanced/hotkey-review, a review of six short agent responses. The example has one radio scheme with three verdicts (good, acceptable, and bad) on keys 1, 2, and 3. From the example's folder, start the server:
potato start config.yaml -p 8000Log in at http://localhost:8000 and press 1, 2, or 3 on each response. Potato saves the verdict and opens the next response 350 milliseconds later.
Admin Keyword Highlights
Help annotators identify relevant words and phrases with colored highlights around matching text.
Configuration
keyword_highlights_file: data/keywords.tsvTSV File Format
The keywords file should be tab-separated with three columns:
Word Label Schema
love positive sentiment
hate negative sentiment
excel* positive sentiment
disappoint* negative sentiment
| Column | Description |
|---|---|
| Word | Keyword or phrase to highlight (supports * wildcards) |
| Label | Annotation label associated with this keyword |
| Schema | Annotation schema name |
Matching Behavior
- Case-insensitive: "Love" matches "love", "LOVE", "Love"
- Word boundaries: "love" matches "love" but not "lovely" (unless using wildcards)
- Wildcards: Use
*for prefix/suffix matching:excel*matches "excellent", "excels", "excel"*happymatches "unhappy", "happy"
Configuring Colors
Colors are configured in the ui.spans.span_colors section:
ui:
spans:
span_colors:
sentiment:
positive: "(34, 197, 94)" # Green
negative: "(239, 68, 68)" # Red
neutral: "(156, 163, 175)" # GrayRandomization Settings
For research purposes, configure keyword highlight randomization to prevent annotators from relying solely on highlights:
keyword_highlights_file: data/keywords.tsv
keyword_highlight_settings:
keyword_probability: 1.0 # Show 100% of keywords (0.0-1.0)
random_word_probability: 0.05 # Highlight 5% random words as distractors
random_word_label: "distractor"
random_word_schema: "keyword"Key Features:
- Persistence: Highlighted words are cached per user+instance
- Deterministic randomization: Uses hash of username + instance_id as seed
- Behavioral tracking: Records which words were highlighted
Tooltips
Add detailed explanations for each response option:
Plaintext Tooltips
annotation_schemes:
- annotation_type: multiselect
name: "Question"
description: "Select every label that applies"
labels:
- name: "Label 1"
tooltip: "This option means..."HTML Tooltips
For formatted tooltips, point to an HTML file:
annotation_schemes:
- annotation_type: multiselect
name: "Question"
description: "Select every label that applies"
labels:
- name: "Label 1"
tooltip_file: "config/tooltips/label1_tooltip.html"Label Suggestions
Display suggestions to help annotators with two modes:
highlight: Highlight suggested labels with colorprefill: Automatically pre-select suggested labels
Configuration
annotation_schemes:
- annotation_type: multiselect
name: "sentiment"
description: "What sentiment does the text express?"
labels: [positive, neutral, negative]
- annotation_type: text
name: "explanation"
description: "Why do you think so?"
multiline: true
rows: 4Data Format
Include suggestions in your data items:
{
"id": "1",
"text": "Good Job!",
"label_suggestions": {
"sentiment": "positive",
"explanation": "Because I think "
}
}Automatic Task Assignment
Three top-level keys decide how items reach annotators:
assignment_strategy: random
num_annotators_per_item: 10 # annotators per item
max_annotations_per_user: 50 # items per annotatorTask assignment lists the other strategies, and quality control adds attention checks to the queue.
Active Learning Integration
Productivity features integrate with Active Learning to prioritize the most informative instances:
active_learning:
enabled: true
schema_names: ["sentiment"]
min_annotations_per_instance: 2
min_instances_for_training: 20
update_frequency: 10Best Practices
- Use keyboard shortcuts for high-volume tasks - they significantly speed up annotation
- Add tooltips for complex or ambiguous labels to reduce inconsistency
- Use keyword highlights to draw attention to relevant text, but consider randomization for research validity
- Pre-fill suggestions carefully - they can bias annotators if overused
Further Reading
- UI Configuration - Customize the interface
- Active Learning - ML-based prioritization
- Task Assignment - Configure assignment strategies
- Triage - Accept, reject, or skip with the scheme's own auto-advance
- Quality Control - Attention checks and response-time thresholds
For implementation details, see the source documentation and the hotkey review mode source documentation.