-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interacting with privateGPT (specifically for RAG) #305
Comments
You're going to have to provide more context for me to understand what you're looking for. What do you expect |
I want to use privateGPT to generate responses based on embeddings I previously generated by "ingesting" several PDFs (in privateGPT lingo). According to the API reference, if I set |
I am an elisp novice reading open issues to learn. Lines 102 to 107 in 8ccdc31
I believe inserting: :use_context t
:include_sources t after line 103 will do what you want but is likely to break other things. This change will add those key/value pairs to the data sent to the OpenAI API through curl. |
I believe inserting:
``` elisp
:use_context t
:include_sources t
```
after line 103 will do what you want but is likely to break other things. This change will add those key/value pairs to the data sent to the OpenAI API through curl.
This is correct. I'll need to find some way of adding this via the configuration.
|
I just tried your proposed change, and it worked, at least for respecting the given context! Thanks! Maybe I'll try and create a separate |
You'll need to write a new struct type |
Great, thanks for the information! I'll see how far I get, and if I encounter any big problems, I'll come back to you. |
So, after a bit of trial and error, I managed to create a first working version of Here are the different definitions:
Generally the code is working, however I still have an open question: |
Thanks! Would you like to raise a PR? I can review the code and we can add it to gptel. |
Sure, I just raised the PR. Let me know if there any further changes necessary. |
Hello, I'm looking for a way to use privateGPT as a backend for gptel, in order to use its simple RAG pipeline.
Specifically, I'm looking for a way to provide additional keywords to the backend (such as "use_context" and "include_sources").
I can generally use privateGPT as an "openai"-like backend with the following configuration:
I tried simply adding the keyword to the configuration:
However, if I do that, I get the following error message:
So, is there a way to get this to work? Or am I approaching it completely wrong?
The text was updated successfully, but these errors were encountered: