Our goal for this project is to create a functional chatbot to assist new students by addressing their queries about the school. Inspired by ChatGPT, we aim to develop a specialised chatbot that excels in answering HCI-related questions on Discord, aiding both freshmen and seniors in understanding the school.
pip install -r requirements.txt
All other required files will be automatically installed after running code
Main driver code for running The Orientator Discord Bot. Requires src/bot.json
, which contains {"token" : TOKEN}
, TOKEN
being the API Token for the Discord Bot.
Separate code called by src/bot/main.py
for chatbot capabilities.
Separate code called by src/bot/main.py
for retrieving ISP events. Requires src/data/isp_events.json
.
Original data for chatbot, unedited and in simplest form. Required for training chatbot. Contains ~81 rows of data.
Augmented data for chatbot, changed and complex form. Required for training chatbot. Contains ~6700000 rows of data. Created after running src/data-collection/augment_data.py
.
Augmented and processed data for chatbot, changed and final form. Required for training chatbot. Contains ~2000 rows of data. Created after running src/data-collection/augment_data.py
.
Original data for ISP events, required for ?date
command. Created after running src/data-collection/scrape_isp.py
.
Separate code for augmenting data. Required for training chatbot. Requires src/data/base_data.csv
.
Separate code for web scraping ISP-HS. Required for src/bot/get_isp_events.py
and src/data/isp_events.json
.
Main code for training chatbot model. Requires src/data/base_data.csv
, src/data/augmented_data.csv
.
Separate code for quick testing of online models (on HuggingFace), or local models (stored in folder).
Contains directory information (required)
PARENT_DIR
= Full path to The-Orientator-PW-2023/
folder
EXECUTABLE_PATH
= Path to src/data-collection/drivers/chromedriver.exe
Contains Discord Bot API Token
"token"
: Discord Bot API Token
Contains cookies for ISP-HS login (requires HCI account)
- Install
Cookie Editor
extension from Chrome Web Store - Log into ISP-HS in browser
- Press on
Cookie Editor
extension in the top-right corner of screen - Export Cookies as JSON (copied to clipboard)
- Create
src/isp_cookies.json
and paste JSON into file