File size: 1,730 Bytes
bc93999
 
 
 
 
 
fb68751
bc93999
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fb68751
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
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