Simple pass or fail grader that returns 0 or 1.
eq
= Returns 1 if the input matches the reference (case-sensitive), 0 otherwiseneq
= Returns 1 if the input does not match the reference (case-sensitive), 0 otherwiselike
= Returns 1 if the input contains the reference (case-sensitive), 0 otherwiseilike
= Returns 1 if the input contains the reference (not case-sensitive), 0 otherwise{ "type": "string_check", "name": string, "operation": "eq" | "ne" | "like" | "ilike", "input": string, "reference": string, }
{ "type": "text_similarity", "name": string, "input": string, "reference": string, "pass_threshold": number, "evaluation_metric": "fuzzy_match" | "bleu" | "gleu" | "meteor" | "cosine" | "rouge_1" | "rouge_2" | "rouge_3" | "rouge_4" | "rouge_5" | "rouge_l" }