pub struct GraphConfigBuilder { /* private fields */ }Expand description
Configuration builder for easier setup
Implementations§
Source§impl GraphConfigBuilder
impl GraphConfigBuilder
Sourcepub fn with_entity_extraction(self, enabled: bool) -> Self
pub fn with_entity_extraction(self, enabled: bool) -> Self
Enable/disable entity extraction
Sourcepub fn with_entity_confidence_threshold(self, threshold: f32) -> Self
pub fn with_entity_confidence_threshold(self, threshold: f32) -> Self
Set entity extraction confidence threshold
Sourcepub fn with_query_expansion(self, enabled: bool) -> Self
pub fn with_query_expansion(self, enabled: bool) -> Self
Enable/disable query expansion
Sourcepub fn with_max_expansion_terms(self, max_terms: usize) -> Self
pub fn with_max_expansion_terms(self, max_terms: usize) -> Self
Set maximum expansion terms
Sourcepub fn with_pagerank_scoring(self, enabled: bool) -> Self
pub fn with_pagerank_scoring(self, enabled: bool) -> Self
Enable/disable PageRank scoring
Sourcepub fn with_pagerank_damping_factor(self, damping_factor: f32) -> Self
pub fn with_pagerank_damping_factor(self, damping_factor: f32) -> Self
Set PageRank damping factor
Sourcepub fn with_traversal_limits(self, max_depth: usize, max_nodes: usize) -> Self
pub fn with_traversal_limits(self, max_depth: usize, max_nodes: usize) -> Self
Set graph traversal limits
Sourcepub fn with_similarity_threshold(self, threshold: f32) -> Self
pub fn with_similarity_threshold(self, threshold: f32) -> Self
Set similarity threshold
Sourcepub fn with_parallel_processing(self, enabled: bool) -> Self
pub fn with_parallel_processing(self, enabled: bool) -> Self
Enable/disable parallel processing
Sourcepub fn with_num_workers(self, num_workers: usize) -> Self
pub fn with_num_workers(self, num_workers: usize) -> Self
Set number of worker threads
Sourcepub fn with_batch_size(self, batch_size: usize) -> Self
pub fn with_batch_size(self, batch_size: usize) -> Self
Set batch size
Sourcepub fn with_memory_limits(
self,
max_graph_size_mb: usize,
max_nodes: usize,
max_edges: usize,
) -> Self
pub fn with_memory_limits( self, max_graph_size_mb: usize, max_nodes: usize, max_edges: usize, ) -> Self
Set memory limits
Sourcepub fn with_query_timeout(self, timeout_seconds: u64) -> Self
pub fn with_query_timeout(self, timeout_seconds: u64) -> Self
Set query timeout
Sourcepub fn with_all_features(self) -> Self
pub fn with_all_features(self) -> Self
Enable all features (for development/testing)
Sourcepub fn with_minimal_features(self) -> Self
pub fn with_minimal_features(self) -> Self
Enable minimal features (for lightweight deployment)
Sourcepub fn build(self) -> GraphConfig
pub fn build(self) -> GraphConfig
Build the configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphConfigBuilder
impl RefUnwindSafe for GraphConfigBuilder
impl Send for GraphConfigBuilder
impl Sync for GraphConfigBuilder
impl Unpin for GraphConfigBuilder
impl UnwindSafe for GraphConfigBuilder
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