Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Librechat can not read PDF file #31

Open
onigetoc opened this issue May 18, 2024 · 2 comments
Open

Librechat can not read PDF file #31

onigetoc opened this issue May 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@onigetoc
Copy link

onigetoc commented May 18, 2024

Bug report

Describe the bug

I downloaded this PDF file: https://sba.thehartford.com/wp-content/uploads/2019/05/99-Business-Ideas-eBook.pdf
When i try to add a PDF iLibreChat try to open it from extract_text_from_pdf() i Got a error that it cannot extract the text.

To Reproduce

Test with Groq and OpenAI and others model.
Just drag and drop PDF file to libreChat from your LibreChat website.

Expected behavior

Successful file attachment and chat with it.

Screenshots

Multiple way to show error, with a toast alert or directly in the chat that it can read the file.

System information

  • OS: Windows 10
  • Browser: Chrome
  • Version of Node.js: v18.14.0

Additional context

None for now.

@onigetoc onigetoc added the bug Something isn't working label May 18, 2024
@gregnr
Copy link
Collaborator

gregnr commented May 19, 2024

Hey @onigetoc - a bit confused on this issue. This repo doesn't support PDF reading out of the box. It was designed as part of a video tutorial to give you the foundation for a chat-with-your-files app with markdown files as the example.

It sounds like you might be trying to integrate this with the LibreChat app? There's no built-in integration with LibreChat, so related issues would be out of scope for this project. Can you provide a bit more info about what you're hoping to accomplish?

@onigetoc
Copy link
Author

onigetoc commented May 22, 2024

You may just add a library that convert PDF to text and it wiil take it as a document. Then we could chat with PDF converted to text or Markdown (as you usually do with others documents.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants