Skip to content

imaheem/HeartBot

 
 

Repository files navigation

HeartBOT

A Key Statistics ChatBot for the British Heart Foundation(BHF) - A joint project between UCL and the BHF

Aim

This project aims to deliver a standalone web application that provides an interactive chatbot that answers FAQs and provides key statistical information based on the BHF compendium.

Configuration & Installation Instructions

  1. Download the code from GitHub
  2. Download python 3.8 from https://www.python.org/
  3. Open your terminal
  4. Change your directory to comp0016_team_20
  5. Run the following command in your terminal:
python fix_dependencies.py
  1. This will install all the dependencies required to run the chatbot

Operating Instructions (Usage)

  1. Open your terminal
  2. Change your directory to comp0016_team_20/src
  3. Run the following command in your terminal:
python app.py
  1. Click on the link displayed in the terminal
  2. This will open your browser with the chatbot web application
  3. Interact with the chatbot using the web interface
  4. Hover over help button in web interface if help is needed
  5. To shutdown the chatbot/web application, in your terminal press CTRL+C to quit
  6. Please refer to the user manual for further guidance

List of Files

  1. src - Contains all the data and code required for the chatbot and web application
  2. FAQS - Contains all the data and code required for the FAQ chatbot
  3. Retrieval - Contains all the data and code required for the data retrieval chatbot
  4. templates - Contains the html code required for the chatbots web application
  5. static - Contains the css code required for the chatbots web application
  6. app.py - The main python file to run and start the web application for the chatbot
  7. unit_test.py - A python file with unit tests
  8. sys_test.py - A python file with system tests
  9. fix_dependencies.py - A python file to automatically download all required dependencies
  10. requirements.txt - A text file that contains all the libraries used in the chatbot code
  11. sources.txt - A text file that contains all references for sections of code and images used
  12. test_questions.txt - A text file that contains a list of example questions that can be used to test the chatbot

Copyright & Licensing Information

  1. HeartBOT’s source code is licensed under Creative Commons Attribution-NonCommercial 4.0 International License.
  2. Link to license: https://creativecommons.org/licenses/by-nc/4.0/
  3. See projects legal statement for further information

Contact Information

UCL - COMP0016 Team 20

Known Bugs

A data retrieval question may get mapped to an FAQ, if it is of the same string length

Bug Description: This would happen when a user presents a question that is too vague, doesn’t contain enough keywords to get recognized as a data-retrieval question, and has a lot of similar words to a question from the FAQ database. In practice, this is highly unlikely to happen because FAQs contain few keywords that are similar to row/column names from the BHF compendium. Furthermore, users of the app are knowledgeable of the compendium and are going to ask targeted specific questions.

Troubleshooting Instructions

  1. Sometimes you may need to use python3 instead of python

Credits & Acknoweldgement

All references are provided in sources.txt

About

Source code for HeartBot student project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 81.7%
  • CSS 9.2%
  • HTML 9.1%