Slider
Configure a continuous numeric slider in Potato with a minimum, maximum, step size, and starting value for granular rating and scoring tasks.
The slider type provides a draggable slider for selecting numeric values within a range. Ideal for confidence ratings, intensity scores, or any continuous numerical input.
Draggable slider for continuous numeric annotation in Potato
Basic Configuration
annotation_schemes:
- name: "confidence"
description: "How confident are you in this answer?"
annotation_type: "slider"
min_value: 0
max_value: 100
starting_value: 50
step: 1Configuration Options
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Unique identifier for the annotation |
description | string | Yes | Instructions shown to annotators, and the place to say what each end of the scale means |
annotation_type | string | Yes | Must be "slider" |
min_value | integer | Yes | Minimum slider value, shown as the caption at the left end |
max_value | integer | Yes | Maximum slider value, shown as the caption at the right end |
starting_value | integer | Yes | Initial slider position (a value outside the range is moved to the nearest end) |
step | number | No | Increment value (default: 1) |
maxTick | integer | No | Most labeled tick marks along the track (default: 8) |
The slider shows the current value above the thumb. The ends of the track show only the numbers min_value and max_value, and wording such as "Not confident at all" belongs in description. Do not add labels to a slider scheme. A slider scheme with labels renders as a column of radio buttons instead of a slider.
Answering with the Starting Value
Potato stores nothing for an untouched slider. An item the annotator only opened therefore has no slider answer, and a required slider blocks Next until the annotator answers. Opening an item is not an answer, even with the handle sitting at starting_value.
An annotator who agrees with the starting value clicks the handle where the handle sits, or presses Enter or Space with the handle focused (New in v2.15.0). Either action stores starting_value as the answer. Before 2.15.0, keeping the starting value took a drag away and back. A click or Enter or Space on the handle stores the starting value in vas, confidence, and soft_label schemes as well.
Examples
Confidence Rating
- name: "confidence"
description: "How confident are you in your annotation? (0 = not confident at all, 100 = completely confident)"
annotation_type: "slider"
min_value: 0
max_value: 100
starting_value: 50
step: 5Intensity Scale
- name: "intensity"
description: "Rate the emotional intensity of this text, from 1 (very mild) to 10 (very intense)"
annotation_type: "slider"
min_value: 1
max_value: 10
starting_value: 5
step: 1Percentage Input
- name: "agreement"
description: "What percentage of people would agree with this statement?"
annotation_type: "slider"
min_value: 0
max_value: 100
starting_value: 50
step: 1
maxTick: 6 # labeled ticks at 0, 20, 40, 60, 80, and 100Output Format
A slider answer is stored under the label name slider, as a string:
{
"instance_id": "item_1",
"user_id": "annotator1",
"labels": {
"confidence": {
"slider": "75"
}
},
"spans": {},
"links": {}
}When to Use Slider vs Number Input
- Use Slider when you want annotators to make quick, intuitive selections on a continuous scale
- Use Number Input when you need precise values or when the range is very large
Best Practices
- Set a sensible starting value - Place
starting_valueat a meaningful position (often the midpoint) - Name the endpoints in the description - The slider shows only numbers. Say in
descriptionwhat the lowest and highest values mean - Choose appropriate step sizes - Smaller steps for fine-grained distinctions, larger for coarse ratings
- Keep ranges intuitive - 0-100 or 1-10 are familiar to most annotators