pub struct HallucinationVerifierConfig {
pub enabled: bool,
pub base_threshold: f64,
pub synonym_margin_beta: f64,
pub enable_entity_mismatch_check: bool,
}Expand description
ハルシネーション検証設定構造体。
Fields§
§enabled: boolハルシネーション検証を有効にするか。
base_threshold: f64基準要求含意確率閾値 $\tau_0$ (デフォルト: 0.60)。 含意確率 $P(\text{Entailment}) < \tau_{\text{effective}}$ でハルシネーションと判定。
synonym_margin_beta: f64同義語カバレッジによる緩和係数 $\beta$ (デフォルト: 0.20)。
enable_entity_mismatch_check: bool数値・エンティティ不一致時の即時遮断フラグを有効にするか。
Trait Implementations§
Source§impl Clone for HallucinationVerifierConfig
impl Clone for HallucinationVerifierConfig
Source§fn clone(&self) -> HallucinationVerifierConfig
fn clone(&self) -> HallucinationVerifierConfig
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 Debug for HallucinationVerifierConfig
impl Debug for HallucinationVerifierConfig
impl StructuralPartialEq for HallucinationVerifierConfig
Auto Trait Implementations§
impl Freeze for HallucinationVerifierConfig
impl RefUnwindSafe for HallucinationVerifierConfig
impl Send for HallucinationVerifierConfig
impl Sync for HallucinationVerifierConfig
impl Unpin for HallucinationVerifierConfig
impl UnsafeUnpin for HallucinationVerifierConfig
impl UnwindSafe for HallucinationVerifierConfig
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> 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