@@ -97,7 +97,9 @@ cuvs::neighbors::cagra::index_params to_cagra_params(
9797 int ef_construction,
9898 cuvs::distance::DistanceType metric = cuvs::distance::DistanceType::L2Expanded);
9999
100- /* *@}*/
100+ /* *
101+ * @}
102+ */
101103
102104/* *
103105 * @defgroup hnsw_cpp_index hnswlib index wrapper
@@ -127,7 +129,7 @@ struct index : cuvs::neighbors::index {
127129 /* *
128130 @brief Get underlying index
129131 */
130- virtual auto get_index () const -> void const * = 0;
132+ virtual void const * get_index () const = 0;
131133
132134 auto dim () const -> int const { return dim_; }
133135
@@ -146,7 +148,9 @@ struct index : cuvs::neighbors::index {
146148 HnswHierarchy hierarchy_;
147149};
148150
149- /* *@}*/
151+ /* *
152+ * @}
153+ */
150154
151155/* *
152156 * @defgroup hnsw_cpp_extend_params HNSW index extend parameters
@@ -308,7 +312,9 @@ std::unique_ptr<index<int8_t>> from_cagra(
308312 std::optional<raft::host_matrix_view<const int8_t , int64_t , raft::row_major>> dataset =
309313 std::nullopt );
310314
311- /* *@}*/
315+ /* *
316+ * @}
317+ */
312318
313319/* *
314320 * @defgroup hnsw_cpp_index_extend Extend HNSW index with additional vectors
@@ -342,6 +348,7 @@ std::unique_ptr<index<int8_t>> from_cagra(
342348 * auto additional_dataset = raft::make_host_matrix<float>(res, add_size, index->dim());
343349 * hnsw::extend_params extend_params;
344350 * hnsw::extend(res, extend_params, additional_dataset, *hnsw_index.get());
351+ * @endcode
345352 */
346353void extend (raft::resources const & res,
347354 const extend_params& params,
@@ -375,6 +382,7 @@ void extend(raft::resources const& res,
375382 * auto additional_dataset = raft::make_host_matrix<half>(res, add_size, index->dim());
376383 * hnsw::extend_params extend_params;
377384 * hnsw::extend(res, extend_params, additional_dataset, *hnsw_index.get());
385+ * @endcode
378386 */
379387void extend (raft::resources const & res,
380388 const extend_params& params,
@@ -408,6 +416,7 @@ void extend(raft::resources const& res,
408416 * auto additional_dataset = raft::make_host_matrix<uint8_t>(res, add_size, index->dim());
409417 * hnsw::extend_params extend_params;
410418 * hnsw::extend(res, extend_params, additional_dataset, *hnsw_index.get());
419+ * @endcode
411420 */
412421void extend (raft::resources const & res,
413422 const extend_params& params,
@@ -441,13 +450,16 @@ void extend(raft::resources const& res,
441450 * auto additional_dataset = raft::make_host_matrix<int8_t>(res, add_size, index->dim());
442451 * hnsw::extend_params extend_params;
443452 * hnsw::extend(res, extend_params, additional_dataset, *hnsw_index.get());
453+ * @endcode
444454 */
445455void extend (raft::resources const & res,
446456 const extend_params& params,
447457 raft::host_matrix_view<const int8_t , int64_t , raft::row_major> additional_dataset,
448458 index<int8_t >& idx);
449459
450- /* *@} */
460+ /* *
461+ * @}
462+ */
451463
452464/* *
453465 * @defgroup hnsw_cpp_search_params Build CAGRA index and search with hnswlib
@@ -460,7 +472,9 @@ struct search_params : cuvs::neighbors::search_params {
460472 // automatically maximizes parallelism
461473};
462474
463- /* *@}*/
475+ /* *
476+ * @}
477+ */
464478
465479// TODO: Filtered Search APIs: https://github.com/rapidsai/cuvs/issues/363
466480
@@ -645,7 +659,9 @@ void search(raft::resources const& res,
645659 raft::host_matrix_view<uint64_t , int64_t , raft::row_major> neighbors,
646660 raft::host_matrix_view<float , int64_t , raft::row_major> distances);
647661
648- /* *@}*/
662+ /* *
663+ * @}
664+ */
649665
650666/* *
651667 * @defgroup hnsw_cpp_index_serialize Deserialize CAGRA index as hnswlib index
@@ -940,7 +956,9 @@ void deserialize(raft::resources const& res,
940956 cuvs::distance::DistanceType metric,
941957 index<int8_t >** index);
942958
943- /* *@}*/
959+ /* *
960+ * @}
961+ */
944962
945963} // namespace cuvs::neighbors::hnsw
946964
0 commit comments