Online Tasks API
Creating an Evaluation Task
You can programmatically create an evaluation task using the CreateEvalTask
mutation. This allows you to set up evaluations based on your specific criteria for LLM applications.
Key Parameters:
modelId
: The unique identifier for your project.samplingRate
: Set the percentage of inputs the task will sample for evaluation.queryFilter
: Define conditions to filter which inputs are included in the evaluation.name
: The name of the evaluation task.templateEvaluators
: Settings for how the evaluation will be performed (e.g., evaluator name, template, rails, explanations).llmConfig
: Specify the LLM configuration, such as model provider and temperature settings.
Updating an Evaluation Task
To update an existing evaluation task, use the UpdateOnlineEvalTask
mutation. You can choose to modify any parameters you wish to update without needing to include parameters you want to leave unchanged.
Last updated