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

Feature Request: Enable upload of files to chat with #482

Open
fsagini opened this issue Oct 7, 2023 · 6 comments
Open

Feature Request: Enable upload of files to chat with #482

fsagini opened this issue Oct 7, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@fsagini
Copy link

fsagini commented Oct 7, 2023

Would be great to have the user click on an upload button next to the input box and upload a file, which then gets embedded and can be used as context in the chat

@VatsaDev
Copy link

VatsaDev commented Oct 7, 2023

Thats a great feature, use it alot in claude. But isn't it not nearly as useful as it is with claude, because of How claude has a 100K context length, and it's good at document QA, while Llama has no training on that, and has a context length of 4096, which will fill up quick with documents.

@julien-blanchon
Copy link
Contributor

This PR is a draft for this feature: #449, you can find a gif video in the corresponding issue #441.

This is even going bit further than the Claude implementation as this PR leverage Mathpix to convert the pdf to a markdown file with the latex equation and table in it. Claude just extract pure text from the document and don't process equation and table. However Mathpix is a paid API and most user don't need such powerfull transform.

If many peaple are looking for this feature might update the PR or open a new one with a more simple implementation, more like the Claude one.

If you want you can also improve my PR

@oxaronick
Copy link

It might be worth looking at the open-webui feature. It allows you to upload a PDF to a conversation and does RAG using the document for any messages in that conversation.

I would prefer this to having a PDF converted to markdown within the chat. My use case is bascially uploading PDFs of several hundred pages and having the LLM act as a librarian for that data.

Alternatively, if chat-ui could call an external URL to get the augmented prompt, I'd also be happy with that. However, I don't know if there is any sort of standard API for prompt augmentation. Seems like it's included within most apps like chat-ui.

@shrwnsan
Copy link

shrwnsan commented Jun 2, 2024

Just saw this earlier, "upload file" button in chat
image

🎉

@bruno-oliveira
Copy link

@nsarrazin @julien-blanchon Sorry to bring this back up.
Is there a possibility via the .env.local configuration file to enable file upload in the Chat UI?
So this would be just to parse the contents and add them in the prompt, similar to how other LLMs do it I believe.

I tried to look into the code and the repo but couldn't find anything actionable.

@AlexBlack2202
Copy link

i have same question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

8 participants