ℹ️ These docs are for the free version of Galileo. Documentation for current customers can be found here.
curl --request POST \
--url https://api.galileo.ai/v2/projects/{project_id}/annotation/templates \
--header 'Content-Type: application/json' \
--header 'Galileo-API-Key: <api-key>' \
--data '{
"name": "creativity",
"criteria": "How creative was the response?",
"constraints": {
"annotation_type": "score",
"min": 1,
"max": 10
}
}'
{
"name": "<string>",
"include_explanation": true,
"criteria": "<string>",
"constraints": {
"annotation_type": "<string>"
},
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"position": 123,
"usage_count": 123
}
curl --request POST \
--url https://api.galileo.ai/v2/projects/{project_id}/annotation/templates \
--header 'Content-Type: application/json' \
--header 'Galileo-API-Key: <api-key>' \
--data '{
"name": "creativity",
"criteria": "How creative was the response?",
"constraints": {
"annotation_type": "score",
"min": 1,
"max": 10
}
}'
{
"name": "<string>",
"include_explanation": true,
"criteria": "<string>",
"constraints": {
"annotation_type": "<string>"
},
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"position": 123,
"usage_count": 123
}
Successful Response
The response is of type object
.
Was this page helpful?