pub struct BM25Retriever { /* private fields */ }Expand description
BM25 (Best Matching 25) retriever using Okapi BM25 scoring.
Pre-computes term frequencies, document lengths, and inverse document frequencies at construction time for efficient retrieval.
Implementations§
Trait Implementations§
Source§impl Clone for BM25Retriever
impl Clone for BM25Retriever
Source§fn clone(&self) -> BM25Retriever
fn clone(&self) -> BM25Retriever
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 BM25Retriever
impl Debug for BM25Retriever
Auto Trait Implementations§
impl Freeze for BM25Retriever
impl RefUnwindSafe for BM25Retriever
impl Send for BM25Retriever
impl Sync for BM25Retriever
impl Unpin for BM25Retriever
impl UnsafeUnpin for BM25Retriever
impl UnwindSafe for BM25Retriever
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