Common
Source header: cuvs/neighbors/common.hpp
Approximate Nearest Neighbors Types
neighbors::index
The base for approximate KNN index structures.
neighbors::index_params
The base for KNN index parameters.
Fields
neighbors::MergeStrategy
Strategy for merging indices.
This enum is declared separately to avoid namespace pollution when including common.hpp. It provides a generic merge strategy that can be used across different index types.
Values
Types
neighbors::dataset
Two-dimensional dataset; maybe owning, maybe compressed, maybe strided.
neighbors::vpq_dataset
VPQ compressed dataset.
The dataset is compressed using two level quantization
- Vector Quantization
- Product Quantization of residuals
Fields
neighbors::ivf::list_base
Abstract base class for IVF list data.
This allows polymorphic access to list data regardless of the underlying layout.
TODO: Make this struct internal (tracking issue: https://github.com/rapidsai/cuvs/issues/1726)
neighbors::ivf::list
The data for a single IVF list.
Fields
Filtering for ANN Types
neighbors::filtering::FilterType
Filtering for ANN Types
Values
neighbors::filtering::none_sample_filter::operator
Returns
constexpr __forceinline__ _RAFT_HOST_DEVICE bool
neighbors::filtering::none_sample_filter::get_filter_type
Returns
neighbors::filtering::ivf_to_sample_filter
Filter used to convert the cluster index and sample index
of an IVF search into a sample index. This can be used as an intermediate filter.
Fields
neighbors::filtering::ivf_to_sample_filter::operator
If the original filter takes three arguments, then don’t modify the arguments.
If the original filter takes two arguments, then we are using inds_ptr_ to obtain the sample index.
Returns
inline _RAFT_HOST_DEVICE bool
neighbors::filtering::bitmap_filter
Filter an index with a bitmap
Fields
neighbors::filtering::bitmap_filter::operator
Returns
inline _RAFT_HOST_DEVICE bool
neighbors::filtering::bitmap_filter::get_filter_type
Returns
neighbors::filtering::bitset_filter
Filter an index with a bitset
Fields
neighbors::filtering::bitset_filter::bitset_filter
Parameters
Returns
_RAFT_HOST_DEVICE
neighbors::filtering::bitset_filter::get_filter_type
Returns
ANN MG index build parameters
neighbors::distribution_mode
neighbors::mg_index_params
Fields
ANN MG search parameters
neighbors::replicated_search_mode
Values
neighbors::sharded_merge_mode
Values
neighbors::mg_search_params
Fields