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.
In which file did you encounter the issue?
generative_ai/rag/quickstart_example.pyDid you change the file? If so, how?
No.
Describe the issue
Running the sample entry point reaches the
__main__block and callsquickstartwith apathskeyword:The function is defined as
quickstart(display_name, gcs_path), so the sample fails before making an API request.Reproduction output:
The same mismatch is visible with a static call check:
Expected behavior: the command-line sample invokes
quickstartwith the supportedgcs_pathargument. Actual behavior: it raisesTypeErrorand cannot run.Environment: Python 3.12, repository
mainat commit430a87ada6f2d33f318b5d16b77464679905a140.