Struct qdrant_client::qdrant::HnswConfigDiff
source · pub struct HnswConfigDiff {
pub m: Option<u64>,
pub ef_construct: Option<u64>,
pub full_scan_threshold: Option<u64>,
pub max_indexing_threads: Option<u64>,
pub on_disk: Option<bool>,
pub payload_m: Option<u64>,
}Fields§
§m: Option<u64>Number of edges per node in the index graph. Larger the value - more accurate the search, more space required.
ef_construct: Option<u64>Number of neighbours to consider during the index building. Larger the value - more accurate the search, more time required to build the index.
full_scan_threshold: Option<u64>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
max_indexing_threads: Option<u64>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.
on_disk: Option<bool>Store HNSW index on disk. If set to false, the index will be stored in RAM.
payload_m: Option<u64>Number of additional payload-aware links per node in the index graph. If not set - regular M parameter will be used.
Implementations§
source§impl HnswConfigDiff
impl HnswConfigDiff
sourcepub fn ef_construct(&self) -> u64
pub fn ef_construct(&self) -> u64
Returns the value of ef_construct, or the default value if ef_construct is unset.
sourcepub fn full_scan_threshold(&self) -> u64
pub fn full_scan_threshold(&self) -> u64
Returns the value of full_scan_threshold, or the default value if full_scan_threshold is unset.
sourcepub fn max_indexing_threads(&self) -> u64
pub fn max_indexing_threads(&self) -> u64
Returns the value of max_indexing_threads, or the default value if max_indexing_threads is unset.
Trait Implementations§
source§impl Clone for HnswConfigDiff
impl Clone for HnswConfigDiff
source§fn clone(&self) -> HnswConfigDiff
fn clone(&self) -> HnswConfigDiff
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for HnswConfigDiff
impl Debug for HnswConfigDiff
source§impl Default for HnswConfigDiff
impl Default for HnswConfigDiff
source§impl Message for HnswConfigDiff
impl Message for HnswConfigDiff
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.source§impl PartialEq for HnswConfigDiff
impl PartialEq for HnswConfigDiff
source§fn eq(&self, other: &HnswConfigDiff) -> bool
fn eq(&self, other: &HnswConfigDiff) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for HnswConfigDiff
Auto Trait Implementations§
impl RefUnwindSafe for HnswConfigDiff
impl Send for HnswConfigDiff
impl Sync for HnswConfigDiff
impl Unpin for HnswConfigDiff
impl UnwindSafe for HnswConfigDiff
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