Chatbot on PDF Data using Langchain and OpenAI API

Steps to run this code.

  1. git clone this repository and create a .env file with OPEN_API_KEY as a variable.
  2. Install all the dependencies from requirements.txt file
  3. Create a free account on OpenAI and Go to your Profile -> View API Keys. Copy and paste the key in .env
  4. Run streamlit run api.py on terminal.
  5. Upload a PDF on the UI and ask questions related to the PDF