File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -245,7 +245,11 @@ struct GpuIndexCagra : public GpuIndex {
245
245
faiss::MetricType metric = faiss::METRIC_L2,
246
246
GpuIndexCagraConfig config = GpuIndexCagraConfig());
247
247
248
- // / Trains CAGRA based on the given vector data
248
+ // / Trains CAGRA based on the given vector data.
249
+ // / NB: The use of the train function here is to build the CAGRA graph on
250
+ // / the base dataset and is currently the only function to add the full set
251
+ // / of vectors (without IDs) to the index. There is no external quantizer to
252
+ // / be trained here.
249
253
void train (idx_t n, const float * x) override ;
250
254
251
255
// / Initialize ourselves from the given CPU index; will overwrite
Original file line number Diff line number Diff line change @@ -118,8 +118,11 @@ class CuvsCagra {
118
118
const int dim_;
119
119
120
120
// / Controls the underlying cuVS index if it should store the dataset in
121
- // / device memory
122
- bool store_dataset_;
121
+ // / device memory. Default set to true for enabling search capabilities on
122
+ // / the index.
123
+ // / NB: This is also required to be set to true for deserializing
124
+ // / an IndexHNSWCagra object.
125
+ bool store_dataset_ = true ;
123
126
124
127
// / Metric type of the index
125
128
faiss::MetricType metric_;
You can’t perform that action at this time.
0 commit comments