pub struct GraphBuildConfig {
pub entity_config: EntityExtractionConfig,
pub storage_config: GraphStorageConfig,
pub expansion_config: ExpansionConfig,
pub generate_entity_embeddings: bool,
pub calculate_pagerank: bool,
pub batch_size: usize,
pub enable_parallel_processing: bool,
pub num_workers: usize,
}Expand description
Configuration for building knowledge graphs from documents
Fields§
§entity_config: EntityExtractionConfigEntity extraction configuration
storage_config: GraphStorageConfigGraph storage configuration
expansion_config: ExpansionConfigQuery expansion configuration
generate_entity_embeddings: boolWhether to generate embeddings for entities
calculate_pagerank: boolWhether to calculate PageRank scores
batch_size: usizeBatch size for processing documents
enable_parallel_processing: boolEnable parallel processing
num_workers: usizeNumber of worker threads for parallel processing
Trait Implementations§
Source§impl Clone for GraphBuildConfig
impl Clone for GraphBuildConfig
Source§fn clone(&self) -> GraphBuildConfig
fn clone(&self) -> GraphBuildConfig
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 GraphBuildConfig
impl Debug for GraphBuildConfig
Auto Trait Implementations§
impl Freeze for GraphBuildConfig
impl RefUnwindSafe for GraphBuildConfig
impl Send for GraphBuildConfig
impl Sync for GraphBuildConfig
impl Unpin for GraphBuildConfig
impl UnwindSafe for GraphBuildConfig
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