Validate Llm Scorer Dataset
curl --request POST \
--url https://api.galileo.ai/v2/scorers/llm/validate/dataset \
--header 'Content-Type: application/json' \
--header 'Splunk-AO-API-Key: <api-key>' \
--data '
{
"query": "<string>",
"response": "<string>",
"chain_poll_template": {
"template": "<string>",
"metric_system_prompt": "<string>",
"metric_description": "<string>",
"value_field_name": "rating",
"explanation_field_name": "explanation",
"metric_few_shot_examples": [
{
"generation_prompt_and_response": "<string>",
"evaluating_response": "<string>"
}
],
"response_schema": {}
},
"scorer_configuration": {
"model_alias": "gpt-4.1-mini",
"num_judges": 3,
"output_type": "boolean",
"scoreable_node_types": [
"<string>"
],
"cot_enabled": false,
"ground_truth": false,
"multimodal_capabilities": []
},
"user_prompt": "<string>",
"dataset_id": "<string>",
"normalized_input": [
{
"text": "<string>",
"type": "text"
}
],
"dataset_version_index": 123,
"limit": 100,
"starting_token": 123,
"sort": {}
}
'import requests
url = "https://api.galileo.ai/v2/scorers/llm/validate/dataset"
payload = {
"query": "<string>",
"response": "<string>",
"chain_poll_template": {
"template": "<string>",
"metric_system_prompt": "<string>",
"metric_description": "<string>",
"value_field_name": "rating",
"explanation_field_name": "explanation",
"metric_few_shot_examples": [
{
"generation_prompt_and_response": "<string>",
"evaluating_response": "<string>"
}
],
"response_schema": {}
},
"scorer_configuration": {
"model_alias": "gpt-4.1-mini",
"num_judges": 3,
"output_type": "boolean",
"scoreable_node_types": ["<string>"],
"cot_enabled": False,
"ground_truth": False,
"multimodal_capabilities": []
},
"user_prompt": "<string>",
"dataset_id": "<string>",
"normalized_input": [
{
"text": "<string>",
"type": "text"
}
],
"dataset_version_index": 123,
"limit": 100,
"starting_token": 123,
"sort": {}
}
headers = {
"Splunk-AO-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Splunk-AO-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: '<string>',
response: '<string>',
chain_poll_template: {
template: '<string>',
metric_system_prompt: '<string>',
metric_description: '<string>',
value_field_name: 'rating',
explanation_field_name: 'explanation',
metric_few_shot_examples: [{generation_prompt_and_response: '<string>', evaluating_response: '<string>'}],
response_schema: {}
},
scorer_configuration: {
model_alias: 'gpt-4.1-mini',
num_judges: 3,
output_type: 'boolean',
scoreable_node_types: ['<string>'],
cot_enabled: false,
ground_truth: false,
multimodal_capabilities: []
},
user_prompt: '<string>',
dataset_id: '<string>',
normalized_input: [{text: '<string>', type: 'text'}],
dataset_version_index: 123,
limit: 100,
starting_token: 123,
sort: {}
})
};
fetch('https://api.galileo.ai/v2/scorers/llm/validate/dataset', 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.galileo.ai/v2/scorers/llm/validate/dataset",
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([
'query' => '<string>',
'response' => '<string>',
'chain_poll_template' => [
'template' => '<string>',
'metric_system_prompt' => '<string>',
'metric_description' => '<string>',
'value_field_name' => 'rating',
'explanation_field_name' => 'explanation',
'metric_few_shot_examples' => [
[
'generation_prompt_and_response' => '<string>',
'evaluating_response' => '<string>'
]
],
'response_schema' => [
]
],
'scorer_configuration' => [
'model_alias' => 'gpt-4.1-mini',
'num_judges' => 3,
'output_type' => 'boolean',
'scoreable_node_types' => [
'<string>'
],
'cot_enabled' => false,
'ground_truth' => false,
'multimodal_capabilities' => [
]
],
'user_prompt' => '<string>',
'dataset_id' => '<string>',
'normalized_input' => [
[
'text' => '<string>',
'type' => 'text'
]
],
'dataset_version_index' => 123,
'limit' => 100,
'starting_token' => 123,
'sort' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Splunk-AO-API-Key: <api-key>"
],
]);
$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.galileo.ai/v2/scorers/llm/validate/dataset"
payload := strings.NewReader("{\n \"query\": \"<string>\",\n \"response\": \"<string>\",\n \"chain_poll_template\": {\n \"template\": \"<string>\",\n \"metric_system_prompt\": \"<string>\",\n \"metric_description\": \"<string>\",\n \"value_field_name\": \"rating\",\n \"explanation_field_name\": \"explanation\",\n \"metric_few_shot_examples\": [\n {\n \"generation_prompt_and_response\": \"<string>\",\n \"evaluating_response\": \"<string>\"\n }\n ],\n \"response_schema\": {}\n },\n \"scorer_configuration\": {\n \"model_alias\": \"gpt-4.1-mini\",\n \"num_judges\": 3,\n \"output_type\": \"boolean\",\n \"scoreable_node_types\": [\n \"<string>\"\n ],\n \"cot_enabled\": false,\n \"ground_truth\": false,\n \"multimodal_capabilities\": []\n },\n \"user_prompt\": \"<string>\",\n \"dataset_id\": \"<string>\",\n \"normalized_input\": [\n {\n \"text\": \"<string>\",\n \"type\": \"text\"\n }\n ],\n \"dataset_version_index\": 123,\n \"limit\": 100,\n \"starting_token\": 123,\n \"sort\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Splunk-AO-API-Key", "<api-key>")
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.galileo.ai/v2/scorers/llm/validate/dataset")
.header("Splunk-AO-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"<string>\",\n \"response\": \"<string>\",\n \"chain_poll_template\": {\n \"template\": \"<string>\",\n \"metric_system_prompt\": \"<string>\",\n \"metric_description\": \"<string>\",\n \"value_field_name\": \"rating\",\n \"explanation_field_name\": \"explanation\",\n \"metric_few_shot_examples\": [\n {\n \"generation_prompt_and_response\": \"<string>\",\n \"evaluating_response\": \"<string>\"\n }\n ],\n \"response_schema\": {}\n },\n \"scorer_configuration\": {\n \"model_alias\": \"gpt-4.1-mini\",\n \"num_judges\": 3,\n \"output_type\": \"boolean\",\n \"scoreable_node_types\": [\n \"<string>\"\n ],\n \"cot_enabled\": false,\n \"ground_truth\": false,\n \"multimodal_capabilities\": []\n },\n \"user_prompt\": \"<string>\",\n \"dataset_id\": \"<string>\",\n \"normalized_input\": [\n {\n \"text\": \"<string>\",\n \"type\": \"text\"\n }\n ],\n \"dataset_version_index\": 123,\n \"limit\": 100,\n \"starting_token\": 123,\n \"sort\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.galileo.ai/v2/scorers/llm/validate/dataset")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Splunk-AO-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"<string>\",\n \"response\": \"<string>\",\n \"chain_poll_template\": {\n \"template\": \"<string>\",\n \"metric_system_prompt\": \"<string>\",\n \"metric_description\": \"<string>\",\n \"value_field_name\": \"rating\",\n \"explanation_field_name\": \"explanation\",\n \"metric_few_shot_examples\": [\n {\n \"generation_prompt_and_response\": \"<string>\",\n \"evaluating_response\": \"<string>\"\n }\n ],\n \"response_schema\": {}\n },\n \"scorer_configuration\": {\n \"model_alias\": \"gpt-4.1-mini\",\n \"num_judges\": 3,\n \"output_type\": \"boolean\",\n \"scoreable_node_types\": [\n \"<string>\"\n ],\n \"cot_enabled\": false,\n \"ground_truth\": false,\n \"multimodal_capabilities\": []\n },\n \"user_prompt\": \"<string>\",\n \"dataset_id\": \"<string>\",\n \"normalized_input\": [\n {\n \"text\": \"<string>\",\n \"type\": \"text\"\n }\n ],\n \"dataset_version_index\": 123,\n \"limit\": 100,\n \"starting_token\": 123,\n \"sort\": {}\n}"
response = http.request(request)
puts response.read_body{
"metrics_experiment_id": "<string>",
"project_id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}data
Validate Llm Scorer Dataset
POST
/
v2
/
scorers
/
llm
/
validate
/
dataset
Validate Llm Scorer Dataset
curl --request POST \
--url https://api.galileo.ai/v2/scorers/llm/validate/dataset \
--header 'Content-Type: application/json' \
--header 'Splunk-AO-API-Key: <api-key>' \
--data '
{
"query": "<string>",
"response": "<string>",
"chain_poll_template": {
"template": "<string>",
"metric_system_prompt": "<string>",
"metric_description": "<string>",
"value_field_name": "rating",
"explanation_field_name": "explanation",
"metric_few_shot_examples": [
{
"generation_prompt_and_response": "<string>",
"evaluating_response": "<string>"
}
],
"response_schema": {}
},
"scorer_configuration": {
"model_alias": "gpt-4.1-mini",
"num_judges": 3,
"output_type": "boolean",
"scoreable_node_types": [
"<string>"
],
"cot_enabled": false,
"ground_truth": false,
"multimodal_capabilities": []
},
"user_prompt": "<string>",
"dataset_id": "<string>",
"normalized_input": [
{
"text": "<string>",
"type": "text"
}
],
"dataset_version_index": 123,
"limit": 100,
"starting_token": 123,
"sort": {}
}
'import requests
url = "https://api.galileo.ai/v2/scorers/llm/validate/dataset"
payload = {
"query": "<string>",
"response": "<string>",
"chain_poll_template": {
"template": "<string>",
"metric_system_prompt": "<string>",
"metric_description": "<string>",
"value_field_name": "rating",
"explanation_field_name": "explanation",
"metric_few_shot_examples": [
{
"generation_prompt_and_response": "<string>",
"evaluating_response": "<string>"
}
],
"response_schema": {}
},
"scorer_configuration": {
"model_alias": "gpt-4.1-mini",
"num_judges": 3,
"output_type": "boolean",
"scoreable_node_types": ["<string>"],
"cot_enabled": False,
"ground_truth": False,
"multimodal_capabilities": []
},
"user_prompt": "<string>",
"dataset_id": "<string>",
"normalized_input": [
{
"text": "<string>",
"type": "text"
}
],
"dataset_version_index": 123,
"limit": 100,
"starting_token": 123,
"sort": {}
}
headers = {
"Splunk-AO-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Splunk-AO-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: '<string>',
response: '<string>',
chain_poll_template: {
template: '<string>',
metric_system_prompt: '<string>',
metric_description: '<string>',
value_field_name: 'rating',
explanation_field_name: 'explanation',
metric_few_shot_examples: [{generation_prompt_and_response: '<string>', evaluating_response: '<string>'}],
response_schema: {}
},
scorer_configuration: {
model_alias: 'gpt-4.1-mini',
num_judges: 3,
output_type: 'boolean',
scoreable_node_types: ['<string>'],
cot_enabled: false,
ground_truth: false,
multimodal_capabilities: []
},
user_prompt: '<string>',
dataset_id: '<string>',
normalized_input: [{text: '<string>', type: 'text'}],
dataset_version_index: 123,
limit: 100,
starting_token: 123,
sort: {}
})
};
fetch('https://api.galileo.ai/v2/scorers/llm/validate/dataset', 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.galileo.ai/v2/scorers/llm/validate/dataset",
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([
'query' => '<string>',
'response' => '<string>',
'chain_poll_template' => [
'template' => '<string>',
'metric_system_prompt' => '<string>',
'metric_description' => '<string>',
'value_field_name' => 'rating',
'explanation_field_name' => 'explanation',
'metric_few_shot_examples' => [
[
'generation_prompt_and_response' => '<string>',
'evaluating_response' => '<string>'
]
],
'response_schema' => [
]
],
'scorer_configuration' => [
'model_alias' => 'gpt-4.1-mini',
'num_judges' => 3,
'output_type' => 'boolean',
'scoreable_node_types' => [
'<string>'
],
'cot_enabled' => false,
'ground_truth' => false,
'multimodal_capabilities' => [
]
],
'user_prompt' => '<string>',
'dataset_id' => '<string>',
'normalized_input' => [
[
'text' => '<string>',
'type' => 'text'
]
],
'dataset_version_index' => 123,
'limit' => 100,
'starting_token' => 123,
'sort' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Splunk-AO-API-Key: <api-key>"
],
]);
$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.galileo.ai/v2/scorers/llm/validate/dataset"
payload := strings.NewReader("{\n \"query\": \"<string>\",\n \"response\": \"<string>\",\n \"chain_poll_template\": {\n \"template\": \"<string>\",\n \"metric_system_prompt\": \"<string>\",\n \"metric_description\": \"<string>\",\n \"value_field_name\": \"rating\",\n \"explanation_field_name\": \"explanation\",\n \"metric_few_shot_examples\": [\n {\n \"generation_prompt_and_response\": \"<string>\",\n \"evaluating_response\": \"<string>\"\n }\n ],\n \"response_schema\": {}\n },\n \"scorer_configuration\": {\n \"model_alias\": \"gpt-4.1-mini\",\n \"num_judges\": 3,\n \"output_type\": \"boolean\",\n \"scoreable_node_types\": [\n \"<string>\"\n ],\n \"cot_enabled\": false,\n \"ground_truth\": false,\n \"multimodal_capabilities\": []\n },\n \"user_prompt\": \"<string>\",\n \"dataset_id\": \"<string>\",\n \"normalized_input\": [\n {\n \"text\": \"<string>\",\n \"type\": \"text\"\n }\n ],\n \"dataset_version_index\": 123,\n \"limit\": 100,\n \"starting_token\": 123,\n \"sort\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Splunk-AO-API-Key", "<api-key>")
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.galileo.ai/v2/scorers/llm/validate/dataset")
.header("Splunk-AO-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"<string>\",\n \"response\": \"<string>\",\n \"chain_poll_template\": {\n \"template\": \"<string>\",\n \"metric_system_prompt\": \"<string>\",\n \"metric_description\": \"<string>\",\n \"value_field_name\": \"rating\",\n \"explanation_field_name\": \"explanation\",\n \"metric_few_shot_examples\": [\n {\n \"generation_prompt_and_response\": \"<string>\",\n \"evaluating_response\": \"<string>\"\n }\n ],\n \"response_schema\": {}\n },\n \"scorer_configuration\": {\n \"model_alias\": \"gpt-4.1-mini\",\n \"num_judges\": 3,\n \"output_type\": \"boolean\",\n \"scoreable_node_types\": [\n \"<string>\"\n ],\n \"cot_enabled\": false,\n \"ground_truth\": false,\n \"multimodal_capabilities\": []\n },\n \"user_prompt\": \"<string>\",\n \"dataset_id\": \"<string>\",\n \"normalized_input\": [\n {\n \"text\": \"<string>\",\n \"type\": \"text\"\n }\n ],\n \"dataset_version_index\": 123,\n \"limit\": 100,\n \"starting_token\": 123,\n \"sort\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.galileo.ai/v2/scorers/llm/validate/dataset")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Splunk-AO-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"<string>\",\n \"response\": \"<string>\",\n \"chain_poll_template\": {\n \"template\": \"<string>\",\n \"metric_system_prompt\": \"<string>\",\n \"metric_description\": \"<string>\",\n \"value_field_name\": \"rating\",\n \"explanation_field_name\": \"explanation\",\n \"metric_few_shot_examples\": [\n {\n \"generation_prompt_and_response\": \"<string>\",\n \"evaluating_response\": \"<string>\"\n }\n ],\n \"response_schema\": {}\n },\n \"scorer_configuration\": {\n \"model_alias\": \"gpt-4.1-mini\",\n \"num_judges\": 3,\n \"output_type\": \"boolean\",\n \"scoreable_node_types\": [\n \"<string>\"\n ],\n \"cot_enabled\": false,\n \"ground_truth\": false,\n \"multimodal_capabilities\": []\n },\n \"user_prompt\": \"<string>\",\n \"dataset_id\": \"<string>\",\n \"normalized_input\": [\n {\n \"text\": \"<string>\",\n \"type\": \"text\"\n }\n ],\n \"dataset_version_index\": 123,\n \"limit\": 100,\n \"starting_token\": 123,\n \"sort\": {}\n}"
response = http.request(request)
puts response.read_body{
"metrics_experiment_id": "<string>",
"project_id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
APIKeyHeaderOAuth2PasswordBearerHTTPBasic
Body
application/json
Request to validate a new LLM scorer against a dataset.
Template for a chainpoll metric prompt, containing all the info necessary to send a chainpoll prompt.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Optional multimodal content parts. When set, replaces the text-only query/response formatting in the validation job so that file content is passed through to the LLM.
A text segment within a message.
- TextContentPart
- FileContentPart
Show child attributes
Show child attributes
Maximum number of dataset rows to process.
Pagination offset into dataset rows.
Optional sort configuration for dataset rows.
Was this page helpful?
⌘I