This is an AI chatbot that helps university students by answering their questions using uploaded PDF files. It uses a method called RAG (Retrieval-Augmented Generation) and Google’s Gemini API to find answers from the document.
This chatbot was made as a semester project
Many students ask the same questions again and again on WhatsApp, Instagram, and YouTube which gets hard to answer. This chatbot gives automatic answers to help solve that problem.
To make this chatbot useful:
- We visited 20 different university websites in Pakistan and copied their FAQs (Frequently Asked Questions).
- We also asked students to fill out a form with their own questions.
- We combined all these questions and answers into one PDF.
- This PDF was used by the chatbot to answer questions.
- Reads PDF files like brochures, admission guides, and FAQs.
- Understands student questions.
- Gives quick and smart answers using AI.
- Upload university-related PDF documents (in our case -> university_faq.pdf)
- Breaks the PDF into small parts for better understanding.
- Turns those parts into a format that AI can understand.
- Finds the best parts of the PDF related to your question.
- Gives a short and helpful answer using Google's Gemini AI.
- Easy-to-use web app made with Streamlit.
- Python
- LangChain
- Streamlit
- PDFPlumber
- NumPy
- scikit-learn
- Google Gemini API
- Upload a PDF file (for example: university FAQs).
- The chatbot reads and splits the content into small parts.
- You type a question (for example: "What documents are needed for NTS?").
- The chatbot finds the most relevant parts from the PDF.
- It uses those parts to give a short and correct answer.
- git clone https://github.com/SohaibBazaz/rag-university-chatbot.git
- cd rag-university-chatbot
- pip install -r requirements.txt
- streamlit run University_Assistant.py
- Add human support when the AI can’t answer.
- Add voice support so users can speak their questions.
- Make a mobile app for easy access on phones.
- Add Urdu language support.
- Sohaib Ahmed Bazaz
- Muhammad Umar
- Maaz Akram