pub struct HnswConfigDiffBuilder { /* private fields */ }
Expand description
Builder for HnswConfigDiff
.
Implementations§
source§impl HnswConfigDiffBuilder
impl HnswConfigDiffBuilder
sourcepub fn m(self, value: u64) -> Self
pub fn m(self, value: u64) -> Self
Number of edges per node in the index graph. Larger the value - more accurate the search, more space required.
sourcepub fn ef_construct(self, value: u64) -> Self
pub fn ef_construct(self, value: u64) -> Self
Number of neighbours to consider during the index building. Larger the value - more accurate the search, more time required to build the index.
sourcepub fn full_scan_threshold(self, value: u64) -> Self
pub fn full_scan_threshold(self, value: u64) -> Self
Minimal size (in KiloBytes) of vectors for additional payload-based indexing.
If the payload chunk is smaller than full_scan_threshold
additional indexing won’t be used -
in this case full-scan search should be preferred by query planner and additional indexing is not required.
Note: 1 Kb = 1 vector of size 256
sourcepub fn max_indexing_threads(self, value: u64) -> Self
pub fn max_indexing_threads(self, value: u64) -> Self
Number of parallel threads used for background index building. If 0 - automatically select from 8 to 16. Best to keep between 8 and 16 to prevent likelihood of building broken/inefficient HNSW graphs. On small CPUs, less threads are used.
source§impl HnswConfigDiffBuilder
impl HnswConfigDiffBuilder
sourcepub fn build(self) -> HnswConfigDiff
pub fn build(self) -> HnswConfigDiff
Builds the desired type. Can often be omitted.
Trait Implementations§
source§impl Default for HnswConfigDiffBuilder
impl Default for HnswConfigDiffBuilder
source§impl From<HnswConfigDiffBuilder> for HnswConfigDiff
impl From<HnswConfigDiffBuilder> for HnswConfigDiff
source§fn from(value: HnswConfigDiffBuilder) -> Self
fn from(value: HnswConfigDiffBuilder) -> Self
Auto Trait Implementations§
impl Freeze for HnswConfigDiffBuilder
impl RefUnwindSafe for HnswConfigDiffBuilder
impl Send for HnswConfigDiffBuilder
impl Sync for HnswConfigDiffBuilder
impl Unpin for HnswConfigDiffBuilder
impl UnwindSafe for HnswConfigDiffBuilder
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
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>
T
in a tonic::Request