Skip to content

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.

Slider annotation interfaceDraggable slider for continuous numeric annotation in Potato

Basic Configuration

yaml
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: 1

Configuration Options

FieldTypeRequiredDescription
namestringYesUnique identifier for the annotation
descriptionstringYesInstructions shown to annotators, and the place to say what each end of the scale means
annotation_typestringYesMust be "slider"
min_valueintegerYesMinimum slider value, shown as the caption at the left end
max_valueintegerYesMaximum slider value, shown as the caption at the right end
starting_valueintegerYesInitial slider position (a value outside the range is moved to the nearest end)
stepnumberNoIncrement value (default: 1)
maxTickintegerNoMost 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

yaml
- 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: 5

Intensity Scale

yaml
- 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: 1

Percentage Input

yaml
- 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 100

Output Format

A slider answer is stored under the label name slider, as a string:

json
{
  "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

  1. Set a sensible starting value - Place starting_value at a meaningful position (often the midpoint)
  2. Name the endpoints in the description - The slider shows only numbers. Say in description what the lowest and highest values mean
  3. Choose appropriate step sizes - Smaller steps for fine-grained distinctions, larger for coarse ratings
  4. Keep ranges intuitive - 0-100 or 1-10 are familiar to most annotators