Label
Fill Expected, the answer each row should have had: by hand, from verdict corrections, with a labeling agent that runs your models over the rows, or from a script.
Expected is what a row should have said. A fine-tune learns it, a judge can grade against it, and a model comparison scores against it. Trodo never writes it on its own. It comes from one of four places:
| From | How |
|---|---|
| A person | Type it in the row's drawer, import it with the file, or approve the values Lucid proposes on an approval card. |
| A verdict correction | On a verdict row, Expected is the correction someone gave the verdict with a thumbs-down. |
| A labeling agent | An agent runs your models over the rows and writes Expected by your rule. |
| A script | trodo datasets update or the SDK's update, by row id. |
Rows that passed their evals often need no Expected: what the agent said is already the answer, and an export can train on it as it is. Label the rows that failed, or that have no answer yet.
Labeling agents
Every team decides what a correct answer is differently, so labeling is an agent you can read and change, not a fixed feature. Open a dataset and click Label:
- Label with Lucid: describe your rule in your own words ("three models, keep the answer two agree on; if none agree, leave it") and Lucid builds the agent.
- From a template: a draft agent opens in the agent editor, already pointed at this dataset. Pick its models, read each step, then test or publish it.
Nothing runs until you run the agent. To run it from CI after new rows arrive, use trodo agents run NAME --wait (CLI → Issues and agents).
| Template | What it does |
|---|---|
| Where models agree | Three models answer every row without Expected. Where two give the same answer, it becomes Expected. Give each model step a different model; the rule is a few lines of Python in the Agree step. |
| With a model and your rules | One model writes Expected for rows without one, from the instructions you write in its step. |
| Rewrite failed rows | Rows an eval failed get a new answer from a stronger model, given the failed answer and why it failed. Name an eval in Read rows to rewrite only what that eval failed. |
| Compare models | Two models answer every row that has Expected. Each answer and whether it matched go into the row's metadata, and the Compare step reports how often each model matched. |
A labeling agent is made of dataset steps you can change: Read dataset rows (which rows: without or with Expected, passed, failed, marked wrong, optionally for one eval), a model step that runs once per row, an optional rule (a Python step), and Update dataset rows, which writes back by row id. See Dataset steps.
What a run changes
- Each run that changes rows saves one dataset version, named after the agent. ⋯ → Versions → Restore undoes it.
- Expected written by an agent or a script with
label: 'derived'is recorded as derived, and an export showslabel_source: "derived". Expected from a person shows"explicit". - A row whose model call failed (a timeout, a refusal) is skipped, never written half-done.
What it costs
Each model call is one Execution: a three-model agreement over 200 rows is 600, plus one for the Python step. Reading and writing rows is free. The model calls run on your provider keys from Settings → Models and are billed by your provider.
From a script
Export the rows, run your own code, and write Expected back in one version:
trodo datasets export support-failures --rows failed -o failed.jsonl
python label.py failed.jsonl > fixes.jsonl # lines of {"id": "...", "expected": "..."}
trodo datasets update support-failures -f fixes.jsonl --label derivedSee CLI → Datasets.
Add your own rows
Import a CSV, spreadsheet or JSON file, type rows in the table, or append them from code with the SDK or CLI. Edit any row in its drawer.
Export
Download a dataset's rows as JSONL: Trodo rows, OpenAI-style chat fine-tuning examples or DPO pairs, chosen by Expected or by eval results, from the app, the CLI, a script or the SDKs.