pub struct QuantizationSearchParamsBuilder { /* private fields */ }
Expand description
Builder for QuantizationSearchParams
.
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 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> 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