Templates API
Templates are pre-built eval suite configurations you can use to create a suite in one step. They are read-only and managed by LaunchGate.
Template endpoints are public — no API key required.
Available templates
| Slug | Name | Category |
|---|---|---|
rag-faithfulness | RAG Faithfulness | rag |
chatbot-tone-escalation | Chatbot Tone & Escalation | chatbot |
classification-routing | Classification & Routing | classification |
code-review | Code Review | code |
json-schema-extraction | JSON Schema Extraction | extraction |
llm-judge-general | LLM Judge (General) | general |
List templates
GET /v1/templatesReturns all available templates ordered by sort_order. No authentication required.
Response
{
"data": [
{
"id": "uuid",
"name": "RAG Faithfulness",
"slug": "rag-faithfulness",
"description": "Evaluate whether RAG responses are grounded in the retrieved context. Catches hallucinations, unsupported claims, and missing attributions.",
"category": "rag",
"sort_order": 1,
"cases": [
{
"name": "Grounded in context",
"description": "Response only contains information present in the retrieved context",
"scorer_type": "llm_judge",
"scorer_config": {
"rubric": "Score 1.0 if the response is entirely grounded in the provided context...",
"scale": [0, 1]
},
"threshold": 0.8
}
]
}
]
}Get template
GET /v1/templates/:slugReturns a single template by slug. No authentication required.
Returns 404 if the slug does not match any template.
Use a template
To create a suite from a template, use the create suite from template endpoint — it copies the template’s cases and scorers into a new suite in your project.
curl -X POST https://api.launchgate.ai/v1/projects/my-project/suites/from-template \
-H "Authorization: Bearer $LAUNCHGATE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"template_slug": "rag-faithfulness",
"name": "My RAG Checks"
}'Last updated on