pub struct QueryProcessorConfig {
pub enable_rewriting: bool,
pub enable_expansion: bool,
pub enable_classification: bool,
pub enable_decomposition: bool,
pub enable_hyde: bool,
pub max_variants: usize,
pub confidence_threshold: f32,
}Expand description
Configuration for the query processor
Fields§
§enable_rewriting: boolWhether to enable query rewriting
enable_expansion: boolWhether to enable query expansion
enable_classification: boolWhether to enable intent classification
enable_decomposition: boolWhether to enable query decomposition
enable_hyde: boolWhether to enable HyDE
max_variants: usizeMaximum number of query variants to generate
confidence_threshold: f32Confidence threshold for classifications
Trait Implementations§
Source§impl Clone for QueryProcessorConfig
impl Clone for QueryProcessorConfig
Source§fn clone(&self) -> QueryProcessorConfig
fn clone(&self) -> QueryProcessorConfig
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 QueryProcessorConfig
impl Debug for QueryProcessorConfig
Auto Trait Implementations§
impl Freeze for QueryProcessorConfig
impl RefUnwindSafe for QueryProcessorConfig
impl Send for QueryProcessorConfig
impl Sync for QueryProcessorConfig
impl Unpin for QueryProcessorConfig
impl UnwindSafe for QueryProcessorConfig
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