Create new eval rubric for the team.
Python
import requests url = "https://www.datalab.to/api/v1/eval_rubrics" payload = { "name": "<string>", "eval_definition": {}, "description": "<string>" } headers = { "X-API-Key": "<api-key>", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.text)
{ "id": 123, "name": "<string>", "description": "<string>", "eval_definition": {}, "source": "<string>", "source_pipeline_id": "<string>", "archived": true, "version": 123, "created": "2023-11-07T05:31:56Z", "updated": "2023-11-07T05:31:56Z", "version_history": [ "<unknown>" ] }
200
Evaluation definition JSON matching EvalDefinition schema
Successful Response
Was this page helpful?