pub struct HNSWPQIndexParam {
pub m: u32,
pub ef_construction: u32,
pub nsq: u32,
pub sample_rate: f64,
}Fields§
§m: u32range [4, 128], neighboring nodes are connected to each node in the HNSW index graph
ef_construction: u32range [8, 1024], the number of temporary neighbor nodes used during build index
nsq: u32range [1, dim] the number of quantization subspaces, pq quantization correlation coefficient, and requires NSQ | dim. The larger the NSQ, the finer the quantization
sample_rate: f64range [0.0f, 1.0f] the sampling rate of k-means and the total number of pq samples, 10000 + (rowCount - 10000)*sampleRate
Trait Implementations§
Source§impl Clone for HNSWPQIndexParam
impl Clone for HNSWPQIndexParam
Source§fn clone(&self) -> HNSWPQIndexParam
fn clone(&self) -> HNSWPQIndexParam
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 Debug for HNSWPQIndexParam
impl Debug for HNSWPQIndexParam
Source§impl<'de> Deserialize<'de> for HNSWPQIndexParam
impl<'de> Deserialize<'de> for HNSWPQIndexParam
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HNSWPQIndexParam
impl RefUnwindSafe for HNSWPQIndexParam
impl Send for HNSWPQIndexParam
impl Sync for HNSWPQIndexParam
impl Unpin for HNSWPQIndexParam
impl UnwindSafe for HNSWPQIndexParam
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