PDF based ChatBot using OpenAI,LangChain (Streamlit)
OBJECTIVE:
- 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:
-
Install requirement file.
-
.Add your project folder to the.env folder you created (put your openai api).
-
Run the main file
-
Upload your pdf and summarize the main content of pdf
-
And the translate feature in the chatbot
THANK YOU & CREDIT
- https://youtu.be/RIWbalZ7sTo
- Streamlit, Langchain, OpenAI community
- googletrans (library)
- venkatesan (My colleague)
Happy learning
Project Link: GitHub - VK-Ant/Pdf_Website__Csv_Based_ChatBot_With_Translator_Using_Streamlit: OpenAI API _ Chatbot implementation