pub struct HnswConfigDiffBuilder { /* private fields */ }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.
Sourcepub fn on_disk(self, value: bool) -> Self
pub fn on_disk(self, value: bool) -> Self
Store HNSW index on disk. If set to false, the index will be stored in RAM.
Sourcepub fn payload_m(self, value: u64) -> Self
pub fn payload_m(self, value: u64) -> Self
Number of additional payload-aware links per node in the index graph. If not set - regular M parameter will be used.
Sourcepub fn inline_storage(self, value: bool) -> Self
pub fn inline_storage(self, value: bool) -> Self
Store copies of original and quantized vectors within the HNSW index file. Default: false. Enabling this option will trade the search speed for disk usage by reducing amount of random seeks during the search. Requires quantized vectors to be enabled. Multi-vectors are not supported.
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 Clone for HnswConfigDiffBuilder
impl Clone for HnswConfigDiffBuilder
Source§fn clone(&self) -> HnswConfigDiffBuilder
fn clone(&self) -> HnswConfigDiffBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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> 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>
T in a tonic::Request