Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[19] [Bug] [Retrieval] File document IDs depend on how the path is spelled; uppercase extensions are skipped

Đang mở
#1,663 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
huggingface, python
Lĩnh vực
ai, data

Hướng nghiên cứu

Start with the source assignment in retrieval/loaders/text_loader.py (around line 55), then csv_loader.py, json_loader.py, pdf_loader.py and pdf_ocr_loader.py, and the rglob calls in directory mode. The HuggingFace source strings are in huggingface_loader.py near lines 138 and 180. Done means the same file gives the same id through different path spellings, and SCAN.PDF-style files are picked up. Decide the base for relative paths first, since that changes existing ids.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area:retrieval
Description
Proposed fix
  • Use the path relative to the directory passed in, or a resolved absolute path, as the source. Relative is more portable.
  • Include the config and revision in HuggingFace sources.
  • Match extensions case-insensitively.
Acceptance criteria
  • The same file loaded through different path spellings gets the same id.
  • Uppercase extensions are picked up in directory mode.
Ngôn ngữ chính
Python
Star
230
Fork
57
Merge trung bình
2 ngày 20 giờ
Pull request đã merge (30 ngày)
36

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của RailtownAI/railtracks

Tất cả issue của RailtownAI/railtracks

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.