Details
SDK Template Usage
You can create evaluations quickly by using templates.
Create Evaluations from Templates
For developers, the SDK provides a powerful way to create evaluations programmatically using a template.
1
Copy the Template ID from the Web
Navigate the “Templates” Tab on the Workspace, select the one you want to use, and copy the Template ID.
2
Initialize the SDK
Initialize with your own API key. For details, refer to Get API Key
python
3
Create an evaluation using the template
Use the Template ID to create a new evaluation.
python
4
4. Add Files to the Evaluation
Add files with relevant metadata to the evaluator.
Depending on whether your template’s evaluation type is a single or double, you should use proper function between
add_file
and add_files
5
Finalize the evaluation generation
Close the evaluator to finalize the setup.
python
Tip: Using the SDK is ideal for integrating evaluations into automated workflows.
Was this page helpful?