pub struct HallucinationVerificationResult {
pub entailment_prob: f64,
pub neutral_prob: f64,
pub contradiction_prob: f64,
pub hallucination_score: f64,
pub effective_threshold: f64,
pub synonym_coverage: f64,
pub entity_mismatch: bool,
pub is_hallucination: bool,
pub reason: Option<String>,
}Expand description
出力ハルシネーション検証結果。
Fields§
§entailment_prob: f64前提文に対する含意確率 $P(\text{Entailment} \mid S, c)$。
neutral_prob: f64中立確率 $P(\text{Neutral} \mid S, c)$。
contradiction_prob: f64矛盾確率 $P(\text{Contradiction} \mid S, c)$。
hallucination_score: f64ハルシネーションスコア $H(c \mid S) = 1.0 - P(\text{Entailment})$。
effective_threshold: f64動的補正後の実効閾値 $\tau_{\text{effective}}$。
synonym_coverage: f64同義語カバレッジ比率。
entity_mismatch: bool数値・固有表現不一致即死フラグが発火したか。
is_hallucination: boolハルシネーション (不整合) と判定されたか。
reason: Option<String>遮断または警告理由。
Trait Implementations§
Source§impl Clone for HallucinationVerificationResult
impl Clone for HallucinationVerificationResult
Source§fn clone(&self) -> HallucinationVerificationResult
fn clone(&self) -> HallucinationVerificationResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for HallucinationVerificationResult
impl<'de> Deserialize<'de> for HallucinationVerificationResult
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
impl StructuralPartialEq for HallucinationVerificationResult
Auto Trait Implementations§
impl Freeze for HallucinationVerificationResult
impl RefUnwindSafe for HallucinationVerificationResult
impl Send for HallucinationVerificationResult
impl Sync for HallucinationVerificationResult
impl Unpin for HallucinationVerificationResult
impl UnsafeUnpin for HallucinationVerificationResult
impl UnwindSafe for HallucinationVerificationResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more