Evaluators
Create an Evaluator
Create a new evaluator in the workspace.
POST
cURL
Related guide: Evaluators guide. See the Evaluators guide for a walkthrough with examples.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
- LLM
- LLM Jury
- Python
Available options:
llm_eval Minimum string length:
1Pattern:
^[a-zA-Z0-9]([a-zA-Z0-9_-]*[a-zA-Z0-9])?$Available options:
single - Boolean
- Categorical
- Number
The type of output expected from the evaluator
Available options:
boolean, categorical, number, string Required range:
1 <= x <= 3Legacy alternative to project_id. Storage path whose first segment names the project that owns the evaluator. Mutually exclusive with project_id.
Example:
"Default"
Unique identifier of the project that owns the evaluator, as returned by GET /v2/projects. Mutually exclusive with path.
Minimum string length:
1Example:
"01JMDPA3QW5C1V0NJ1PW34T4E5"
Response
Successfully created an evaluator
- LLM
- JSON
- HTTP
- Python
- Function
- Ragas
- Typescript
Available options:
llm_eval Minimum string length:
1Pattern:
^[a-zA-Z0-9]([a-zA-Z0-9_-]*[a-zA-Z0-9])?$Available options:
single, jury Unique identifier of the project owning this evaluator.
- Boolean
- Categorical
- Number
Required range:
1 <= x <= 3