Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

RAG quickstart entry point passes an unsupported paths argument

未關閉 適合新手
#14,610 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
1/5
預估耗時
1 小時以內
新手友好度
92/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
google-cloud, python
領域
ai

研究方向

開啟 generative_ai/rag/quickstart_example.py,檢查 main 區塊以及 quickstart 定義。執行範例進入點或回報的靜態呼叫檢查,以確認不一致。命令列範例傳遞受支援的 gcs_path 引數,且不再引發 unexpected-keyword 錯誤,即表示完成。

由索引模型根據 Issue 內容生成。

描述

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.

主要語言
Jupyter Notebook
星號
8.1k
分支
6.7k
平均合併
4 天 4 小時
30 天內合併 PR
8

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

GoogleCloudPlatform/python-docs-samples 的其他 Issue

查看 GoogleCloudPlatform/python-docs-samples 的全部 Issue

相似的 Issue

更多 AI Infra & Agents Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。