pub trait QueryPreprocessor: Send + Sync {
// Required method
fn preprocess<'a>(&self, query: &'a str) -> Cow<'a, str>;
}Expand description
Extracts a concise intent from a verbose natural language query.
Required Methods§
Sourcefn preprocess<'a>(&self, query: &'a str) -> Cow<'a, str>
fn preprocess<'a>(&self, query: &'a str) -> Cow<'a, str>
Extract a concise query from a verbose input.