pub struct LangExtractConfig {
pub processing: ProcessingConfig,
pub provider: ProviderConfig,
pub validation: ValidationConfig,
pub chunking: ChunkingConfig,
pub alignment: AlignmentConfig,
pub multipass: MultiPassConfig,
pub visualization: VisualizationConfig,
pub inference: InferenceConfig,
pub progress: ProgressConfig,
}
Expand description
The main unified configuration for LangExtract operations
Fields§
§processing: ProcessingConfig
Core processing configuration
provider: ProviderConfig
Provider configuration
validation: ValidationConfig
Validation and output processing
chunking: ChunkingConfig
Text chunking configuration
alignment: AlignmentConfig
Alignment configuration
multipass: MultiPassConfig
Multi-pass extraction configuration
visualization: VisualizationConfig
Visualization and export configuration
inference: InferenceConfig
Inference-specific parameters
progress: ProgressConfig
Progress reporting configuration (not serialized)
Implementations§
Source§impl LangExtractConfig
impl LangExtractConfig
Sourcepub fn with_provider(self, provider: ProviderConfig) -> Self
pub fn with_provider(self, provider: ProviderConfig) -> Self
Set the provider configuration
Sourcepub fn with_processing(self, processing: ProcessingConfig) -> Self
pub fn with_processing(self, processing: ProcessingConfig) -> Self
Set the processing configuration
Sourcepub fn with_validation(self, validation: ValidationConfig) -> Self
pub fn with_validation(self, validation: ValidationConfig) -> Self
Set validation configuration
Sourcepub fn with_chunking(self, chunking: ChunkingConfig) -> Self
pub fn with_chunking(self, chunking: ChunkingConfig) -> Self
Set chunking configuration
Sourcepub fn with_alignment(self, alignment: AlignmentConfig) -> Self
pub fn with_alignment(self, alignment: AlignmentConfig) -> Self
Set alignment configuration
Sourcepub fn with_multipass(self, multipass: MultiPassConfig) -> Self
pub fn with_multipass(self, multipass: MultiPassConfig) -> Self
Set multi-pass configuration
Sourcepub fn with_visualization(self, visualization: VisualizationConfig) -> Self
pub fn with_visualization(self, visualization: VisualizationConfig) -> Self
Set visualization configuration
Sourcepub fn with_inference(self, inference: InferenceConfig) -> Self
pub fn with_inference(self, inference: InferenceConfig) -> Self
Set inference configuration
Sourcepub fn with_progress(self, progress: ProgressConfig) -> Self
pub fn with_progress(self, progress: ProgressConfig) -> Self
Set progress configuration
Sourcepub fn with_debug(self, enabled: bool) -> Self
pub fn with_debug(self, enabled: bool) -> Self
Enable debug mode
Sourcepub fn with_max_char_buffer(self, size: usize) -> Self
pub fn with_max_char_buffer(self, size: usize) -> Self
Set maximum characters per chunk
Sourcepub fn with_workers(self, workers: usize) -> Self
pub fn with_workers(self, workers: usize) -> Self
Set the number of workers
Sourcepub fn with_temperature(self, temperature: f32) -> Self
pub fn with_temperature(self, temperature: f32) -> Self
Set temperature for inference
Sourcepub fn with_multipass_enabled(self, enabled: bool) -> Self
pub fn with_multipass_enabled(self, enabled: bool) -> Self
Enable multi-pass extraction
Sourcepub fn with_progress_handler(self, handler: Arc<dyn ProgressHandler>) -> Self
pub fn with_progress_handler(self, handler: Arc<dyn ProgressHandler>) -> Self
Set progress handler
Sourcepub fn with_quiet_mode(self) -> Self
pub fn with_quiet_mode(self) -> Self
Enable quiet mode (no progress output)
Sourcepub fn with_verbose_mode(self) -> Self
pub fn with_verbose_mode(self) -> Self
Enable verbose mode (show all output)
Source§impl LangExtractConfig
impl LangExtractConfig
Sourcepub fn for_openai(model: &str, api_key: Option<String>) -> Self
pub fn for_openai(model: &str, api_key: Option<String>) -> Self
Create a configuration optimized for OpenAI
Sourcepub fn for_ollama(model: &str, base_url: Option<String>) -> Self
pub fn for_ollama(model: &str, base_url: Option<String>) -> Self
Create a configuration optimized for Ollama
Sourcepub fn for_high_performance() -> Self
pub fn for_high_performance() -> Self
Create a configuration for high-performance processing
Sourcepub fn for_memory_efficient() -> Self
pub fn for_memory_efficient() -> Self
Create a configuration for memory-efficient processing
Trait Implementations§
Source§impl Clone for LangExtractConfig
impl Clone for LangExtractConfig
Source§fn clone(&self) -> LangExtractConfig
fn clone(&self) -> LangExtractConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more