pub struct SetConfig {Show 13 fields
pub mode: ModeConfig,
pub semantic: Option<SemanticPipelineConfig>,
pub algorithmic: Option<AlgorithmicPipelineConfig>,
pub hybrid: Option<HybridPipelineConfig>,
pub general: GeneralConfig,
pub pipeline: PipelineConfig,
pub storage: StorageConfig,
pub models: ModelsConfig,
pub performance: PerformanceConfig,
pub ollama: OllamaSetConfig,
pub experimental: ExperimentalConfig,
pub entity_extraction: EntityExtractionTopLevelConfig,
pub auto_save: AutoSaveSetConfig,
}Expand description
Complete GraphRAG configuration loaded from TOML
Fields§
§mode: ModeConfigPipeline mode/approach configuration
semantic: Option<SemanticPipelineConfig>Semantic/Neural pipeline configuration
algorithmic: Option<AlgorithmicPipelineConfig>Algorithmic/Classic NLP pipeline configuration
hybrid: Option<HybridPipelineConfig>Hybrid pipeline configuration
general: GeneralConfigGeneral system settings
pipeline: PipelineConfigPipeline configuration
storage: StorageConfigStorage configuration
models: ModelsConfigModel configuration
performance: PerformanceConfigPerformance tuning
ollama: OllamaSetConfigOllama-specific configuration
experimental: ExperimentalConfigExperimental features
entity_extraction: EntityExtractionTopLevelConfigTop-level entity extraction configuration (for gleaning)
auto_save: AutoSaveSetConfigAuto-save configuration for workspace persistence
Implementations§
Source§impl SetConfig
impl SetConfig
Sourcepub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self>
Load configuration from TOML or JSON5 file (auto-detects format by extension)
Sourcepub fn save_to_file<P: AsRef<Path>>(&self, path: P) -> Result<()>
pub fn save_to_file<P: AsRef<Path>>(&self, path: P) -> Result<()>
Save configuration to TOML file with comments
Sourcepub fn to_graphrag_config(&self) -> Config
pub fn to_graphrag_config(&self) -> Config
Convert to the existing Config format for compatibility
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SetConfig
impl<'de> Deserialize<'de> for SetConfig
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 SetConfig
impl Validatable for SetConfig
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 SetConfig
impl RefUnwindSafe for SetConfig
impl Send for SetConfig
impl Sync for SetConfig
impl Unpin for SetConfig
impl UnsafeUnpin for SetConfig
impl UnwindSafe for SetConfig
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