pub struct MLPredictionService { /* private fields */ }Expand description
ML prediction service for retrieval strategy selection
Implementations§
Source§impl MLPredictionService
impl MLPredictionService
pub fn new(config: MLPredictionConfig) -> Self
Sourcepub fn predict_strategy(
&self,
understanding: &QueryUnderstanding,
) -> Result<MLPredictionResult>
pub fn predict_strategy( &self, understanding: &QueryUnderstanding, ) -> Result<MLPredictionResult>
Predict the best retrieval strategy for a given query understanding
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MLPredictionService
impl !RefUnwindSafe for MLPredictionService
impl Send for MLPredictionService
impl Sync for MLPredictionService
impl Unpin for MLPredictionService
impl !UnwindSafe for MLPredictionService
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