pub enum DiskSearchPostProcessor<'a> {
RerankAndFilter(RerankAndFilter<'a>),
DeterminantDiversity(DeterminantDiversityAndFilter<'a>),
}Expand description
Internal dispatch wrapper used by search_internal’s DiverseGraph arm
to feed DiskANNIndex::search_with. Hidden behind SearchMode from the
public API.
Variants§
RerankAndFilter(RerankAndFilter<'a>)
DeterminantDiversity(DeterminantDiversityAndFilter<'a>)
Trait Implementations§
Source§impl<'a> Clone for DiskSearchPostProcessor<'a>
impl<'a> Clone for DiskSearchPostProcessor<'a>
Source§fn clone(&self) -> DiskSearchPostProcessor<'a>
fn clone(&self) -> DiskSearchPostProcessor<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for DiskSearchPostProcessor<'a>
Source§impl<Data, VP> SearchPostProcess<DiskAccessor<'_, Data, VP>, &[<Data as GraphDataType>::VectorDataType], (<DiskProvider<Data> as DataProvider>::InternalId, <Data as GraphDataType>::AssociatedDataType)> for DiskSearchPostProcessor<'_>
impl<Data, VP> SearchPostProcess<DiskAccessor<'_, Data, VP>, &[<Data as GraphDataType>::VectorDataType], (<DiskProvider<Data> as DataProvider>::InternalId, <Data as GraphDataType>::AssociatedDataType)> for DiskSearchPostProcessor<'_>
type Error = ANNError
Source§async fn post_process<I, B>(
&self,
accessor: &mut DiskAccessor<'_, Data, VP>,
query: &[Data::VectorDataType],
candidates: I,
output: &mut B,
) -> Result<usize, Self::Error>where
I: Iterator<Item = Neighbor<u32>> + Send,
B: SearchOutputBuffer<(u32, Data::AssociatedDataType)> + Send + ?Sized,
async fn post_process<I, B>(
&self,
accessor: &mut DiskAccessor<'_, Data, VP>,
query: &[Data::VectorDataType],
candidates: I,
output: &mut B,
) -> Result<usize, Self::Error>where
I: Iterator<Item = Neighbor<u32>> + Send,
B: SearchOutputBuffer<(u32, Data::AssociatedDataType)> + Send + ?Sized,
Populate
output with the entries in candidates. Correct implementations must
return the number of results copied into output on success.Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DiskSearchPostProcessor<'a>
impl<'a> !UnwindSafe for DiskSearchPostProcessor<'a>
impl<'a> Freeze for DiskSearchPostProcessor<'a>
impl<'a> Send for DiskSearchPostProcessor<'a>
impl<'a> Sync for DiskSearchPostProcessor<'a>
impl<'a> Unpin for DiskSearchPostProcessor<'a>
impl<'a> UnsafeUnpin for DiskSearchPostProcessor<'a>
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