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

RAG quickstart entry point passes an unsupported paths argument

Open Beginner friendly
#14,610 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
92/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
google-cloud, python
Domain
ai

Research direction

Open generative_ai/rag/quickstart_example.py and inspect the main block together with the quickstart definition. Run the sample entry point or the reported static call check to confirm the mismatch. Done means the command-line sample passes the supported gcs_path argument and no longer raises the unexpected-keyword error.

Written by the indexing model from the issue text.

Description

samples

In which file did you encounter the issue?

generative_ai/rag/quickstart_example.py

Did you change the file? If so, how?

No.

Describe the issue

Running the sample entry point reaches the __main__ block and calls quickstart with a paths keyword:

quickstart(
    display_name="test_corpus_quickstart",
    paths=[gdrive_path, gcloud_path],
)

The function is defined as quickstart(display_name, gcs_path), so the sample fails before making an API request.

Reproduction output:

TypeError: quickstart() got an unexpected keyword argument 'paths'

The same mismatch is visible with a static call check:

quickstart_example.py:147: error: Unexpected keyword argument "paths" for "quickstart"  [call-arg]

Expected behavior: the command-line sample invokes quickstart with the supported gcs_path argument. Actual behavior: it raises TypeError and cannot run.

Environment: Python 3.12, repository main at commit 430a87ada6f2d33f318b5d16b77464679905a140.

Dominant language
Jupyter Notebook
Stars
8.1k
Forks
6.7k
Avg merge
4d 4h
Merged PRs (30d)
8

Contributor guide

Open the contributing guide

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 GoogleCloudPlatform/python-docs-samples

All issues in GoogleCloudPlatform/python-docs-samples

Similar issues

More AI Infra & Agents issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.