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 evaluatortest_*.py- Pytest test file(s) with@evaluation_testdecorated 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
PUTthe 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.
Documentation Index
Fetch the complete documentation index at: https://docs.fireworks.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication using your Fireworks API key. Format: Bearer <API_KEY>
Path Parameters
The Account Id
Response
A successful response.
STATE_UNSPECIFIED, ACTIVE, BUILDING, BUILD_FAILED Source information for the evaluator codebase.