pub struct RelationshipDiscoveryConfig {
pub window_size: usize,
pub min_co_occurrence: usize,
pub use_mutual_information: bool,
pub relationship_types: Vec<String>,
pub scoring_method: String,
pub min_similarity_score: f32,
}Expand description
Configuration for discovering relationships between entities using co-occurrence analysis.
This configuration enables algorithmic relationship discovery by analyzing word co-occurrence patterns and statistical measures without LLM inference.
Fields§
§window_size: usizeWindow size for co-occurrence analysis (number of words to check around entities)
min_co_occurrence: usizeMinimum co-occurrence count to establish a relationship
use_mutual_information: boolWhether to use mutual information scoring for relationship strength
relationship_types: Vec<String>Types of relationships to identify (e.g., “causal”, “hierarchical”, “temporal”)
scoring_method: StringScoring method for relationship ranking (e.g., “frequency”, “mi”, “pmi”)
min_similarity_score: f32Minimum similarity score threshold for valid relationships
Trait Implementations§
Source§impl Clone for RelationshipDiscoveryConfig
impl Clone for RelationshipDiscoveryConfig
Source§fn clone(&self) -> RelationshipDiscoveryConfig
fn clone(&self) -> RelationshipDiscoveryConfig
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 RelationshipDiscoveryConfig
impl Debug for RelationshipDiscoveryConfig
Source§impl<'de> Deserialize<'de> for RelationshipDiscoveryConfig
impl<'de> Deserialize<'de> for RelationshipDiscoveryConfig
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 RelationshipDiscoveryConfig
impl RefUnwindSafe for RelationshipDiscoveryConfig
impl Send for RelationshipDiscoveryConfig
impl Sync for RelationshipDiscoveryConfig
impl Unpin for RelationshipDiscoveryConfig
impl UnsafeUnpin for RelationshipDiscoveryConfig
impl UnwindSafe for RelationshipDiscoveryConfig
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