Skip to navigation

Reviewing a batch

View as MarkdownOpen in Claude

A review batch lets a second group of participants check the work that annotators did in another batch. The source batch is the batch whose work is reviewed. Reviewers see each annotator’s work read-only, score it against questions you write, and can leave a note. Their verdicts are collected in the review batch, and each one points back to the work it scored.

This guide covers how to create a review batch, how to run a review study from it, how work completed before the review existed is brought in, what a reviewer sees, and how to read the results.

Human review has to be enabled for your workspace. If creating a review batch returns 403, submit a request to ask for access.

How a review works

  1. You create a review batch with POST /api/v1/data-collection/batches and a review object that names the source batch, how much of its work to review, and the questions reviewers score. The review batch gets its own dataset, and its form is built from your questions.
  2. As annotators complete work in the source batch, a share of their submissions is sampled for review. Each sampled submission becomes a datapoint in the review dataset. Work that was completed before the review existed is brought in the same way.
  3. You set up the review batch and run it as a study. Reviewers are the participants you choose, not the annotators.
  4. You export the review batch to get the verdicts.

A source batch can have only one review at the moment, so creating a second review for the same source is refused.

What can be reviewed

The source batch can use any instruction type except file_upload. Narration (video_narration) and audio recording (audio_recording) answers are shown to a reviewer once their audio is ready, so a submission whose audio is still being prepared waits until it is.

Screened-out submissions are never sampled. For work that already existed, only completed submissions that are awaiting review, approved or partially approved are enrolled. Test submissions are left out, and so are rejected, returned and timed-out submissions, because their responses are removed and could never be shown.

Creating the review batch

Add a review object to the batch create request. task_details is still required, because reviewers see it. Do not send dataset_id or batch_items. A review batch makes its own dataset, and its form comes from review.rubrics.

POST /api/v1/data-collection/batches
{
"name": "Review of narration batch",
"workspace_id": "6278acb09062db3b35bcbeb0",
"task_details": {
"task_name": "Review the narration",
"task_introduction": "<p>Review the narration for each video.</p>",
"task_steps": "<ol><li>Watch the video and play the narration</li><li>Score each question</li><li>Add a note if you want to</li></ol>"
},
"review": {
"source_batch_id": "0192a3b4-d6e7-7f8a-0b1c-2d3e4f5a6b7c",
"study_id": "645d8e4a1234567890abcdef",
"sample_rate_bps": 10000,
"rubrics": [
{
"description": "Does the narration describe what happens in the video?",
"scoring_scheme": "pass_fail_unsure"
},
{
"description": "How clear is the narration?",
"scoring_scheme": "scale_1_5"
}
],
"justification": true
}
}
FieldDescription
source_batch_idThe batch whose work is reviewed. It must be in the same workspace.
study_idOptional. Limits the review to one study on the source batch. Without it, the review covers every study on the source batch.
sample_rate_bpsThe share of the source’s submissions to review, in basis points from 1 to 10000. 10000 reviews every submission and 1000 reviews about one in ten.
rubricsFrom 1 to 20 questions. Each has a description and a scoring_scheme: scale_1_5 (1 to 5, from “Spam or extremely lazy, no real effort” to “Perfect, no changes needed”) or pass_fail_unsure.
justificationOptional. Adds an optional notes box, shown once for each item.

scale_1_5 and pass_fail_unsure are the scoring schemes available today. If you need a different one, submit a request to ask for it to be added.

If a source batch has several studies, set study_id. A source batch takes only one review, whichever study it names, so a review that covers every study blocks a second review for a single study on the same batch.

Response

The response is the usual batch, with a review object added (other batch fields are omitted here):

{
"id": "0192a3b4-c5d6-7e8f-9a0b-1c2d3e4f5a6b",
"status": "UNINITIALISED",
"review": {
"round": 1,
"sample_rate_bps": 10000,
"review_dataset_id": "0192a3b5-f1a2-7b3c-4d5e-6f7a8b9c0d1e",
"backfill_requested": true,
"study_id": "645d8e4a1234567890abcdef"
}
}

Keep the batch id and the review_dataset_id. When backfill_requested is true, the source already has work that qualifies, and the review dataset fills as that work is sampled. See Work completed before the review existed.

Setting up the batch

Set up a review batch like any other, with the review dataset from the response:

POST /api/v1/data-collection/batches/{batch_id}/setup
{
"dataset_id": "0192a3b5-f1a2-7b3c-4d5e-6f7a8b9c0d1e",
"tasks_per_group": 2
}

tasks_per_group sets how many items one reviewer reviews in a single submission. Each group is one place in the study, so scale the study’s reward and time to it. Read the batch with GET /api/v1/data-collection/batches/{batch_id} until its status is READY. Setting up a batch that is already READY returns 400. See Setting up the batch.

If the source is still running, the review dataset starts small and grows as submissions are sampled, so set up the batch once it has at least one datapoint.

Creating the review study

Create the study as you would for any batch, with these differences:

POST /api/v1/studies/
{
"name": "Review of narration batch",
"internal_name": "review-narration-r1",
"description": "<p>Review the narration for each video and score it.</p>",
"estimated_completion_time": 8,
"maximum_allowed_time": 25,
"reward": 360,
"device_compatibility": ["desktop"],
"data_collection_method": "AI_TASK_BUILDER_BATCH",
"data_collection_id": "0192a3b4-c5d6-7e8f-9a0b-1c2d3e4f5a6b",
"data_collection_metadata": {
"annotators_per_task": 1,
"increase_places_on_sync": true
},
"filters": [
{
"filter_id": "custom_allowlist",
"selected_values": ["61f292141b0ec8b3b5ab353", "61f2914e3bb4b4d40080aec"]
}
]
}
  • data_collection_id is the review batch, not the source batch. A published study cannot change it.
  • Choose reviewers with a custom_allowlist filter. A reviewer must not have answered the source batch’s tasks: the review is refused to anyone who annotated the work they are asked to review.
  • Set increase_places_on_sync to true when you create the study. See the warning below.
  • A narration or audio source is played back in the reviewer’s browser, so reviewers need a desktop browser with audio.

Do not leave out increase_places_on_sync. The review dataset keeps growing as submissions are sampled, and the places for a task group that is added after the study is published only exist if the study opted in. Without it, a reviewer who tries to start such a group is told the study is full while the study still shows places left. See Growing study places automatically.

Then publish the study as normal.

Work completed before the review existed

When you create a review batch for a source that already has completed work, that work is brought in automatically. The review dataset fills over a short while with one datapoint for each qualifying submission, and then keeps growing as new submissions are sampled.

  • If you set study_id, only that study’s submissions are enrolled. Without it, every study on the source batch is.
  • Reading the review batch shows its datasets[].total_datapoint_count, which is the number of items enrolled so far.

When the source study is completed, the review starts winding down. Submissions that were still in progress can be sampled for a short while, and the review ends once nothing is waiting to be reviewed. If the source study becomes active again, the review resumes.

Changing the questions

Change the questions with PATCH /api/v1/data-collection/batches/{batch_id} and a review object holding the new rubrics and justification, not with batch_items. Rubrics are frozen once a reviewer has responded, because earlier verdicts were given against them, and the request then returns 409 (REVIEW_RUBRICS_LOCKED). Agree the questions with the people who will use the scores before you publish.

What a reviewer sees and does

For each item, the reviewer sees the annotator’s work in the layout the source batch used, with a Read-only label. Nothing in the source can be changed. A narration or audio recording plays back in the page.

Beside it is a form with your questions. The reviewer answers every question, adds a note if you turned the notes box on, and moves on. If a task group holds several items, the page says Review 1 of 3 and shows one item at a time, and each verdict is saved as the reviewer goes. After the last item, the submission is completed.

A reviewer is never shown work they did themselves.

Getting the results

Export the review batch with POST /api/v1/data-collection/batches/{batch_id}/export. Use the review study’s ID for study_id, since it is the study the reviewers answered under, not the source study. See Exporting batch results.

In the archive:

  • batch.json names the source batch in review_source_batch_id, and holds each question’s scoring_scheme and options.
  • A reviewer’s answer to a question has a value, the option they chose, and its label. participant_id is the reviewer.
  • Each task has a review_source naming the work it is a verdict on: source_parent_type, source_parent_id (the source batch) and source_submission_id.
  • To join a verdict to the work it scored, match review_source.source_submission_id to submission_id in the source batch’s responses-by-submission.jsonl. A source submission that was withdrawn or superseded is not in the source batch’s export.

Troubleshooting

What you seeWhyWhat to do
403 creating the review batchHuman review is not enabled for the workspaceSubmit a request to ask for access
400 UNREVIEWABLE_SOURCEThe source batch has an instruction type that cannot be reviewed, such as file_uploadChoose another source. Nothing was created
400 WORKSPACE_MISMATCHThe source batch is in a different workspaceCreate the review in the source’s workspace
404 SOURCE_NOT_FOUNDsource_batch_id does not name a batchCheck the ID
409 LINK_EXISTSThe source already has a review for this round. The message says which study it covers, or that it covers every studyUse the existing review batch if it is the review you want
Reviewers see “The study is now full” while places are leftThe study was created without increase_places_on_syncSubmit a request to have places added for the missing task groups, and set increase_places_on_sync on the study
A reviewer is refused the workThe reviewer annotated that work, or is not eligible for the review studyChoose reviewers who did not annotate the source
409 REVIEW_RUBRICS_LOCKEDReviewers have already respondedRubrics cannot change now
The review dataset has no datapointsThe source has no qualifying work yet, or the enrolling has not finishedWait a short while, and check that the source has completed submissions