serge-chat / serge

A web interface for chatting with Alpaca through llama.cpp. Fully dockerized, with an easy to use API.
https://serge.chat
Apache License 2.0
5.67k stars 407 forks source link

Add the possibility to upload PDFs in the front part of the application to read it #17

Open maxime-dlabai opened 1 year ago

maxime-dlabai commented 1 year ago

Create on the front end the possibility to upload a PDF file for example with the following procedure:

maxime-dlabai commented 1 year ago

(Of course it's not critical but it would really be a plus on the front)

nsarrazin commented 1 year ago

Yeah that would be super useful agreed! I think we need to implement a LangChain integration (see #4) in order to do this the easy way and not reinvent the wheel.

I will try to work on this in the near future

maxime-dlabai commented 1 year ago

I'll look into the LangChain integration on my end, if I can help.

nsarrazin commented 1 year ago

For sure, feel free to share your findings

lee-b commented 1 year ago

The models usually can't actually read very much without forgetting what they already read. You might be able to upload a page or two, but for that much you could probably copy and paste just as easily.