private-gpt
private-gpt copied to clipboard
Adding possibility to ask questions via REST API (for use with my project for Code Review/Scanning)
Great project.
Plan to use private "PrivateGPT" along OpenAI GPT for Code Review/Code Scanning.
Exposed the interface to do it via REST API
It can be now loaded as a plugin in my project (https://github.com/marcinguy/betterscan-ce)
Maybe it helps others., also with their projects.
It is a WIP.
Comments/feedback is welcome.
The RAM is not freed after 1 api call. It keeps increasing in each call. Please add the code to free up the ram after each api call.
@gaurav-cointab Thanks
If you run it with gunicorn and not in debug mode the leak hopefully should not happen. Maybe just not in debug mode will be sufficient.
It was a quick PR for my needs.
I also saw this: https://github.com/imartinez/privateGPT/pull/329
I think Gradio has REST API, so maybe it can be used from there.