Working with ANN Indexes in C++#

Building an index#

#include <cuvs/neighbors/cagra.hpp>

using namespace cuvs::neighbors;

raft::device_matrix_view<float> dataset = load_dataset();
raft::device_resources res;

cagra::index_params index_params;

auto index = cagra::build(res, index_params, dataset);

Searching an index#

CPU/GPU interoperability#

Serializing an index#