Interface: Trainer
Interface representing a Trainer that evaluates a generation task.
Methods
evaluate()
evaluate(
task
,content
):Promise
<Evaluation
>
Evaluate a generation task and return an evaluation.
Parameters
• task: GenerationTask
The generation task to evaluate.
• content: string
The generated content.
Returns
Promise
<Evaluation
>
The evaluation of the generated content.