evals
Get Eval
The status of an Eval, each variant’s share of the differences, and each document.
GET
/
api
/
v1
/
evals
/
{eval_id}
Get Eval
import requests
url = "https://www.datalab.to/api/v1/evals/{eval_id}"
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/evals/{eval_id} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://www.datalab.to/api/v1/evals/{eval_id}', 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/evals/{eval_id}"
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))
}{
"eval_id": 123,
"pipeline_id": "<string>",
"pipeline_version": 123,
"collection_id": 123,
"file_ids": [
123
],
"status": "<string>",
"variants": [
{
"name": "<string>",
"steps": {},
"status": "<string>",
"share": 123,
"won": 123,
"decided": 123,
"documents_compared": 123,
"documents_total": 123,
"page_breaks_passed": 0,
"page_breaks_total": 0,
"convert_settings": {},
"extract_settings": {},
"undecided": 0,
"rate_per_1000_pages_cents": 123,
"seconds_per_page": 123,
"documents": [
{
"file_name": "<string>",
"status": "<string>",
"request_id": 123,
"file_id": 123,
"lookup_key": "<string>",
"share": 123,
"won": 0,
"decided": 0,
"undecided": 0
}
]
}
],
"created": "2023-11-07T05:31:56Z",
"pipeline_name": "<string>",
"compared_step": "convert",
"files": [
{
"file_id": 123,
"file_name": "<string>",
"comparison": "pending",
"comparison_error": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Response
Successful Response
Was this page helpful?
⌘I
Get Eval
import requests
url = "https://www.datalab.to/api/v1/evals/{eval_id}"
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/evals/{eval_id} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://www.datalab.to/api/v1/evals/{eval_id}', 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/evals/{eval_id}"
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))
}{
"eval_id": 123,
"pipeline_id": "<string>",
"pipeline_version": 123,
"collection_id": 123,
"file_ids": [
123
],
"status": "<string>",
"variants": [
{
"name": "<string>",
"steps": {},
"status": "<string>",
"share": 123,
"won": 123,
"decided": 123,
"documents_compared": 123,
"documents_total": 123,
"page_breaks_passed": 0,
"page_breaks_total": 0,
"convert_settings": {},
"extract_settings": {},
"undecided": 0,
"rate_per_1000_pages_cents": 123,
"seconds_per_page": 123,
"documents": [
{
"file_name": "<string>",
"status": "<string>",
"request_id": 123,
"file_id": 123,
"lookup_key": "<string>",
"share": 123,
"won": 0,
"decided": 0,
"undecided": 0
}
]
}
],
"created": "2023-11-07T05:31:56Z",
"pipeline_name": "<string>",
"compared_step": "convert",
"files": [
{
"file_id": 123,
"file_name": "<string>",
"comparison": "pending",
"comparison_error": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}