BaseEvaluator
class.
You can extend the BaseEvaluator class. See this example
You need to implement the following methods:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
BaseEvaluator
class.
You can extend the BaseEvaluator class. See this example
You need to implement the following methods:
@property
def _model(self):
# Which model was used for this evaluation
pass
@property
def name(self):
return "UpperCamelCaseName"
@property
def display_name(self):
return "Evaluation Display Name"
@property
def metric_ids(self) -> List[str]:
return [MetricType.PASSED.value]
@property
def default_function_arguments(self):
return {}
@property
def required_args(self):
# expects an array of strings from ["query", "context", "response", "expected_response", "text"]
pass
@property
def examples(self):
pass
def is_failure(self) -> Optional[bool]:
pass
def _evaluate(self, **kwargs) -> EvalResult:
pass