Skip to content

Commit

Permalink
Updating ML Commons API documentation (#156) (#163)
Browse files Browse the repository at this point in the history
* updating ML Commons API documentation

Signed-off-by: Alibi Zhenis <alibizhenis4@gmail.com>

* updating developer guide

Signed-off-by: Alibi Zhenis <alibizhenis4@gmail.com>

---------

Signed-off-by: Alibi Zhenis <alibizhenis4@gmail.com>
(cherry picked from commit d1101a2)

Co-authored-by: Alibi Zhenis <92104549+AlibiZhenis@users.noreply.github.com>
  • Loading branch information
opensearch-trigger-bot[bot] and AlibiZhenis committed May 16, 2023
1 parent a81b524 commit 60c98c8
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 5 deletions.
11 changes: 11 additions & 0 deletions DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,17 @@ $ nox -s format
$ nox -s test
```

#### To test documentation

```bash
# New HTML pages will be created in build/html
$ cd docs
$ pip install -r requirements-docs.txt
$ make clean
$ make html
```


#### Default setup for opensearch

```yml
Expand Down
6 changes: 6 additions & 0 deletions docs/source/reference/api/ml_commons_delete_task_api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Delete Task
==================

.. currentmodule:: opensearch_py_ml

.. autofunction:: opensearch_py_ml.ml_commons.MLCommonClient.delete_task
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Upload Pretrained Model
==================

.. currentmodule:: opensearch_py_ml

.. autofunction:: opensearch_py_ml.ml_commons.MLCommonClient.upload_pretrained_model
31 changes: 26 additions & 5 deletions docs/source/reference/mlcommons.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,28 @@ MLCommons Support
.. currentmodule:: opensearch_py_ml

Upload Model
~~~~~~~~~~~~~~
~~~~~~~~~~~~
.. toctree::
:maxdepth: 2

api/ml_commons_upload_api

Upload Pretrained Model
~~~~~~~~~~~~~~~~~~~~~~~
.. toctree::
:maxdepth: 2

api/ml_commons_upload_pretrained_api

Load Model
~~~~~~~~~~~~~~
~~~~~~~~~~
.. toctree::
:maxdepth: 2

api/ml_commons_load_api

Get Task Info
~~~~~~~~~~~~~~
~~~~~~~~~~~~~
.. toctree::
:maxdepth: 2

Expand All @@ -33,17 +40,31 @@ Get Model Info

api/ml_commons_get_model_info_api

Generate Embedding
~~~~~~~~~~~~~~~~~~
.. toctree::
:maxdepth: 2

api/ml_commons_generate_embedding_api

Unload Model
~~~~~~~~~~~~~~
~~~~~~~~~~~~
.. toctree::
:maxdepth: 2

api/ml_commons_unload_model_api

Delete Model
~~~~~~~~~~~~~~
~~~~~~~~~~~~
.. toctree::
:maxdepth: 2

api/ml_commons_delete_model_api

Delete Task
~~~~~~~~~~~
.. toctree::
:maxdepth: 2

api/ml_commons_delete_task_api

0 comments on commit 60c98c8

Please sign in to comment.