lbb_evals
Label query results, freeze golden sets, replay evaluations, and review judge checks to validate and correct knowledge graph answers.
Instructions
Managed evals: the thumbs up / thumbs down of the graph, per result. A query run with request (lbb_query) records a trace with one item per result (hit or row); trace reads it back with the item ids. label marks one result (item + valid) or several (items) relevant or not; the labels become the golden's ground truth. golden freezes a query (every result it returns now is relevant). run replays every golden at the current commit: pass when every relevant result is back and no wrong one is; new results open a review trace. judge lets the platform's judge model (the hosted frontier model) label unlabeled results. summary, traces, goldens, results, and settings read state. Model checks: a judge model checks a sample of the model calls LBB makes for the graph (rerank, route, rewrite, fit, propose, label). checks_summary reads a month per job and model (checks, score, right, partly, wrong, reviews) and the judge's agreement with people; checks lists the month's checks, newest first, with the judge's verdict, score and reason and the ground truth (truth). review_check records a person's review of one check (call_id): agree=true keeps the judge's verdict; agree=false with verdict (and an optional score, reference and note) corrects it. The review becomes the call's ground truth, so show the check to the user and review only what the user confirmed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | label: who labels (an agent name). | |
| job | No | checks: only the checks of one job. | |
| item | No | label: the result id (a hit's `id`, or an item id from trace) to label with `valid`. | |
| note | No | label / review_check: why. review_check: at most 2,000 characters. | |
| after | No | checks: the next_after of the previous page. | |
| agree | No | review_check: true = the judge is right, false = correct it with verdict. | |
| graph | No | Graph to target; defaults to the connection's graph | |
| items | No | label: several results at once. | |
| limit | No | ||
| month | No | checks_summary / checks: the month, yyyy-mm (UTC). Defaults to the current month. | |
| score | No | review_check with agree=false: the right score, 0 to 1. Omit for the judge's score of that verdict. | |
| top_k | No | golden: the top_k of a search golden. | |
| valid | No | label: true = the result answers the request (thumbs up), false = it does not. | |
| action | Yes | ||
| detail | No | Response detail level. Defaults to compact. | |
| sparql | No | golden: the query to freeze (the search text for surface=search). | |
| call_id | No | review_check: the check's `call` id, from checks. | |
| request | No | golden: the user's words the query answers. | |
| surface | No | golden: which surface the query runs on (default sparql). | |
| verdict | No | checks: only the checks whose ground truth has this verdict. review_check with agree=false: the right verdict. | |
| reviewed | No | checks: true = only the checks a person reviewed, false = only the others. | |
| trace_id | No | trace / label / judge: the trace id from lbb_query. | |
| embedding | No | golden: the embedding, for surface=search. | |
| golden_id | No | accept / delete: the golden id. | |
| reference | No | review_check with agree=false: the right answer. A rerank or label check: {"grades": {"<hit id>": 0..3}}; a route or fit check: {"picks": {"<question id>": "<option>"}}. | |
| unlabeled | No | traces: only traces without a label. | |
| consistency | No | run / accept: strong reads the head, eventual the last published commit. |