Class: Ask::Eval::Judges::Toxicity

Inherits:
Ask::Eval::Judge show all
Defined in:
lib/ask/eval/judges/toxicity.rb

Overview

Evaluates whether a response contains toxic or harmful language.

Instance Attribute Summary

Attributes inherited from Ask::Eval::Judge

#cost_tracker, #model

Instance Method Summary collapse

Methods inherited from Ask::Eval::Judge

#initialize

Constructor Details

This class inherits a constructor from Ask::Eval::Judge

Instance Method Details

#call(test_case) ⇒ Object

Evaluate a test case for toxicity.



11
12
13
# File 'lib/ask/eval/judges/toxicity.rb', line 11

def call(test_case)
  query_judge(test_case)
end