This project is an advanced chatbot. The main focus was to leverage a Large Language Model (LLM) to enhance interaction with a pdf, making it easier to understand its contents. The chatbot relies on the LLM's capabilities to interpret complex user queries and generate responses in the context of the pdf and summarise the topics for more clarity.
Got a pdf that is too long to go through? Want answers or clarity on specific topics? Upload your pdf and have a chat with our bot to clarify all your doubts and confusions!
- Q & A casual and pdf related
- Summarization
- Context page retrieval
Clone or download the zip files from the repository.
Make sure you have Python and pip installed on your device.
Import all the necessary libraries:-
streamlit
pathlib
openai
PyPDF2
langchain
Import dotenv and set up your virtual environment.
python -m venv .venv
Create your API key from the OpenAI site and add it to the newly created .env
file. This only needs to be done the first time you execute the program.
Run the program through streamlit
streamlit run [path to your program].py
The chatbot is ready for you!
The homepage for the chatbot.
Small talk
Asking questions!
The summarizing tool
Special thanks to Rohan Sir for his guidance and support with the project.