pub struct QuantizationSearchParamsBuilder { /* private fields */ }Implementations§
Source§impl QuantizationSearchParamsBuilder
impl QuantizationSearchParamsBuilder
Sourcepub fn ignore(self, value: bool) -> Self
pub fn ignore(self, value: bool) -> Self
If set to true, search will ignore quantized vector data
Sourcepub fn rescore(self, value: bool) -> Self
pub fn rescore(self, value: bool) -> Self
If true, use original vectors to re-score top-k results. If ignored, qdrant decides automatically does rescore enabled or not.
Sourcepub fn oversampling(self, value: f64) -> Self
pub fn oversampling(self, value: f64) -> Self
Oversampling factor for quantization.
Defines how many extra vectors should be pre-selected using quantized index, and then re-scored using original vectors.
For example, if oversampling is 2.4 and limit is 100, then 240 vectors will be pre-selected using quantized index,
and then top-100 will be returned after re-scoring.
Source§impl QuantizationSearchParamsBuilder
impl QuantizationSearchParamsBuilder
Sourcepub fn build(self) -> QuantizationSearchParams
pub fn build(self) -> QuantizationSearchParams
Builds the desired type. Can often be omitted.
Trait Implementations§
Source§impl Clone for QuantizationSearchParamsBuilder
impl Clone for QuantizationSearchParamsBuilder
Source§fn clone(&self) -> QuantizationSearchParamsBuilder
fn clone(&self) -> QuantizationSearchParamsBuilder
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 From<QuantizationSearchParamsBuilder> for QuantizationSearchParams
impl From<QuantizationSearchParamsBuilder> for QuantizationSearchParams
Source§fn from(value: QuantizationSearchParamsBuilder) -> Self
fn from(value: QuantizationSearchParamsBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QuantizationSearchParamsBuilder
impl RefUnwindSafe for QuantizationSearchParamsBuilder
impl Send for QuantizationSearchParamsBuilder
impl Sync for QuantizationSearchParamsBuilder
impl Unpin for QuantizationSearchParamsBuilder
impl UnwindSafe for QuantizationSearchParamsBuilder
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request