load_config

Function load_config 

Source
pub fn load_config(path: &Path) -> Result<Config>
Expand description

Load and validate a configuration file from disk.

§Arguments

  • path — Path to a TOML configuration file.

§Errors

Returns an error if:

  • The file cannot be read or parsed
  • chunking.max_tokens is zero
  • retrieval.final_limit is less than 1
  • retrieval.hybrid_alpha is outside [0.0, 1.0]
  • Embedding provider is enabled but model or dims is missing/zero
  • Unknown embedding provider name