pub struct QueryRewriteConfig {
pub enable_grammar_correction: bool,
pub enable_clarification: bool,
pub enable_style_normalization: bool,
pub enable_domain_rewriting: bool,
pub max_rewrites: usize,
pub min_confidence: f32,
}Expand description
Configuration for query rewriting
Fields§
§enable_grammar_correction: boolEnable grammar correction
enable_clarification: boolEnable query clarification
enable_style_normalization: boolEnable style normalization
enable_domain_rewriting: boolEnable domain-specific rewriting
max_rewrites: usizeMaximum number of rewrites per query
min_confidence: f32Minimum confidence for accepting rewrites
Trait Implementations§
Source§impl Clone for QueryRewriteConfig
impl Clone for QueryRewriteConfig
Source§fn clone(&self) -> QueryRewriteConfig
fn clone(&self) -> QueryRewriteConfig
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 QueryRewriteConfig
impl Debug for QueryRewriteConfig
Auto Trait Implementations§
impl Freeze for QueryRewriteConfig
impl RefUnwindSafe for QueryRewriteConfig
impl Send for QueryRewriteConfig
impl Sync for QueryRewriteConfig
impl Unpin for QueryRewriteConfig
impl UnwindSafe for QueryRewriteConfig
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