oceddyyy's picture
Update README.md
fb68751 verified
---
title: University AI Chatbot
emoji: πŸŽ“
colorFrom: red
colorTo: yellow
sdk: gradio
sdk_version: 5.25.2
app_file: app.py
pinned: false
---
A student-friendly AI chatbot that simplifies university handbook queries.
# πŸŽ“ University Inquiries AI Chatbot
A conversational AI chatbot that helps students navigate and understand the official university handbook using natural language. Built with Gradio, Sentence Transformers, and FLAN-T5, it offers friendly and accurate responses based on handbook content β€” with built-in feedback tracking and upvote/downvote tuning.
---
## ✨ Features
- 🧠 **Semantic Search:** Uses Sentence Transformers to find the closest handbook Q&A to a student's question.
- πŸ—£οΈ **LLM Explanation:** Automatically rewrites formal handbook responses in a student-friendly tone using FLAN-T5.
- πŸ‘ **Feedback Memory:** Stores user feedback (upvotes/downvotes) to improve future responses.
- πŸ”„ **Smart Matching:** Merges similar feedback questions (β‰₯80% similarity) to avoid duplication.
- 🎨 **Custom UI:** Includes a PUP-themed responsive design with a gradient background and styled chat layout.
---
## 🧰 Tech Stack
- [Gradio](https://gradio.app/) β€” for UI interface
- [Sentence Transformers](https://www.sbert.net/) β€” for question embedding & similarity
- [Transformers (FLAN-T5)](https://huggingface.co/google/flan-t5-small) β€” for natural explanation generation
- JSON β€” for persistent feedback storage
---
## πŸ“ Files
- `app.py` β€” main chatbot logic & interface
- `dataset.json` β€” official university Q&A set
- `feedback.json` β€” live feedback database
- `README.md` β€” this file!
---
## πŸ“¦ Installation
```bash
pip install -r requirements.txt