pub struct MergeConfig {
pub semantic_threshold: f32,
pub text_threshold: f32,
}Expand description
When a new fact counts as a near duplicate of an active one under another
key. A threshold above 1.0 never matches; see MergeConfig::disabled.
Fields§
§semantic_threshold: f32Minimum cosine similarity when both sides have vectors from the same model. Defaults to the daemon’s restatement threshold.
text_threshold: f32Minimum share of words in common when they do not.
Implementations§
Source§impl MergeConfig
impl MergeConfig
Trait Implementations§
Source§impl Clone for MergeConfig
impl Clone for MergeConfig
impl Copy for MergeConfig
Source§impl Debug for MergeConfig
impl Debug for MergeConfig
Source§impl Default for MergeConfig
impl Default for MergeConfig
Source§impl PartialEq for MergeConfig
impl PartialEq for MergeConfig
impl StructuralPartialEq for MergeConfig
Auto Trait Implementations§
impl Forget for MergeConfig
impl Freeze for MergeConfig
impl Move for MergeConfig
impl RefUnwindSafe for MergeConfig
impl Send for MergeConfig
impl Sync for MergeConfig
impl Unpin for MergeConfig
impl UnsafeUnpin for MergeConfig
impl UnwindSafe for MergeConfig
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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