jlonge4 / mychatGPT

GPT chat with your docs!
Apache License 2.0
137 stars 35 forks source link

Update gpt_cust_kb.py #1

Closed pacmanincarnate closed 1 year ago

pacmanincarnate commented 1 year ago

I rewrote quite a bit of the code to make this more functional. It now asks for your API key (though I haven't tested this, since I already have my API key set as an environmental variable) and has a field to ask for a PDF, which then indexes the PDF. If you reload the page, the radio buttons update with every json in the folder. I'm not sure how to make them update without the reload.

I have almost no python experience, so this is probably kind of a mess, but it should give you something to work from and seems pretty functional from my quick testing. Thanks for putting this together so that I had a chance to even get this far.

jlonge4 commented 1 year ago

Hi @pacmanincarnate thanks for you contribution and sorry for the late reply, I have been on vacation. However I did use some ideas from your commit as to which direction to take the final update so I appreciate that! Check out the new functionality and let me know what you think!