curl --request POST \
--url https://api.example.com/v2/{entity}/{project}/eval_results/query \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"evaluation_call_ids": [
"<string>"
],
"evaluation_run_ids": [
"<string>"
],
"filters": [
{
"query": {
"$expr": {
"$and": [
{
"$literal": "<string>"
}
]
}
},
"evaluation_call_id": "<string>"
}
],
"include_predict_and_score_children": true,
"include_raw_data_rows": false,
"include_rows": true,
"include_summary": false,
"limit": 123,
"offset": 0,
"require_intersection": false,
"resolve_row_refs": false,
"sort_by": [
{
"field": "<string>",
"evaluation_call_id": "<string>",
"mode": "value"
}
],
"summary_require_intersection": true
}
'import requests
url = "https://api.example.com/v2/{entity}/{project}/eval_results/query"
payload = {
"evaluation_call_ids": ["<string>"],
"evaluation_run_ids": ["<string>"],
"filters": [
{
"query": { "$expr": { "$and": [{ "$literal": "<string>" }] } },
"evaluation_call_id": "<string>"
}
],
"include_predict_and_score_children": True,
"include_raw_data_rows": False,
"include_rows": True,
"include_summary": False,
"limit": 123,
"offset": 0,
"require_intersection": False,
"resolve_row_refs": False,
"sort_by": [
{
"field": "<string>",
"evaluation_call_id": "<string>",
"mode": "value"
}
],
"summary_require_intersection": True
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
evaluation_call_ids: ['<string>'],
evaluation_run_ids: ['<string>'],
filters: [
{
query: {$expr: {$and: [{$literal: '<string>'}]}},
evaluation_call_id: '<string>'
}
],
include_predict_and_score_children: true,
include_raw_data_rows: false,
include_rows: true,
include_summary: false,
limit: 123,
offset: 0,
require_intersection: false,
resolve_row_refs: false,
sort_by: [{field: '<string>', evaluation_call_id: '<string>', mode: 'value'}],
summary_require_intersection: true
})
};
fetch('https://api.example.com/v2/{entity}/{project}/eval_results/query', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v2/{entity}/{project}/eval_results/query",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'evaluation_call_ids' => [
'<string>'
],
'evaluation_run_ids' => [
'<string>'
],
'filters' => [
[
'query' => [
'$expr' => [
'$and' => [
[
'$literal' => '<string>'
]
]
]
],
'evaluation_call_id' => '<string>'
]
],
'include_predict_and_score_children' => true,
'include_raw_data_rows' => false,
'include_rows' => true,
'include_summary' => false,
'limit' => 123,
'offset' => 0,
'require_intersection' => false,
'resolve_row_refs' => false,
'sort_by' => [
[
'field' => '<string>',
'evaluation_call_id' => '<string>',
'mode' => 'value'
]
],
'summary_require_intersection' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v2/{entity}/{project}/eval_results/query"
payload := strings.NewReader("{\n \"evaluation_call_ids\": [\n \"<string>\"\n ],\n \"evaluation_run_ids\": [\n \"<string>\"\n ],\n \"filters\": [\n {\n \"query\": {\n \"$expr\": {\n \"$and\": [\n {\n \"$literal\": \"<string>\"\n }\n ]\n }\n },\n \"evaluation_call_id\": \"<string>\"\n }\n ],\n \"include_predict_and_score_children\": true,\n \"include_raw_data_rows\": false,\n \"include_rows\": true,\n \"include_summary\": false,\n \"limit\": 123,\n \"offset\": 0,\n \"require_intersection\": false,\n \"resolve_row_refs\": false,\n \"sort_by\": [\n {\n \"field\": \"<string>\",\n \"evaluation_call_id\": \"<string>\",\n \"mode\": \"value\"\n }\n ],\n \"summary_require_intersection\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v2/{entity}/{project}/eval_results/query")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"evaluation_call_ids\": [\n \"<string>\"\n ],\n \"evaluation_run_ids\": [\n \"<string>\"\n ],\n \"filters\": [\n {\n \"query\": {\n \"$expr\": {\n \"$and\": [\n {\n \"$literal\": \"<string>\"\n }\n ]\n }\n },\n \"evaluation_call_id\": \"<string>\"\n }\n ],\n \"include_predict_and_score_children\": true,\n \"include_raw_data_rows\": false,\n \"include_rows\": true,\n \"include_summary\": false,\n \"limit\": 123,\n \"offset\": 0,\n \"require_intersection\": false,\n \"resolve_row_refs\": false,\n \"sort_by\": [\n {\n \"field\": \"<string>\",\n \"evaluation_call_id\": \"<string>\",\n \"mode\": \"value\"\n }\n ],\n \"summary_require_intersection\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v2/{entity}/{project}/eval_results/query")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"evaluation_call_ids\": [\n \"<string>\"\n ],\n \"evaluation_run_ids\": [\n \"<string>\"\n ],\n \"filters\": [\n {\n \"query\": {\n \"$expr\": {\n \"$and\": [\n {\n \"$literal\": \"<string>\"\n }\n ]\n }\n },\n \"evaluation_call_id\": \"<string>\"\n }\n ],\n \"include_predict_and_score_children\": true,\n \"include_raw_data_rows\": false,\n \"include_rows\": true,\n \"include_summary\": false,\n \"limit\": 123,\n \"offset\": 0,\n \"require_intersection\": false,\n \"resolve_row_refs\": false,\n \"sort_by\": [\n {\n \"field\": \"<string>\",\n \"evaluation_call_id\": \"<string>\",\n \"mode\": \"value\"\n }\n ],\n \"summary_require_intersection\": true\n}"
response = http.request(request)
puts response.read_body{
"rows": [
{
"row_digest": "<string>",
"evaluations": [
{
"evaluation_call_id": "<string>",
"trials": [
{
"predict_and_score_call_id": "<string>",
"genai_span_ref": [
{
"span_id": "<string>",
"trace_id": "<string>"
}
],
"model_latency_seconds": 123,
"model_output": null,
"predict_call_id": "<string>",
"scorer_call_ids": {},
"scores": {},
"total_tokens": 123
}
]
}
],
"raw_data_row": null
}
],
"total_rows": 123,
"summary": {
"evaluations": [
{
"evaluation_call_id": "<string>",
"display_name": "<string>",
"evaluation_ref": "<string>",
"model_ref": "<string>",
"scorer_stats": [
{
"scorer_key": "<string>",
"numeric_count": 0,
"numeric_mean": 123,
"pass_known_count": 0,
"pass_rate": 123,
"pass_signal_coverage": 123,
"pass_true_count": 0,
"path": "<string>",
"trial_count": 0
}
],
"started_at": "<string>",
"trace_id": "<string>",
"trial_count": 0
}
],
"row_count": 0
},
"warnings": [
"<string>"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Eval 結果クエリ
1 つ以上の評価について、グループ化された評価結果行を取得します。
curl --request POST \
--url https://api.example.com/v2/{entity}/{project}/eval_results/query \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"evaluation_call_ids": [
"<string>"
],
"evaluation_run_ids": [
"<string>"
],
"filters": [
{
"query": {
"$expr": {
"$and": [
{
"$literal": "<string>"
}
]
}
},
"evaluation_call_id": "<string>"
}
],
"include_predict_and_score_children": true,
"include_raw_data_rows": false,
"include_rows": true,
"include_summary": false,
"limit": 123,
"offset": 0,
"require_intersection": false,
"resolve_row_refs": false,
"sort_by": [
{
"field": "<string>",
"evaluation_call_id": "<string>",
"mode": "value"
}
],
"summary_require_intersection": true
}
'import requests
url = "https://api.example.com/v2/{entity}/{project}/eval_results/query"
payload = {
"evaluation_call_ids": ["<string>"],
"evaluation_run_ids": ["<string>"],
"filters": [
{
"query": { "$expr": { "$and": [{ "$literal": "<string>" }] } },
"evaluation_call_id": "<string>"
}
],
"include_predict_and_score_children": True,
"include_raw_data_rows": False,
"include_rows": True,
"include_summary": False,
"limit": 123,
"offset": 0,
"require_intersection": False,
"resolve_row_refs": False,
"sort_by": [
{
"field": "<string>",
"evaluation_call_id": "<string>",
"mode": "value"
}
],
"summary_require_intersection": True
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
evaluation_call_ids: ['<string>'],
evaluation_run_ids: ['<string>'],
filters: [
{
query: {$expr: {$and: [{$literal: '<string>'}]}},
evaluation_call_id: '<string>'
}
],
include_predict_and_score_children: true,
include_raw_data_rows: false,
include_rows: true,
include_summary: false,
limit: 123,
offset: 0,
require_intersection: false,
resolve_row_refs: false,
sort_by: [{field: '<string>', evaluation_call_id: '<string>', mode: 'value'}],
summary_require_intersection: true
})
};
fetch('https://api.example.com/v2/{entity}/{project}/eval_results/query', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v2/{entity}/{project}/eval_results/query",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'evaluation_call_ids' => [
'<string>'
],
'evaluation_run_ids' => [
'<string>'
],
'filters' => [
[
'query' => [
'$expr' => [
'$and' => [
[
'$literal' => '<string>'
]
]
]
],
'evaluation_call_id' => '<string>'
]
],
'include_predict_and_score_children' => true,
'include_raw_data_rows' => false,
'include_rows' => true,
'include_summary' => false,
'limit' => 123,
'offset' => 0,
'require_intersection' => false,
'resolve_row_refs' => false,
'sort_by' => [
[
'field' => '<string>',
'evaluation_call_id' => '<string>',
'mode' => 'value'
]
],
'summary_require_intersection' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v2/{entity}/{project}/eval_results/query"
payload := strings.NewReader("{\n \"evaluation_call_ids\": [\n \"<string>\"\n ],\n \"evaluation_run_ids\": [\n \"<string>\"\n ],\n \"filters\": [\n {\n \"query\": {\n \"$expr\": {\n \"$and\": [\n {\n \"$literal\": \"<string>\"\n }\n ]\n }\n },\n \"evaluation_call_id\": \"<string>\"\n }\n ],\n \"include_predict_and_score_children\": true,\n \"include_raw_data_rows\": false,\n \"include_rows\": true,\n \"include_summary\": false,\n \"limit\": 123,\n \"offset\": 0,\n \"require_intersection\": false,\n \"resolve_row_refs\": false,\n \"sort_by\": [\n {\n \"field\": \"<string>\",\n \"evaluation_call_id\": \"<string>\",\n \"mode\": \"value\"\n }\n ],\n \"summary_require_intersection\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v2/{entity}/{project}/eval_results/query")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"evaluation_call_ids\": [\n \"<string>\"\n ],\n \"evaluation_run_ids\": [\n \"<string>\"\n ],\n \"filters\": [\n {\n \"query\": {\n \"$expr\": {\n \"$and\": [\n {\n \"$literal\": \"<string>\"\n }\n ]\n }\n },\n \"evaluation_call_id\": \"<string>\"\n }\n ],\n \"include_predict_and_score_children\": true,\n \"include_raw_data_rows\": false,\n \"include_rows\": true,\n \"include_summary\": false,\n \"limit\": 123,\n \"offset\": 0,\n \"require_intersection\": false,\n \"resolve_row_refs\": false,\n \"sort_by\": [\n {\n \"field\": \"<string>\",\n \"evaluation_call_id\": \"<string>\",\n \"mode\": \"value\"\n }\n ],\n \"summary_require_intersection\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v2/{entity}/{project}/eval_results/query")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"evaluation_call_ids\": [\n \"<string>\"\n ],\n \"evaluation_run_ids\": [\n \"<string>\"\n ],\n \"filters\": [\n {\n \"query\": {\n \"$expr\": {\n \"$and\": [\n {\n \"$literal\": \"<string>\"\n }\n ]\n }\n },\n \"evaluation_call_id\": \"<string>\"\n }\n ],\n \"include_predict_and_score_children\": true,\n \"include_raw_data_rows\": false,\n \"include_rows\": true,\n \"include_summary\": false,\n \"limit\": 123,\n \"offset\": 0,\n \"require_intersection\": false,\n \"resolve_row_refs\": false,\n \"sort_by\": [\n {\n \"field\": \"<string>\",\n \"evaluation_call_id\": \"<string>\",\n \"mode\": \"value\"\n }\n ],\n \"summary_require_intersection\": true\n}"
response = http.request(request)
puts response.read_body{
"rows": [
{
"row_digest": "<string>",
"evaluations": [
{
"evaluation_call_id": "<string>",
"trials": [
{
"predict_and_score_call_id": "<string>",
"genai_span_ref": [
{
"span_id": "<string>",
"trace_id": "<string>"
}
],
"model_latency_seconds": 123,
"model_output": null,
"predict_call_id": "<string>",
"scorer_call_ids": {},
"scores": {},
"total_tokens": 123
}
]
}
],
"raw_data_row": null
}
],
"total_rows": 123,
"summary": {
"evaluations": [
{
"evaluation_call_id": "<string>",
"display_name": "<string>",
"evaluation_ref": "<string>",
"model_ref": "<string>",
"scorer_stats": [
{
"scorer_key": "<string>",
"numeric_count": 0,
"numeric_mean": 123,
"pass_known_count": 0,
"pass_rate": 123,
"pass_signal_coverage": 123,
"pass_true_count": 0,
"path": "<string>",
"trial_count": 0
}
],
"started_at": "<string>",
"trace_id": "<string>",
"trial_count": 0
}
],
"row_count": 0
},
"warnings": [
"<string>"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}承認
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
ボディ
含める評価ルート Call ID。
Evaluation Runs API の評価 Call ID のエイリアス。
グループ化された行に適用されるフィルターです。複数のフィルターは AND 条件で結合されます。
Show child attributes
Show child attributes
true の場合(デフォルト)、各 predict_and_score Call の子 Call(predict/score)を取得して、predict_call_id、scorer_call_ids、さらにより正確なレイテンシ/トークンデータを取得します。false の場合、これらのフィールドは predict_and_score Call 自体から導出されます(predict_call_id と scorer_call_ids は null/空になります)。
true の場合、各結果行の raw_data_row を設定します。インライン行は dict 値として返され、データセット参照行は、resolve_row_refs も true の場合を除き、ref 文字列として返されます。
true の場合、グループ化された行/試行データを rows に含め、要求された行レベル view の total_rows を計算します。
true の場合、集約された Scorer/評価の summary データを summary に含めます。
グループ化と積集合の後に適用されるオプションの行レベルのページ サイズ。
グループ化と積集合の後に適用されるオプションの行レベルのページ オフセット。
true の場合、要求されたすべての評価に存在する行のみを含めます。
true の場合(include_raw_data_rows=True が必要)、表のルックアップによってデータセット行の参照文字列を実際の行データに解決します。false の場合、データセット行 ref はそのまま返されます。
結果行の並べ替え指定です。サポートされるフィールド接頭辞: scores., inputs., outputs.。null の場合、行は row_digest の昇順で並べ替えられます。
Show child attributes
Show child attributes
summary セクションに対するオプションの積集合動作です。null の場合は、require_intersection の値が使用されます。