Skip to content

ibizabroker/gpt-pdf-bot

Repository files navigation


PDF Bot: Your Intelligent PDF Assistant

Python LangChain OpenAI Streamlit

OverviewInstallationInstructions to UseContribution

Overview

PDF Bot is an advanced AI-powered bot designed to assist you with questions and queries related to PDF documents. Leveraging the power of OpenAI's GPT model, PDF Bot offers a seamless experience for users seeking information and insights from their PDF files. Whether you have a single file or multiple documents, PDF Bot is here to help.

Installation

  • Clone the repository: git clone https://github.com/ibizabroker/gpt-pdf-bot.git
  • Create a virtual environment
$ pip install virtualenv
$ virtualenv venv
$ .\venv\Scripts\activate
  • Once your virtual environment is activated, install the required pacakges: pip install -r requirements.txt
  • Create a .env file in the working directory. Copy the contents of .env.example and fill it with your openai key.
  • Run the streamlit app in an activated virtual environment: streamlit run bot.py

Instructions to Use

  • The repository has a sample pdf, which has already been embedded in vector form using chroma db.
  • You can either drag and drop or browse files to upload pdfs, after the pdfs have been uploaded press on 'Upload to DB' for it to get embedded.
  • Start chatting with the bot :)

Example Screenshot

Contribution

Feel free to open an issue or submit a pull request. Your feedback and suggestions are greatly appreciated :)

This project is licensed under the MIT License - see the LICENSE file for details.