pub struct SemanticWiringConfig {
pub min_similarity: f64,
pub similarity_influence: f64,
pub require_embeddings: bool,
}Expand description
Configuration for semantic wiring.
Fields§
§min_similarity: f64Minimum similarity threshold for creating/strengthening edges. Edges between concepts with similarity below this are not created.
similarity_influence: f64Weight multiplier for semantic similarity. Final weight = base_weight * (1 + similarity_influence * similarity)
require_embeddings: boolWhether to require both nodes to have embeddings. If false, edges between nodes without embeddings use base weight only.
Implementations§
Trait Implementations§
Source§impl Clone for SemanticWiringConfig
impl Clone for SemanticWiringConfig
Source§fn clone(&self) -> SemanticWiringConfig
fn clone(&self) -> SemanticWiringConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 SemanticWiringConfig
impl Debug for SemanticWiringConfig
Source§impl Default for SemanticWiringConfig
impl Default for SemanticWiringConfig
Source§impl<'de> Deserialize<'de> for SemanticWiringConfig
impl<'de> Deserialize<'de> for SemanticWiringConfig
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 SemanticWiringConfig
impl RefUnwindSafe for SemanticWiringConfig
impl Send for SemanticWiringConfig
impl Sync for SemanticWiringConfig
impl Unpin for SemanticWiringConfig
impl UnwindSafe for SemanticWiringConfig
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