rags icon indicating copy to clipboard operation
rags copied to clipboard

How to upload files?

Open Lauorie opened this issue 1 year ago • 8 comments

I turn to page RAG Config, but it shows "File/URL paths (not editable)".So where can I upload PDFs?

Lauorie avatar Nov 22 '23 08:11 Lauorie

Hi ,

I've got a chance to set filepath during this conversation at Home page :

image image

But bot at Generated RAG Agent still unable to answer questions about the PDF :

image

snassimr avatar Nov 22 '23 15:11 snassimr

@snassimr What if you ask a question whose answer is in the text instead of a figure? It is answering correctly?

alexfilothodoros avatar Nov 23 '23 19:11 alexfilothodoros

@alexfilothodoros and @snassimr I tried creating a bot on llama2 paper and it did answer questions related to text though it was failing to answer queries on figure 2. It might be due to the issue with the pdf parser.

ravi03071991 avatar Nov 25 '23 16:11 ravi03071991

Maybe you need the GPT-4V model.

**EDIT

on second thought that might also not work. I forgot that GPT-4V doesn't accept pdf files.

alexfilothodoros avatar Nov 25 '23 16:11 alexfilothodoros

Unsubscribe

On Sat, Nov 25, 2023 at 10:07 AM Alexandros Filothodoros < @.***> wrote:

Maybe you need the GPT-4V model.

— Reply to this email directly, view it on GitHub https://github.com/run-llama/rags/issues/7#issuecomment-1826367186, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCO6VRSH2MQERL6HCSSZXSDYGIJURAVCNFSM6AAAAAA7V3OIROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWGM3DOMJYGY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

23mg00 avatar Nov 25 '23 17:11 23mg00

I turn to page RAG Config, but it shows "File/URL paths (not editable)".So where can I upload PDFs?

I am not quite sure what's the point

cocoa126 avatar Nov 26 '23 12:11 cocoa126

Hi ,

Sorry for late answer . The issue was with pdf file name . Linux doesn't suffer blanks and file actually wasn't loaded at home page. After @jerryjliu point me on my mistake the PDF was loaded at home page and at "Generated RAG Agent" I get nice answer from Agent :

image

I think some Exception handling (in agent_utils.py -> load_data) and returning an appropriate answer to chat is favorable here .

Another issue (might be parser problem) that asking about Figure 2 returning answer about Figure 30 , but it;s another story . I guess we can benefit from this repo which primarily benefit to use agent to built agent and retriever/qa performance can be improved more and more ...

snassimr avatar Nov 26 '23 23:11 snassimr

Regarding setting filepath - use bot at home page . Here the example for first filepath setting 👍

image

And continue with the bot until you get :

image

snassimr avatar Nov 26 '23 23:11 snassimr