pub struct LinkConfig { /* private fields */ }Expand description
Model-specific semantic-linking configuration shared by every backend.
Implementations§
Source§impl LinkConfig
impl LinkConfig
Sourcepub fn new(model: impl Into<String>, min_similarity: f64, top_k: usize) -> Self
pub fn new(model: impl Into<String>, min_similarity: f64, top_k: usize) -> Self
Creates configuration with explicit model-specific threshold and top-K.
Sourcepub const fn with_selection(self, selection: SelectionMode) -> Self
pub const fn with_selection(self, selection: SelectionMode) -> Self
Changes pair selection semantics.
Sourcepub const fn with_confidence(self, confidence: Confidence) -> Self
pub const fn with_confidence(self, confidence: Confidence) -> Self
Sets the confidence attached to inferred graph evidence.
Sourcepub const fn with_max_vectors(self, max_vectors: usize) -> Self
pub const fn with_max_vectors(self, max_vectors: usize) -> Self
Sets an optional caller-defined safety bound on the input size.
The default is usize::MAX, so the linker does not impose a fixed
vector-count limit. This guard can still be useful for controlling the
quadratic comparison cost in latency-sensitive applications.
Sourcepub const fn min_similarity(&self) -> f64
pub const fn min_similarity(&self) -> f64
Inclusive cosine threshold in the range [0, 1].
Sourcepub const fn top_k(&self) -> usize
pub const fn top_k(&self) -> usize
Maximum selected neighbors per vector before pair reconciliation.
Sourcepub const fn selection(&self) -> SelectionMode
pub const fn selection(&self) -> SelectionMode
Pair selection mode.
Sourcepub const fn confidence(&self) -> Confidence
pub const fn confidence(&self) -> Confidence
Confidence attached to all inferred edges.
Sourcepub const fn max_vectors(&self) -> usize
pub const fn max_vectors(&self) -> usize
Maximum accepted vector count, or usize::MAX when unbounded.
Trait Implementations§
Source§impl Clone for LinkConfig
impl Clone for LinkConfig
Source§fn clone(&self) -> LinkConfig
fn clone(&self) -> LinkConfig
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 LinkConfig
impl Debug for LinkConfig
Source§impl PartialEq for LinkConfig
impl PartialEq for LinkConfig
impl StructuralPartialEq for LinkConfig
Auto Trait Implementations§
impl Freeze for LinkConfig
impl RefUnwindSafe for LinkConfig
impl Send for LinkConfig
impl Sync for LinkConfig
impl Unpin for LinkConfig
impl UnsafeUnpin for LinkConfig
impl UnwindSafe for LinkConfig
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