gateway.openapi_Gateway
Create Evaluator
Creates a custom evaluator for scoring model outputs. Evaluators use the Eval Protocol to define test cases, run model inference, and score responses. They are used with evaluation jobs and Reinforcement Fine-Tuning (RFT).
Source Code Requirements
Your project should contain:
- requirements.txt - Python dependencies for your evaluator
- test_*.py - Pytest test file(s) with @evaluation_test decorated functions
- Any additional code/modules your evaluator needs
Workflow
Recommended: Use the ep upload CLI command to handle all these steps automatically.
If using the API directly:
- Call this endpoint to create the evaluator resource
- Package your source directory as a .tar.gz (respecting .gitignore)
- Call Get Evaluator Upload Endpoint to get a signed upload URL
- PUT the tar.gz file to the signed URL
- Call Validate Evaluator Upload to trigger server-side validation
- Poll Get Evaluator until ready
Once active, reference the evaluator in Create Evaluation Job or Create Reinforcement Fine-tuning Job.
post/v1/accounts/{account_id}/evaluatorsV2
Path parameters
account_idstring required
The Account Id
Request body
Response
A successful response.