PDF Based Chatbot using OpenAI

PDF based ChatBot using OpenAI,LangChain (Streamlit)

OBJECTIVE:

  1. The project’s goal is to create a chatbot that can quickly summarise your books’ contents.

Project Diagram

STEPS TO FOLLOW IN THIS PROJECT:

1. Git clone and change directory

$  git clone https://github.com/VK-Ant/PDFBasedChatBot_With_Translator_Using_Streamlit.git
$ cd pdfchatbot_streamlit

Make sure the path is correct.

2. Install prerequisite library using requirement file


$ pip install -r requirements.txt

or

if you got openai no attribute error, install below code

$ pip install -r requirements_v1.txt


Check that OpenAI,langchain,streamlit,PyPDF2, and datetime are installed on yourdevice (Packages).

3.Add your project folder to the.env folder you created (put your openai api key)

‘’‘bash
OPENAI_API_KEY = your openai api key
‘’’

4. Finally run the code


$ bash run.sh

or

$ streamlit run VK_BookBasedChatbot.py

5. if you want pdf based chatbot with translator try this code


$ streamlit run translate.py

PROJECT DESCRIPTION:

  1. Install requirement file.

  2. .Add your project folder to the.env folder you created (put your openai api).

  3. Run the main file

  4. Upload your pdf and summarize the main content of pdf

  5. And the translate feature in the chatbot

THANK YOU & CREDIT

  1. https://youtu.be/RIWbalZ7sTo
  2. Streamlit, Langchain, OpenAI community
  3. googletrans (library)
  4. venkatesan (My colleague)

:hugs:Happy learning​:hugs:

Project Link: GitHub - VK-Ant/Pdf_Website__Csv_Based_ChatBot_With_Translator_Using_Streamlit: OpenAI API _ Chatbot implementation