• Stars
    star
    135
  • Rank 269,297 (Top 6 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 1 year ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

GPT chat with your docs!

GPT -> PDF Chatbot

After seeing much desire for a GPT chatbot that uses your own PDFs, I decided to code this project. I hope you enjoy it!

Installation

To set up this project, first you need to add your OPENAI_API key as an env variable, or add it on line 13 of the .py file and deleting line 12. Next, run pip install -r /path/to/requirements.txt. Lastly, put all of your PDFs you wish to chat with in a central repository, and add the path to PATH_TO_PDFs in the .py file.

Usage

Use the command python -m streamlit run "path/to/project/gpt_custkb.py". This will start the app in your browser. Once you have uploaded your PDFs, refresh the browser, select a manual, and ask away!

History

WORK IN PROGRESS

Currently the .py file is all you need to produce the functionality shown in the video. Manual/PDF selection is not working as of yet, but due to the questions about how to make this work I wanted to provide some source code for the time being. Follow for updates as I change this project into something that allows you to run locally and upload your PDFs, then select them on the sidebar as you wish. Thanks!

Credits

TODO: Write credits

License

TODO: Write license