A modern AI powered FAQ chatbot designed to help Computer Science students by answering common CS related questions using semantic similarity.
This project was built as a learning focused AI application to understand how sentence embeddings and similarity based models work in real world scenarios.
- ✅ Semantic question answering (not keyword-based)
- 🧠 Uses Sentence Embeddings + Cosine Similarity
- 🤝 Hybrid approach (Rule-based + Machine Learning)
- 🎨 Modern desktop UI (CustomTkinter)
- 🌍 English-only input validation
- ❓ Graceful handling of unknown questions
- 📦 Can be converted into a standalone
.exeapplication
- Python
- Sentence Transformers
- PyTorch
- Pandas
- CustomTkinter (UI)
- Questions and answers are stored in a CSV file (
faq.csv) - Questions are cleaned and converted into sentence embeddings using a pre-trained Transformer model
- User input is embedded using the same model
- Cosine similarity is used to find the most relevant question
- The chatbot returns the corresponding answer if similarity is above a threshold
- Simple rule-based logic handles greetings like "hello" or "hi"