pub enum RerankingStrategy {
TopK(usize),
Threshold(f32),
Adaptive,
Staged(Vec<usize>),
}Expand description
Reranking strategies
Variants§
TopK(usize)
Rerank top-k candidates
Threshold(f32)
Rerank all candidates above threshold
Adaptive
Adaptive reranking based on score distribution
Staged(Vec<usize>)
Stage-wise reranking
Trait Implementations§
Source§impl Clone for RerankingStrategy
impl Clone for RerankingStrategy
Source§fn clone(&self) -> RerankingStrategy
fn clone(&self) -> RerankingStrategy
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 RerankingStrategy
impl Debug for RerankingStrategy
Source§impl PartialEq for RerankingStrategy
impl PartialEq for RerankingStrategy
impl StructuralPartialEq for RerankingStrategy
Auto Trait Implementations§
impl Freeze for RerankingStrategy
impl RefUnwindSafe for RerankingStrategy
impl Send for RerankingStrategy
impl Sync for RerankingStrategy
impl Unpin for RerankingStrategy
impl UnwindSafe for RerankingStrategy
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