Optionalcriteria?: Criteria | Record<string, string>The "criteria" to insert into the prompt template used for evaluation. See the prompt at https://smith.langchain.com/hub/langchain-ai/criteria-evaluator for more information.
Optionalllm?: ToolkitThe language model to use as the evaluator, defaults to GPT-4
const evalConfig = {
evaluators: [Criteria("helpfulness")],
};
@example
```ts
const evalConfig = {
evaluators: [
Criteria({
"isCompliant": "Does the submission comply with the requirements of XYZ"
})
],
Configuration to load a "CriteriaEvalChain" evaluator, which prompts an LLM to determine whether the model's prediction complies with the provided criteria.