serge icon indicating copy to clipboard operation
serge copied to clipboard

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

Open maxime-dlabai opened this issue 1 year ago • 5 comments

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

  • Parsing the file to read it
  • Split content to respect "limit" of tokens for model to send.
  • To be able to make queries on the elements of the document from the prompt.

maxime-dlabai avatar Mar 22 '23 19:03 maxime-dlabai

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

maxime-dlabai avatar Mar 22 '23 19:03 maxime-dlabai

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

nsarrazin avatar Mar 22 '23 19:03 nsarrazin

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

maxime-dlabai avatar Mar 22 '23 19:03 maxime-dlabai

For sure, feel free to share your findings

nsarrazin avatar Mar 22 '23 19:03 nsarrazin

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.

lee-b avatar Apr 10 '23 17:04 lee-b