run-llama / rags

Build ChatGPT over your data, all with natural language
MIT License
6.09k stars 617 forks source link

How to upload files? #7

Open Lauorie opened 7 months ago

Lauorie commented 7 months ago

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

snassimr commented 7 months ago

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

alexfilothodoros commented 7 months ago

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

ravi03071991 commented 7 months ago

@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.

alexfilothodoros commented 7 months ago

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.

23mg00 commented 7 months ago

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: @.***>

cocoa126 commented 7 months ago

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

snassimr commented 7 months ago

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 commented 7 months ago

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