- The
data
is the object provided to this function. - You return the correct object format that this method expects.
Checking if the response starts with a certain phrase
Checking if the response has certain keywords
Checking if the response contains harmful words
Implementing a JavaScript Evaluator
1
Select the JavaScript evaluator from the “Add evaluator” action menu.

2
Define JavaScript code to evaluate the LLM response against your linked dataset.

3
Run the evaluation and see the results.
