pub enum QueryPreprocessing {
None,
Hyde,
QueryExpansion {
count: usize,
},
TranslateToEnglish,
}Expand description
Query preprocessing strategy.
Variants§
None
No preprocessing.
Hyde
HYDE: generate a hypothetical answer passage.
QueryExpansion
Generate N query variations for better recall.
TranslateToEnglish
Translate query to English before retrieval.
Trait Implementations§
Source§impl Clone for QueryPreprocessing
impl Clone for QueryPreprocessing
Source§fn clone(&self) -> QueryPreprocessing
fn clone(&self) -> QueryPreprocessing
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QueryPreprocessing
impl Debug for QueryPreprocessing
Source§impl<'de> Deserialize<'de> for QueryPreprocessing
impl<'de> Deserialize<'de> for QueryPreprocessing
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
Auto Trait Implementations§
impl Freeze for QueryPreprocessing
impl RefUnwindSafe for QueryPreprocessing
impl Send for QueryPreprocessing
impl Sync for QueryPreprocessing
impl Unpin for QueryPreprocessing
impl UnsafeUnpin for QueryPreprocessing
impl UnwindSafe for QueryPreprocessing
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