pub struct TwoStageIndex { /* private fields */ }Expand description
Coarse HNSW at coarse_dim, then full-dim rerank of the candidate set.
Distance ops breakdown:
- Graph traversal: O(ef × M) comparisons at
coarse_dimdims - Rerank: O(candidates) comparisons at
full_dimdims
Trait Implementations§
Source§impl Searcher for TwoStageIndex
impl Searcher for TwoStageIndex
Auto Trait Implementations§
impl Freeze for TwoStageIndex
impl RefUnwindSafe for TwoStageIndex
impl Send for TwoStageIndex
impl Sync for TwoStageIndex
impl Unpin for TwoStageIndex
impl UnsafeUnpin for TwoStageIndex
impl UnwindSafe for TwoStageIndex
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