Datasets & Annotations
Build labeled datasets, annotate them with expected scores, and use them to calibrate evaluators.
Score configs
Calibration runs
from scorable import Scorable
client = Scorable()
dataset = client.datasets.create(name="Support quality calibration set", type="test")
item = client.datasets.add_item(
dataset.id,
request="My internet is not working.",
response="Check the cable, then run `ping 8.8.8.8` and share the results.",
)
client.annotations.create(dataset_item_id=item.id, value=0.9)
run = client.evaluators.calibrate_run("MY_EVALUATOR_ID", dataset_id=dataset.id)
# Poll client.calibration_runs.get(run.id) until completed, then:
print(run.metrics)
for result in client.calibration_runs.list_items(run.id):
print(result.human_value, result.evaluator_score, result.disagreement)Where the data comes from
Last updated