pub struct LexicalReranker { /* private fields */ }Expand description
A dependency-free lexical reranker: blends the first-pass score with the fraction of query terms that appear in the candidate. Cheap and deterministic, a reasonable default when no model is available, and it lifts exact-term matches that pure vector similarity can bury.
Implementations§
Trait Implementations§
Source§impl Default for LexicalReranker
impl Default for LexicalReranker
Auto Trait Implementations§
impl Freeze for LexicalReranker
impl RefUnwindSafe for LexicalReranker
impl Send for LexicalReranker
impl Sync for LexicalReranker
impl Unpin for LexicalReranker
impl UnsafeUnpin for LexicalReranker
impl UnwindSafe for LexicalReranker
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