pub struct Rerank;Expand description
Post-processor that reranks quantized search results using full-precision distances.
Trait Implementations§
impl Copy for Rerank
Source§impl<'a, T> SearchPostProcess<QuantAccessor<'a, T>, &[T]> for Rerankwhere
T: VectorRepr,
impl<'a, T> SearchPostProcess<QuantAccessor<'a, T>, &[T]> for Rerankwhere
T: VectorRepr,
type Error = ANNError
Source§fn post_process<I, B>(
&self,
accessor: &mut QuantAccessor<'a, T>,
query: &[T],
candidates: I,
output: &mut B,
) -> impl Future<Output = Result<usize, Self::Error>> + Send
fn post_process<I, B>( &self, accessor: &mut QuantAccessor<'a, T>, query: &[T], candidates: I, output: &mut B, ) -> impl Future<Output = Result<usize, Self::Error>> + Send
Populate
output with the entries in candidates. Correct implementations must
return the number of results copied into output on success.Auto Trait Implementations§
impl Freeze for Rerank
impl RefUnwindSafe for Rerank
impl Send for Rerank
impl Sync for Rerank
impl Unpin for Rerank
impl UnsafeUnpin for Rerank
impl UnwindSafe for Rerank
Blanket Implementations§
impl<T> AsyncFriendly for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more