feedback
Create Feedback Template V2
Overview
Getting Started
SDK/API
- Python SDK Reference
- TypeScript SDK Reference
How-to Guides
- Overview
- Conversational AI
- Retrieval-Augmented Generation
- Agentic AI
Cookbooks
- Use Cases
- Features
Integrations
Concepts
- Metrics
- Projects
- Logging
- Datasets
- Annotations
- Experiments
- Playground
API Reference
- health
- auth
- evaluate
- observe
- protect
- trace
- log_stream
- experiment
- feedback
- API Reference
References
feedback
Create Feedback Template V2
POST
/
v2
/
projects
/
{project_id}
/
feedback
/
templates
curl --request POST \
--url https://api.galileo.ai/v2/projects/{project_id}/feedback/templates \
--header 'Content-Type: application/json' \
--header 'Galileo-API-Key: <api-key>' \
--data '{
"name": "creativity",
"criteria": "How creative was the response?",
"constraints": {
"feedback_type": "score",
"min": 1,
"max": 10
}
}'
{
"name": "<string>",
"include_explanation": true,
"criteria": "<string>",
"constraints": {
"feedback_type": "<string>"
},
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"position": 123,
"usage_count": 123
}
Authorizations
Path Parameters
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
curl --request POST \
--url https://api.galileo.ai/v2/projects/{project_id}/feedback/templates \
--header 'Content-Type: application/json' \
--header 'Galileo-API-Key: <api-key>' \
--data '{
"name": "creativity",
"criteria": "How creative was the response?",
"constraints": {
"feedback_type": "score",
"min": 1,
"max": 10
}
}'
{
"name": "<string>",
"include_explanation": true,
"criteria": "<string>",
"constraints": {
"feedback_type": "<string>"
},
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"position": 123,
"usage_count": 123
}