Skip to content

A chatbot for answering questions about and summarizing a user uploaded pdf!

Notifications You must be signed in to change notification settings

AdwaitaBasuBal/PDFbot-Galactico

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Galactico

A pdf summarizer and helpful chatbot!

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!

Authors

Features

  • Q & A casual and pdf related
  • Summarization
  • Context page retrieval

Installation

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

Environment Variables

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.

Deployment

Run the program through streamlit

streamlit run [path to your program].py

The chatbot is ready for you!

Screenshots

The homepage for the chatbot.

Chatbot ss 1

Small talk

normal convo

Asking questions!

chatbot ss 2

The summarizing tool

chatbot ss 3

Page referencing Page number given

Acknowledgements

Special thanks to Rohan Sir for his guidance and support with the project.

About

A chatbot for answering questions about and summarizing a user uploaded pdf!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages