pub trait Metric:
Send
+ Sync
+ 'static {
// Required methods
fn name(&self) -> &'static str;
fn score(
&self,
input: &str,
actual_output: &str,
expected_keywords: &[&str],
) -> f64;
}Expand description
Trait for evaluation metrics.