Skip to content

Example Sets

Example sets are collections of ground truth input/output pairs used to evaluate pipeline performance. They define the expected behavior of a pipeline and serve as the foundation for running evaluations.

  • Example Sets - Collections that define input/output schemas and contain multiple examples
  • Examples - Individual ground truth pairs within a set
  • Configurations - Versioned snapshots of the example set schema (append-only)

An example set consists of:

  • Name & Description - Human-readable identifiers
  • Inputs Schema - Schema defining what inputs examples will have
  • Outputs Schema - Schema defining expected outputs
  • Configuration - Pre-filled values and settings
  • Status - active or archived

Create an example set

Terminal window
curl -X POST https://api.catalyzed.ai/example-sets \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"teamId": "ZkoDMyjZZsXo4VAO_nJLk",
"name": "Document Summarization Examples",
"description": "Ground truth examples for document summarization pipeline",
"inputsSchema": {
"files": [],
"datasets": [],
"dataInputs": [
{
"id": "document",
"name": "Document Text",
"type": "string",
"required": true
}
]
},
"outputsSchema": {
"files": [],
"datasets": [],
"dataInputs": [
{
"id": "summary",
"name": "Summary",
"type": "string",
"required": true
}
]
}
}'

Response:

{
"exampleSetId": "KjR8I6rHBms3W4Qfa2-FN",
"teamId": "ZkoDMyjZZsXo4VAO_nJLk",
"name": "Document Summarization Examples",
"description": "Ground truth examples for document summarization pipeline",
"activeConfigurationId": "CfgABC123...",
"inputsSchema": { ... },
"outputsSchema": { ... },
"configuration": { ... },
"status": "active",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z",
"createdBy": "usr_abc123"
}

List example sets

Terminal window
curl "https://api.catalyzed.ai/example-sets?teamIds=ZkoDMyjZZsXo4VAO_nJLk" \
-H "Authorization: Bearer $API_TOKEN"
ParameterTypeDescription
exampleSetIdsstringComma-separated list of IDs
teamIdsstringComma-separated team IDs
namestringPartial match filter
statusstringactive or archived
pagenumberPage number (1-indexed)
pageSizenumberResults per page (1-100)
orderBystringcreatedAt, name, updatedAt, status
orderDirectionstringasc or desc

Get example set details

Terminal window
curl https://api.catalyzed.ai/example-sets/KjR8I6rHBms3W4Qfa2-FN \
-H "Authorization: Bearer $API_TOKEN"

Update metadata like name and description:

Update example set

Terminal window
curl -X PUT https://api.catalyzed.ai/example-sets/KjR8I6rHBms3W4Qfa2-FN \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Document Summarization Examples v2",
"description": "Updated ground truth examples"
}'

Example sets use append-only configuration versioning. When you need to update the schema, create a new configuration version:

Create new configuration version

Terminal window
curl -X POST https://api.catalyzed.ai/example-sets/KjR8I6rHBms3W4Qfa2-FN/configurations \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"inputsSchema": {
"files": [],
"datasets": [],
"dataInputs": [
{
"id": "document",
"name": "Document Text",
"type": "string",
"required": true
},
{
"id": "maxLength",
"name": "Max Summary Length",
"type": "number",
"required": false
}
]
},
"outputsSchema": {
"files": [],
"datasets": [],
"dataInputs": [
{
"id": "summary",
"name": "Summary",
"type": "string",
"required": true
}
]
},
"configuration": {},
"changeReason": "Added optional maxLength input parameter"
}'
Terminal window
curl "https://api.catalyzed.ai/example-sets/KjR8I6rHBms3W4Qfa2-FN/configurations" \
-H "Authorization: Bearer $API_TOKEN"

To roll back, set activeConfigurationId to a previous version:

Terminal window
curl -X PUT https://api.catalyzed.ai/example-sets/KjR8I6rHBms3W4Qfa2-FN \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"activeConfigurationId": "CfgPreviousVersion..."
}'
StatusDescription
activeExample set can be used for evaluations
archivedExample set is disabled

Archive example set

Terminal window
curl -X POST https://api.catalyzed.ai/example-sets/KjR8I6rHBms3W4Qfa2-FN/archive \
-H "Authorization: Bearer $API_TOKEN"
Terminal window
curl -X POST https://api.catalyzed.ai/example-sets/KjR8I6rHBms3W4Qfa2-FN/reactivate \
-H "Authorization: Bearer $API_TOKEN"

Delete example set

Terminal window
curl -X DELETE https://api.catalyzed.ai/example-sets/KjR8I6rHBms3W4Qfa2-FN \
-H "Authorization: Bearer $API_TOKEN"
FieldTypeDescription
exampleSetIdstringUnique identifier
teamIdstringTeam that owns this example set
namestringHuman-readable name (1-255 chars)
descriptionstringOptional description
activeConfigurationIdstringCurrently active configuration version
inputsSchemaobjectSchema for example inputs
outputsSchemaobjectSchema for expected outputs
configurationobjectPre-filled configuration values
statusstringactive or archived
createdAttimestampCreation time
updatedAttimestampLast modification time
createdBystringUser who created this example set