Import eval_definition from a custom pipeline’s active version.
Python
import requests url = "https://www.datalab.to/api/v1/eval_rubrics/import_from_pipeline" payload = { "pipeline_id": "<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>" ] }
Custom pipeline ID (cp_XXXXX) to import eval_definition from
Successful Response
Was this page helpful?