IVF SQ
Source header: cuvs/neighbors/ivf_sq.h
IVF-SQ index build parameters
cuvsIvfSqIndexParams
Supplemental parameters to build IVF-SQ Index
Fields
cuvsIvfSqIndexParamsCreate
Allocate IVF-SQ Index params, and populate with default values
Parameters
Returns
cuvsIvfSqIndexParamsDestroy
De-allocate IVF-SQ Index params
Parameters
Returns
IVF-SQ index search parameters
cuvsIvfSqSearchParams
Supplemental parameters to search IVF-SQ index
Fields
cuvsIvfSqSearchParamsCreate
Allocate IVF-SQ search params, and populate with default values
Parameters
Returns
cuvsIvfSqSearchParamsDestroy
De-allocate IVF-SQ search params
Parameters
Returns
IVF-SQ index
cuvsIvfSqIndex
Struct to hold address of cuvs::neighbors::ivf_sq::index and its active trained dtype
Fields
cuvsIvfSqIndexCreate
Allocate IVF-SQ index
Parameters
Returns
cuvsIvfSqIndexDestroy
De-allocate IVF-SQ index
Parameters
Returns
cuvsIvfSqIndexGetNLists
Get the number of clusters/inverted lists
Parameters
Returns
cuvsIvfSqIndexGetDim
Get the dimensionality of the data
Parameters
Returns
cuvsIvfSqIndexGetSize
Get the size of the index
Parameters
Returns
cuvsIvfSqIndexGetCenters
Get the cluster centers corresponding to the lists [n_lists, dim]
Parameters
Returns
IVF-SQ index build
cuvsIvfSqBuild
Build an IVF-SQ index with a DLManagedTensor which has underlying DLDeviceType equal to kDLCUDA, kDLCUDAHost, kDLCUDAManaged, or kDLCPU. Also, acceptable underlying types are:
kDLDataType.code == kDLFloatandkDLDataType.bits = 32kDLDataType.code == kDLFloatandkDLDataType.bits = 16
Parameters
Returns
IVF-SQ index search
cuvsIvfSqSearch
Search an IVF-SQ index with a DLManagedTensor which has underlying DLDeviceType equal to kDLCUDA, kDLCUDAHost, kDLCUDAManaged. Types for input are:
queries:kDLDataType.code == kDLFloatandkDLDataType.bits = 32or 16neighbors:kDLDataType.code == kDLIntandkDLDataType.bits = 64distances:kDLDataType.code == kDLFloatandkDLDataType.bits = 32
Parameters
Returns
IVF-SQ C-API serialize functions
cuvsIvfSqSerialize
Save the index to file.
Experimental, both the API and the serialization format are subject to change.
Parameters
Returns
cuvsIvfSqDeserialize
Load index from file.
Experimental, both the API and the serialization format are subject to change.
Parameters
Returns
IVF-SQ index extend
cuvsIvfSqExtend
Extend the index with the new data.
Parameters
Returns