pub struct MockReranker;Expand description
Deterministic mock reranker: scores by passage length (longer = more informative). Useful for pipeline testing without an ML model.
Trait Implementations§
Source§impl CrossEncoderReranker for MockReranker
impl CrossEncoderReranker for MockReranker
fn name(&self) -> &str
fn version(&self) -> &str
Source§fn max_candidates(&self) -> u32
fn max_candidates(&self) -> u32
Maximum candidates to rerank (RFC-010 §9 top-N limit).
fn rerank( &self, _query: &str, candidates: &[RerankCandidate], ) -> OrbokResult<Vec<RerankScore>>
Auto Trait Implementations§
impl Freeze for MockReranker
impl RefUnwindSafe for MockReranker
impl Send for MockReranker
impl Sync for MockReranker
impl Unpin for MockReranker
impl UnsafeUnpin for MockReranker
impl UnwindSafe for MockReranker
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