Skip to content

Commit

Permalink
Include documentation in Doxygen
Browse files Browse the repository at this point in the history
  • Loading branch information
lowener committed Nov 18, 2024
1 parent 8630e1b commit 2f5813a
Show file tree
Hide file tree
Showing 12 changed files with 92 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ compile_commands.json
.clangd/

# serialized ann indexes
brute_force_index
cagra_index
ivf_flat_index
ivf_pq_index
Expand Down
7 changes: 7 additions & 0 deletions cpp/include/cuvs/neighbors/brute_force.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,14 @@ void search(raft::resources const& handle,
raft::device_matrix_view<float, int64_t, raft::row_major> distances,
const cuvs::neighbors::filtering::base_filter& sample_filter =
cuvs::neighbors::filtering::none_sample_filter{});
/**
* @}
*/

/**
* @defgroup bruteforce_cpp_index_serialize Bruteforce index serialize functions
* @{
*/
/**
* Save the index to file.
*
Expand Down
8 changes: 8 additions & 0 deletions docs/source/c_api/neighbors_bruteforce_c.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,11 @@ Index search
:project: cuvs
:members:
:content-only:

Index serialize
---------------

.. doxygengroup:: bruteforce_c_index_serialize
:project: cuvs
:members:
:content-only:
4 changes: 2 additions & 2 deletions docs/source/c_api/neighbors_hnsw_c.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ Index
Index search
------------

.. doxygengroup:: cagra_c_index_search
.. doxygengroup:: hnsw_c_index_search
:project: cuvs
:members:
:content-only:

Index serialize
------------
---------------

.. doxygengroup:: hnsw_c_index_serialize
:project: cuvs
Expand Down
8 changes: 8 additions & 0 deletions docs/source/c_api/neighbors_ivf_flat_c.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,11 @@ Index search
:project: cuvs
:members:
:content-only:

Index serialize
---------------

.. doxygengroup:: ivf_flat_c_index_serialize
:project: cuvs
:members:
:content-only:
8 changes: 8 additions & 0 deletions docs/source/c_api/neighbors_ivf_pq_c.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,11 @@ Index search
:project: cuvs
:members:
:content-only:

Index serialize
---------------

.. doxygengroup:: ivf_pq_c_index_serialize
:project: cuvs
:members:
:content-only:
8 changes: 8 additions & 0 deletions docs/source/cpp_api/neighbors_bruteforce.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,11 @@ Index search
:project: cuvs
:members:
:content-only:

Index serialize
---------------

.. doxygengroup:: bruteforce_cpp_index_serialize
:project: cuvs
:members:
:content-only:
10 changes: 10 additions & 0 deletions docs/source/python_api/neighbors_brute_force.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,13 @@ Index search
############

.. autofunction:: cuvs.neighbors.brute_force.search

Index save
##########

.. autofunction:: cuvs.neighbors.brute_force.save

Index load
##########

.. autofunction:: cuvs.neighbors.brute_force.load
10 changes: 10 additions & 0 deletions docs/source/python_api/neighbors_cagra.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,13 @@ Index search
############

.. autofunction:: cuvs.neighbors.cagra.search

Index save
##########

.. autofunction:: cuvs.neighbors.cagra.save

Index load
##########

.. autofunction:: cuvs.neighbors.cagra.load
10 changes: 10 additions & 0 deletions docs/source/python_api/neighbors_hnsw.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,13 @@ Index search
############

.. autofunction:: cuvs.neighbors.hnsw.search

Index save
##########

.. autofunction:: cuvs.neighbors.hnsw.save

Index load
##########

.. autofunction:: cuvs.neighbors.hnsw.load
10 changes: 10 additions & 0 deletions docs/source/python_api/neighbors_ivf_flat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,13 @@ Index search
############

.. autofunction:: cuvs.neighbors.ivf_flat.search

Index save
##########

.. autofunction:: cuvs.neighbors.ivf_flat.save

Index load
##########

.. autofunction:: cuvs.neighbors.ivf_flat.load
10 changes: 10 additions & 0 deletions docs/source/python_api/neighbors_ivf_pq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,13 @@ Index search
############

.. autofunction:: cuvs.neighbors.ivf_pq.search

Index save
##########

.. autofunction:: cuvs.neighbors.ivf_pq.save

Index load
##########

.. autofunction:: cuvs.neighbors.ivf_pq.load

0 comments on commit 2f5813a

Please sign in to comment.