RAG quickstart entry point passes an unsupported paths argument
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 92/100
Hướng nghiên cứu
Mở generative_ai/rag/quickstart_example.py và kiểm tra main block cùng với định nghĩa quickstart. Chạy sample entry point hoặc static call check đã được báo cáo để xác nhận sự không khớp. Hoàn tất khi sample dòng lệnh truyền đối số gcs_path được hỗ trợ và không còn phát sinh lỗi unexpected-keyword.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 8.1k
- Fork
- 6.7k
- Merge trung bình
- 4 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 8
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của GoogleCloudPlatform/python-docs-samples
-
samples
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
samples
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
samples
GoogleCloudPlatform/python-docs-samples#14117 · 1 người được giao ·
-
samples
GoogleCloudPlatform/python-docs-samples#14091 · 1 người được giao ·
-
Add doc samples for Agent Engine Đang mởsamples
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
GoogleCloudPlatform/python-docs-samples#13734 · 4 bình luận ·
Tất cả issue của GoogleCloudPlatform/python-docs-samples
Issue tương tự
-
area-ai untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
dotnet/extensions#7783 ·
-
comp/agent P2 provider/kimi provider/openrouter type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NousResearch/hermes-agent#122303 · 1 bình luận ·
-
sdk-python
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
anomalyco/models.dev#8058 · 1 bình luận ·
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:auth-provider issue-rating: 🦞 diamond lobster P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100