pub struct HallucinationScore {
pub proper_noun_score: f64,
pub unknown_word_score: f64,
pub number_mismatch_score: f64,
pub total_score: f64,
pub detected_hallucinations: Vec<String>,
}
Fields§
§proper_noun_score: f64
§unknown_word_score: f64
§number_mismatch_score: f64
§total_score: f64
§detected_hallucinations: Vec<String>
Trait Implementations§
Source§impl Debug for HallucinationScore
impl Debug for HallucinationScore
Source§impl<'de> Deserialize<'de> for HallucinationScore
impl<'de> Deserialize<'de> for HallucinationScore
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HallucinationScore
impl RefUnwindSafe for HallucinationScore
impl Send for HallucinationScore
impl Sync for HallucinationScore
impl Unpin for HallucinationScore
impl UnwindSafe for HallucinationScore
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