Struct lance::index::vector::VectorIndexParams
source · pub struct VectorIndexParams {
pub num_partitions: u32,
pub nbits: u8,
pub num_sub_vectors: u32,
}
Expand description
The parameters to build vector index.
Fields§
§num_partitions: u32
The number of IVF partitions
nbits: u8
the number of bits to present the centroids used in PQ.
num_sub_vectors: u32
the number of sub vectors used in PQ.
Implementations§
source§impl VectorIndexParams
impl VectorIndexParams
sourcepub fn ivf_pq(num_partitions: u32, nbits: u8, num_sub_vectors: u32) -> Self
pub fn ivf_pq(num_partitions: u32, nbits: u8, num_sub_vectors: u32) -> Self
Create index parameters for IVF_PQ
index.
Parameters
num_partitions
: the number of IVF partitions.nbits
: the number of bits to present the centroids used in PQ. Can only be8
for now.num_sub_vectors
: the number of sub vectors used in PQ.