Skip to content

Align docs with pluggable benchmark API#1891

Merged
rapids-bot[bot] merged 13 commits intorapidsai:mainfrom
jnke2016:update-docs
Apr 9, 2026
Merged

Align docs with pluggable benchmark API#1891
rapids-bot[bot] merged 13 commits intorapidsai:mainfrom
jnke2016:update-docs

Conversation

@jnke2016
Copy link
Copy Markdown
Contributor

@jnke2016 jnke2016 commented Mar 6, 2026

Description of changes

cuVS Bench documentation updates to align with the pluggable benchmark API:

  • index.rst: Fix datasets.yaml path and document the constraints field in algorithm YAML; add Recommended (orchestrator API) and Legacy CLI workflow; fix intro typo.
  • param_tuning.rst: Add Benchmark modes (sweep vs tune) and tune-mode example.
  • pluggable_backend.rst (new): Document config loader + backend pair, run flow, what the loader produces, steps to add a backend, and a minimal Elasticsearch-style example. Add to cuvs_bench toctree.

@jnke2016 jnke2016 requested review from a team as code owners March 6, 2026 11:33
@jnke2016 jnke2016 requested a review from bdice March 6, 2026 11:33
@jnke2016 jnke2016 self-assigned this Mar 6, 2026
@aamijar aamijar moved this to In Progress in Unstructured Data Processing Mar 9, 2026
@aamijar aamijar added non-breaking Introduces a non-breaking change improvement Improves an existing functionality doc Improvements or additions to documentation and removed improvement Improves an existing functionality labels Mar 9, 2026

**Recommended: Orchestrator API**

Use the `BenchmarkOrchestrator` from `cuvs_bench.orchestrator` for the full workflow:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to avoid confusion, let's assume a new user coming to the docs does not know about, nor want to use, the old APIs. Let's just remove them altogerher and put this as the way users should be downloading datasets and running benchmarks.

# (4) Plot results.
python -m cuvs_bench.plot --dataset deep-image-96-inner

**Legacy CLI**
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this whole seciton.


**Tune mode**

Pass ``mode="tune"`` to use Optuna to search the parameter space instead of running every combination. You must pass:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe work the term "hyperparameter optimization" into this sentence, just for user benefit (so they can make the connection between the two).


Pass ``mode="tune"`` to use Optuna to search the parameter space instead of running every combination. You must pass:

- **constraints** (dict): The optimization target and optional bounds. One metric must be ``"maximize"`` or ``"minimize"`` (the goal). Others can set hard limits with ``{"min": X}`` or ``{"max": X}``. Examples: ``{"recall": "maximize", "latency": {"max": 10}}`` or ``{"latency": "minimize", "recall": {"min": 0.95}}``.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really nice!

@aamijar aamijar removed the request for review from a team April 8, 2026 23:22
@aamijar
Copy link
Copy Markdown
Member

aamijar commented Apr 9, 2026

/merge

@rapids-bot rapids-bot bot merged commit 4893d8d into rapidsai:main Apr 9, 2026
50 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Unstructured Data Processing Apr 9, 2026
enp1s0 pushed a commit to enp1s0/cuvs that referenced this pull request Apr 10, 2026
**Description of changes**

cuVS Bench documentation updates to align with the pluggable benchmark API:

- **index.rst**: Fix datasets.yaml path and document the `constraints` field in algorithm YAML; add Recommended (orchestrator API) and Legacy CLI workflow; fix intro typo.
- **param_tuning.rst**: Add Benchmark modes (sweep vs tune) and tune-mode example.
- **pluggable_backend.rst** (new): Document config loader + backend pair, run flow, what the loader produces, steps to add a backend, and a minimal Elasticsearch-style example. Add to cuvs_bench toctree.

Authors:
  - Joseph Nke (https://github.com/jnke2016)
  - Corey J. Nolet (https://github.com/cjnolet)
  - Anupam (https://github.com/aamijar)

Approvers:
  - Corey J. Nolet (https://github.com/cjnolet)

URL: rapidsai#1891
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Improvements or additions to documentation non-breaking Introduces a non-breaking change

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants