pub struct Config {Show 18 fields
pub output_dir: String,
pub chunk_size: usize,
pub chunk_overlap: usize,
pub max_entities_per_chunk: Option<usize>,
pub top_k_results: Option<usize>,
pub similarity_threshold: Option<f32>,
pub approach: String,
pub embeddings: EmbeddingConfig,
pub graph: GraphConfig,
pub text: TextConfig,
pub entities: EntityConfig,
pub retrieval: RetrievalConfig,
pub parallel: ParallelConfig,
pub ollama: OllamaConfig,
pub enhancements: EnhancementsConfig,
pub auto_save: AutoSaveConfig,
pub summarization: HierarchicalConfig,
pub zero_cost_approach: ZeroCostApproachConfig,
}Expand description
Configuration for the GraphRAG system
Fields§
§output_dir: StringOutput directory for storing graphs and data
chunk_size: usizeChunk size for text processing
chunk_overlap: usizeOverlap between chunks
max_entities_per_chunk: Option<usize>Maximum entities per chunk
top_k_results: Option<usize>Top-k results for retrieval
similarity_threshold: Option<f32>Similarity threshold for retrieval
approach: StringPipeline approach: “semantic”, “algorithmic”, or “hybrid” Determines which implementation strategy to use for entity extraction and retrieval
embeddings: EmbeddingConfigVector embedding configuration
graph: GraphConfigGraph construction parameters
text: TextConfigText processing settings
entities: EntityConfigEntity extraction settings
retrieval: RetrievalConfigRetrieval system configuration
parallel: ParallelConfigParallel processing configuration
ollama: OllamaConfigOllama integration configuration
enhancements: EnhancementsConfigLatest enhancements configuration
auto_save: AutoSaveConfigAuto-save configuration for workspace persistence
summarization: HierarchicalConfigHierarchical summarization configuration
zero_cost_approach: ZeroCostApproachConfigZero-cost approach configuration
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
Source§impl Validatable for Config
impl Validatable for Config
Source§fn validate(&self) -> ValidationResult
fn validate(&self) -> ValidationResult
Validate configuration with standard checks
Source§fn validate_strict(&self) -> ValidationResult
fn validate_strict(&self) -> ValidationResult
Validate configuration with strict checks (includes warnings and suggestions)
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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