RAG quickstart entry point passes an unsupported paths argument
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
開啟 generative_ai/rag/quickstart_example.py,檢查 main 區塊以及 quickstart 定義。執行範例進入點或回報的靜態呼叫檢查,以確認不一致。命令列範例傳遞受支援的 gcs_path 引數,且不再引發 unexpected-keyword 錯誤,即表示完成。
由索引模型根據 Issue 內容生成。
描述
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
環境準備
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
GoogleCloudPlatform/python-docs-samples 的其他 Issue
-
samples
難度 2/5 1-3 小時 新手友好度 88/100
GoogleCloudPlatform/python-docs-samples#14609 ·
維護者通常 1 天內回覆
-
samples
難度 2/5 1-3 小時 新手友好度 88/100
GoogleCloudPlatform/python-docs-samples#14611 ·
維護者通常 1 天內回覆
-
chore(generative_ai) Update model references for generative_ai samples可能重新可做 @XrossFox 於 153 天前認領,目前沒有進行中的 PR。 未關閉samples
GoogleCloudPlatform/python-docs-samples#14117 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Fix Pipeline dependency issues for geospatial-classification/serving_app可能重新可做 @XrossFox 於 165 天前認領,目前沒有進行中的 PR。 未關閉samples
GoogleCloudPlatform/python-docs-samples#14091 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
samples
難度 4/5 3-5 天 新手友好度 30/100
GoogleCloudPlatform/python-docs-samples#13734 · 4 則留言 ·
維護者通常 1 天內回覆
查看 GoogleCloudPlatform/python-docs-samples 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
UKGovernmentBEIS/inspect_ai#5592 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 84/100
run-llama/llama_index#23273 ·
維護者通常 2 天內回覆
-
hermes-plugin: agent_id lookup ignores agent_identity, so calls are attributed to the default agent未關閉
難度 2/5 1-3 小時 新手友好度 78/100
TencentCloud/TencentDB-Agent-Memory#1545 · 1 則留言 ·
維護者通常 1 天內回覆
-
fix(ai): avoid text tool call recovery middleware on native OpenAI responses/completions streams未關閉
難度 2/5 1-3 小時 新手友好度 84/100
code-yeongyu/senpi#2203 ·
維護者通常 1 天內回覆
-
area:ai-suggestions bug good first issue P2
難度 2/5 1-3 小時 新手友好度 84/100
uttrflow/uttrflow-swift#1922 ·
維護者通常 1 天內回覆