VocalDocscontracts 1.65.0

Read a label

GET /v1/prompt-eval-suites/{prompt_eval_suite_id}/labels/{label_id}

PropertyValue
Operationget_prompt_eval_label
GroupPrompt evaluations and experiments
Scopeprompts:read
Route classread
IdempotencyNo Idempotency-Key
AuditNot audited: A metadata read; a label or a calibration holds ids, keys, verdict values and rates, never Call content.
Released in1.63.0
Phase 0 hostServed (the hosted api pins 1.65.0)

Answers one label of the suite (1.63.0).

Request

Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the prompts:read scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.

curl "$VOCAL_API/v1/prompt-eval-suites/pes_.../labels/pel_..." \
  -H "Authorization: Bearer $VOCAL_API_KEY"

Parameters

NameInTypeRequiredDescription
prompt_eval_suite_idpathPromptEvalSuiteIdyesThe id of an evaluation suite: pes_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.
label_idpathPromptEvalLabelIdyesThe id of a human label on one verdict of an evaluation run (1.63.0): pel_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.

Responses

StatusContent typeShapeError codes
200application/jsonPromptEvalLabel
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden
404application/jsonErrorEnvelopenot_found
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is PromptEvalLabel.

FieldTypeRequiredDescription
armPromptEvalArmyes
calibration_idPromptEvalCalibrationIdyes
call_idCallIdyesThe evaluation Call whose transcript was labelled.
created_atTimestampyes
created_byActorRefyes
entry_indexintegeryesThe sample entry it labels.
idPromptEvalLabelIdyes
itemsarray of PromptEvalLabelItemyes
object"prompt_eval_label"yes
repetitionintegeryes
run_idPromptEvalRunIdyes
scenario_idPromptEvalScenarioIdyes
scenario_revisionintegeryes
suite_idPromptEvalSuiteIdyes