pub enum GenerationMetricType {
Show 14 variants
Fluency,
Coherence,
Relevance,
FactualAccuracy,
Diversity,
Conciseness,
Helpfulness,
BleuScore,
RougeScore,
BertScore,
Perplexity,
Toxicity,
Bias,
Hallucination,
}Expand description
Types of generation evaluation metrics
Variants§
Fluency
Text fluency and grammatical correctness
Coherence
Text coherence and logical flow
Relevance
Relevance to the query/context
FactualAccuracy
Factual accuracy
Diversity
Diversity and creativity
Conciseness
Conciseness (avoiding unnecessary verbosity)
Helpfulness
Helpfulness and informativeness
BleuScore
BLEU score (reference-based)
RougeScore
ROUGE score (reference-based)
BertScore
BERTScore (reference-based)
Perplexity
Perplexity (reference-free)
Toxicity
Toxicity detection
Bias
Bias detection
Hallucination
Hallucination detection
Trait Implementations§
Source§impl Clone for GenerationMetricType
impl Clone for GenerationMetricType
Source§fn clone(&self) -> GenerationMetricType
fn clone(&self) -> GenerationMetricType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenerationMetricType
impl Debug for GenerationMetricType
Source§impl PartialEq for GenerationMetricType
impl PartialEq for GenerationMetricType
impl Eq for GenerationMetricType
impl StructuralPartialEq for GenerationMetricType
Auto Trait Implementations§
impl Freeze for GenerationMetricType
impl RefUnwindSafe for GenerationMetricType
impl Send for GenerationMetricType
impl Sync for GenerationMetricType
impl Unpin for GenerationMetricType
impl UnwindSafe for GenerationMetricType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.