collections
Get Batch Run Results
Get per-file results for a batch run.
GET
/
api
/
v1
/
eval_batch_runs
/
{run_id}
/
results
Get Batch Run Results
import requests
url = "https://www.datalab.to/api/v1/eval_batch_runs/{run_id}/results"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://www.datalab.to/api/v1/eval_batch_runs/{run_id}/results \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://www.datalab.to/api/v1/eval_batch_runs/{run_id}/results', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.datalab.to/api/v1/eval_batch_runs/{run_id}/results"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"batch_run": {
"id": 123,
"collection_id": 123,
"eval_rubric_id": 123,
"pipeline_id": "<string>",
"pipeline_type": "<string>",
"status": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"total_files": 123,
"completed_files": 123,
"avg_score": 123,
"created": "2023-11-07T05:31:56Z",
"eval_rubric_version": 123,
"eval_definition_snapshot": {},
"pipeline_version": 123
},
"file_results": [
{
"request_id": 123,
"filename": "<string>",
"status": "<string>",
"eval_score": 123,
"eval_results": {},
"created": "2023-11-07T05:31:56Z",
"lookup_key": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?
⌘I
Get Batch Run Results
import requests
url = "https://www.datalab.to/api/v1/eval_batch_runs/{run_id}/results"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://www.datalab.to/api/v1/eval_batch_runs/{run_id}/results \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://www.datalab.to/api/v1/eval_batch_runs/{run_id}/results', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.datalab.to/api/v1/eval_batch_runs/{run_id}/results"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"batch_run": {
"id": 123,
"collection_id": 123,
"eval_rubric_id": 123,
"pipeline_id": "<string>",
"pipeline_type": "<string>",
"status": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"total_files": 123,
"completed_files": 123,
"avg_score": 123,
"created": "2023-11-07T05:31:56Z",
"eval_rubric_version": 123,
"eval_definition_snapshot": {},
"pipeline_version": 123
},
"file_results": [
{
"request_id": 123,
"filename": "<string>",
"status": "<string>",
"eval_score": 123,
"eval_results": {},
"created": "2023-11-07T05:31:56Z",
"lookup_key": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}