Draw documents to label
Draws up to count documents to label, a random sample
stratified across the probability range, so the queue hands out
documents from every band, not just where most answers sit. Within a band, documents come in an order fixed
by seed, so the same state and seed give the same items. Documents
already labelled from the queue for their current answer, and those
leased to someone else, are skipped.
On a bool judgment with thresholds, half of each draw is split
evenly over the bands, and half goes to the bands at or above each
threshold, where the precision at the threshold is least certain:
more to bands with more answers, and to bands whose answers are
nearer even. Each band’s share counts the documents already
labelled or leased there. On a bool with features, the bands for
that half are of the fitted p the thresholds read; each item
still names the band of its raw value. A judgment without
thresholds, a choice and a score draw evenly. bands says how many
items came from each half; targets names the thresholds.
Each draw leases its documents for 7 days, so two people are not
given the same one. Post each label as an ordinary outcome with the
item’s queue_item_id: it counts as source: queue. Once an
epoch’s queue labels alone meet the calibration minimums, the epoch
is fitted on them (fitted_on: queue), weighted back to your real
traffic.
Drawing is one of the outcome tools, on the Team plan and above:
below it, plan_required. The preview (GET) is on every
plan. A judgment with a non-zero horizon has no queue
(invalid_request).
Authorizations
An organization API key. Keys carry a role (read_write or
read_only) and may be restricted to a namespace prefix such as
acme/*, or to one namespace such as acme/prod/tenant_1. A prefix
matches on a / boundary: acme/prod/tenant_1* covers
acme/prod/tenant_1 and everything under acme/prod/tenant_1/,
never acme/prod/tenant_12.
Headers
One key per logical request, reused only on its retries. A key
belongs to one request: within your organization, the same method,
path, query and body. For 24 hours after a successful response, a
request with the key and the same body gets that response back
verbatim, with Idempotent-Replayed: true, and runs nothing. Only a
successful response is kept, so the retry of a request that failed
runs again. While the first request runs or its response is kept,
the key with a different request is idempotency_key_reused (422).
A request sent while one with its key is still running is
rate_limited with Retry-After: 1, without running: retry it to
get the first one's response. In the rare case the key can't be
checked, the request runs as if it had none.
1 - 255Path Parameters
Body
Response
The items drawn and leased; none when nothing is available.
Documents drawn from the labelling queue and leased.