Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[DOC] CAGRA documentation fix for load

Open Beginner friendly
#2,695 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
documentation

Research direction

Start at the CAGRA Python API documentation for cagra.load linked in the issue and compare its documented call with the working Index, Dataset, and out_dataset example. Update the definition and example to match the current API, then verify that the documented load call runs without the reported TypeError and returns neighbors and distances.

Written by the indexing model from the issue text.

Description

doc

Report incorrect documentation

Location of incorrect documentation
https://docs.nvidia.com/cuvs/api-reference/python-api-neighbors-cagra#load

Describe the problems or issues found in the documentation
This is inconsistent with the current version.

Steps taken to verify documentation is incorrect
simply doing whatever is written in the index is throwing error.

File "x/x1.py", line 53, in main index = cagra.load("index") ^^^^^^^^^^^^^^^^^^^ File "cuvs/common/resources.pyx", line 128, in cuvs.common.resources.auto_sync_resources.wrapper File "cuvs/neighbors/cagra/cagra.pyx", line 980, in cuvs.neighbors.cagra.cagra.load TypeError: load() takes at least 2 positional arguments (1 given

Suggested fix for documentation
please change the definition of the one in the documentation


Report needed documentation

Report needed documentation
this is the actual way to load it I believe, this works properly and returns the distances & neighbors.

index = cagra.Index()
dataset = cagra.Dataset()

cagra.load(
    index,
    "index",
    out_dataset=dataset,
)

cuvs version: 26.08.01

Dominant language
Cuda
Stars
854
Forks
236
Avg merge
3d 10h
Merged PRs (30d)
65

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NVIDIA/cuvs

All issues in NVIDIA/cuvs

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.