Endpoint
POST
/v1/evaluator/Authentication
This endpoint requires API key authentication. Include your API key in the request headers:Request Body
Name for the evaluator
Type of scoring. Options:
LLM-BOOLEAN: Binary true/false evaluationLLM-CHOICE: Multiple choice selectionLLM-RANGE: Numeric range scoringPYTHON: Custom Python code evaluationLASTMILE: LastMile framework integration
Python code configuration (required for PYTHON scoring type)
Python code that evaluates the response
LastMile configuration (required for LASTMILE scoring type)
Response
Created evaluator details
Unique identifier for the evaluator
Evaluator name
Type of scoring
LLM configuration
Code configuration
LastMile configuration
Organization ID
Creation timestamp
Last update timestamp
Error message if the request failed, null otherwise
Example Request - LLM Boolean Evaluator
Example Request - LLM Range Evaluator
Example Request - Python Evaluator
Example Response
Notes
- LLM evaluators use AI models to score responses automatically
- Python evaluators give you full control with custom code
- LastMile evaluators integrate with the LastMile evaluation framework
- You can test evaluators before creating them using the
/v1/evaluator/llm/testor/v1/evaluator/python/testendpoints