private-gpt icon indicating copy to clipboard operation
private-gpt copied to clipboard

allow any document

Open iplayfast opened this issue 2 years ago • 4 comments

As an enhancement, why not allow any document in the documents folder to be ingested. I'm thinking .cpp .h .py would be useful.

iplayfast avatar May 15 '23 22:05 iplayfast

Should be doable:

https://github.com/imartinez/privateGPT/blob/b6f007dbb882a6f9cb4e2f8fee728314c38cddfc/ingest.py#LL30C1-L32C1

Tell us how it works!

MikeCraig418 avatar May 16 '23 19:05 MikeCraig418

I tried it by renaming a cpp file to .txt but results were too slow, had to stop because of life.

iplayfast avatar May 16 '23 22:05 iplayfast

i have renamed my php files to txt and now i ingest my full script ,it will certainly take few days but , it will help me a lot for debug and update, i hope it have same power as chatgpt for coding ...anyone have tried with coding question ?

crypto-maniac avatar May 16 '23 23:05 crypto-maniac

well i have ingest 2mb of php code and the result is pretty bad

Question: make me a full analyse of controller.php Answer: In analyzing the controller.php file, I found that the code has some functions related to SQL and the use of variables for SQL statements. However, I don't find anything relevant or special in the PHP script itself.

we are far from GPT4 wich is make a full analyse of the code ...

crypto-maniac avatar May 17 '23 08:05 crypto-maniac