Niek / chatgpt-web

ChatGPT web interface using the OpenAI API
https://niek.github.io/chatgpt-web/
GNU General Public License v3.0
1.81k stars 459 forks source link

File QA support. #255

Open Microwave-WYB opened 1 year ago

Microwave-WYB commented 1 year ago

Is it possible to support file uploads (txt, md, docx, pdf, etc.)? We can use langchain's file QA chains to allow user ask question about their files.

Or, a simple solution that I've tried in my own project. Use gpt-3.5-turbo-16k to extract information from the uploaded file that are useful to answer a question, use a sliding window if the file is too large. Then, feed these extracted information to the preferred model, such as gpt-4, to generate a final answer.

Webifi commented 1 year ago

related to #224 & #225

Not sure @Niek 's opinion, but from my point of view langchain isn't a great fit. However it would be nice to do something like it. Just not sure I have the time or inclination to do it right now.