Endpoint
string
default:"POST"
POST
string
/v1/evaluator/Authentication
This endpoint requires API key authentication. Include your API key in the request headers:Request Body
string
required
Name for the evaluator
string
required
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
object
object
Python code configuration (required for PYTHON scoring type)
string
Python code that evaluates the response
object
LastMile configuration (required for LASTMILE scoring type)
Response
object
string | null
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