|
--- |
|
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 |