Draft a judge rubric tailored to an adapted dataset
datasets.custom_evals.prepare(strdataset_id) -> CustomEvalPrepareResponse
POST/api/v1/datasets/{dataset_id}/custom-evals/prepare
Takes no body: samples the dataset’s own before/after pairs and rewrites the stock rubric around them, sizing the sample to what the dataset yields. Nothing is persisted and no judge tokens are spent — the returned judge_prompt is a suggestion to review and then POST to /datasets/{dataset_id}/custom-evals. Blocks for the full model round-trip; set a client timeout of several minutes.
Draft a judge rubric tailored to an adapted dataset
import os
from adaption import Adaption
client = Adaption(
api_key=os.environ.get("ADAPTION_API_KEY"), # This is the default and can be omitted
)
response = client.datasets.custom_evals.prepare(
"dataset_id",
)
print(response.judge_prompt){
"judge_prompt": "judge_prompt",
"adapted": true,
"sampled_rows": 0
}Returns Examples
{
"judge_prompt": "judge_prompt",
"adapted": true,
"sampled_rows": 0
}