Skip to content

Add file loader dependencies#112

Open
szx19970521 wants to merge 1 commit into
devloperdevesh:mainfrom
szx19970521:fix-file-loader-dependencies
Open

Add file loader dependencies#112
szx19970521 wants to merge 1 commit into
devloperdevesh:mainfrom
szx19970521:fix-file-loader-dependencies

Conversation

@szx19970521

Copy link
Copy Markdown

Fixes #58.

app/rag/file_loader.py imports both pypdf.PdfReader and docx.Document, but the runtime requirements only listed PyPDF2. A clean install can therefore fail before handling PDF/DOCX uploads:

  • from pypdf import PdfReader needs the pypdf package.
  • from docx import Document needs the python-docx package.

This updates requirements.txt to declare the packages actually imported by the file loader.

@vercel

vercel Bot commented Jun 7, 2026

Copy link
Copy Markdown

@szx19970521 is attempting to deploy a commit to the devloperdevesh's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Missing python-docx dependency in requirements.txt causes ModuleNotFoundError on DOCX file upload

1 participant