Replies: 9 comments 1 reply
-
There are three versions of this feature:
If you want to add 1 or 2 to gptel, PRs are welcome. To begin with I'd read through the file As a side note, you can already select a PDF file as context if you use the Gemini models. However, this is not RAG -- the entire PDF file is parsed with each request, so this is probably best used for one-off requests or very short conversations. |
Beta Was this translation helpful? Give feedback.
-
Oh what I want is the third option since I mostly need AI to help me understand academic papers and I have a lot of questions. |
Beta Was this translation helpful? Give feedback.
-
For the third option, I think you'll need a different tool. I haven't kept up with the state of things, but perhaps something like Khoj? There are many more like it, I think. If the tool provides an HTTP API, it might be possible to continue to use gptel in Emacs to interact with it. |
Beta Was this translation helpful? Give feedback.
-
I looked into
What if I set up a small server to manage PDF files and sessions, and then I use gptel to communicate with that server? |
Beta Was this translation helpful? Give feedback.
-
By the way, it seems like |
Beta Was this translation helpful? Give feedback.
-
It might be possible, privategpt does do some kind of RAG and cites its sources. I am moving this to a discussion since no change is planned on the gptel side for now. |
Beta Was this translation helpful? Give feedback.
-
@WeissP Did you try using an Emacs LLM package (gptel, chatgpt-shell, ellama etc) with PrivateGPT? I'm curious to know if the PrivateGPT RAG works. |
Beta Was this translation helpful? Give feedback.
-
BTW, PDF support was just added to the Anthropic Claude 3.5 Sonnet model, and I added support for it to gptel. |
Beta Was this translation helpful? Give feedback.
-
I have tried setting up a private GPT. It kind of worked on the web interface, more specifically, I can have GPT summarize the PDF with a provided button. However, when I try to ask questions based on a given PDF, it says the mentioned PDF is not accessible. When I use Currently, I am trying to use |
Beta Was this translation helpful? Give feedback.
-
Right now, one can use the GPT-4o API to upload a PDF file and ask questions about it. Here's an example of how to do this with Python.
It would be great if
gptel
could allow users to select a PDF as context and have the AI explain a selected region inpdf-view-mode
, similar to whatgptel-quick
does.Is it currently possible? if not, what functionalities need to be implemented? I am happy to do some contributions. If you believe this isn't the direction for this package, I can create a new package instead, and it would be really helpful if you could give me some guidance on how to go about that or point me to which part of the
gptel
code I should check out.Beta Was this translation helpful? Give feedback.
All reactions