Skip to main content

Create a score config

POST 

/api/v1/evals/create-score-config

Creates a rating scale that gives scores a consistent interpretation across turns.

The following access conditions are preserved as declared intent and are not implemented by generated code: Authorized scoped domain action.

Use this in a guide: Review and score turns

Request​

Responses​

OK

Create a numeric scoring rubric ranging from zero to one.​

Section ID: DOC-IS-evaluation-api-createScoreConfig#example-evals-createScoreConfig-request

Request example

{
"name": "answer-quality",
"dataType": "SCORE_DATA_TYPE_NUMERIC",
"minValue": 0,
"maxValue": 1
}

Guide request for 1. Define the dimensions first. Replace example resource identifiers with your own authorized values.​

Section ID: DOC-IS-evaluation-api-createScoreConfig#example-cookbook-insights-evaluation-review-01-request

Request example

{
"name": "helpfulness",
"dataType": "SCORE_DATA_TYPE_NUMERIC",
"minValue": 1,
"maxValue": 5
}

Illustrative response shape; omitted default fields and actual outcomes depend on the operation.​

Section ID: DOC-IS-evaluation-api-createScoreConfig#example-evals-createScoreConfig-response

Response example

{
"configId": "example_123"
}

Document ID: DOC-IS-evaluation-api-createScoreConfig. Section identities and revisions.

SectionStable reference
Create a score configDOC-IS-evaluation-api-createScoreConfig#overview
RequestDOC-IS-evaluation-api-createScoreConfig#request
ResponsesDOC-IS-evaluation-api-createScoreConfig#responses