Skip to content

shahidul034/KUET-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kuetbot

Kuetbot is a simple chatbot designed to answer questions about Khulna University of Engineering and Technology. It uses NLP to generate relevant responses and python flask as the GUI. The focus of this project was to build a bot where data could be added with little to no effort, without having to rewrite any code.

Prerequisites

  • Python 3
  • Flask==2.2.2
  • nltk==3.7
  • requests==2.28.1
  • scikit_learn==1.2.1

Download

You can download the pyinstaller build of Kuetbot by clicking here or by cloning the project using the following command:

git clone https://github.com/shahidul034/KUET-chatbot.git

How it works

Kuetbot uses the CountVectorizer from the scikit-learn library to convert the text data into a numerical representation, which is then used to calculate the cosine similarity between the user's input and the answers stored in the dataset. The answer with the highest cosine similarity is returned as the most relevant response.

The dataset is a slightly formatted text file, where new data can be added simply by appending it, following the established formatting.

Screenshots

Init Query1 Query3

How to Use

pyinstaller Build

  • Download the pyinstaller alpha build
  • Unzip
  • Go to /dist/app/
  • Run app.exe
  • Go to your browser and enter the address given in the newly opened terminal instance. http://127.0.0.1:5000 by default.

Disclaimer

This is an alpha version of Kuetbot as proof of concept. expect bugs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published