pub struct AcornSearchParamsBuilder { /* private fields */ }Implementations§
Source§impl AcornSearchParamsBuilder
impl AcornSearchParamsBuilder
Sourcepub fn new(enable: bool) -> Self
pub fn new(enable: bool) -> Self
Create a new AcornSearchParamsBuilder with required enable parameter.
§Arguments
enable- If true, ACORN may be used for HNSW search based on filter selectivity
§Examples
use qdrant_client::qdrant::AcornSearchParamsBuilder;
let acorn = AcornSearchParamsBuilder::new(true).build();
let acorn_with_selectivity = AcornSearchParamsBuilder::new(true)
.max_selectivity(0.5)
.build();Sourcepub fn max_selectivity(self, value: f64) -> Self
pub fn max_selectivity(self, value: f64) -> Self
Set maximum selectivity threshold for enabling ACORN.
If estimated filter selectivity is higher than this value, ACORN will not be used.
Selectivity is estimated as: estimated number of points satisfying the filters / total number of points
Value between 0.0 (never) and 1.0 (always). Default is 0.4.
pub fn build(self) -> AcornSearchParams
Trait Implementations§
Source§impl Clone for AcornSearchParamsBuilder
impl Clone for AcornSearchParamsBuilder
Source§fn clone(&self) -> AcornSearchParamsBuilder
fn clone(&self) -> AcornSearchParamsBuilder
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<AcornSearchParamsBuilder> for AcornSearchParams
impl From<AcornSearchParamsBuilder> for AcornSearchParams
Source§fn from(value: AcornSearchParamsBuilder) -> Self
fn from(value: AcornSearchParamsBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AcornSearchParamsBuilder
impl RefUnwindSafe for AcornSearchParamsBuilder
impl Send for AcornSearchParamsBuilder
impl Sync for AcornSearchParamsBuilder
impl Unpin for AcornSearchParamsBuilder
impl UnsafeUnpin for AcornSearchParamsBuilder
impl UnwindSafe for AcornSearchParamsBuilder
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