Skip to content

RAG quickstart entry point passes an unsupported paths argument #14610

Description

@aniruddhaadak80

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    samplesIssues that are directly related to samples.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions