HealthBot EVE is a comprehensive AI-powered chatbot designed to assist with health and wellness guidance, mathematical evaluations, and seamless user interaction management. It combines the power of artificial intelligence with a user-friendly interface to make health support and calculations accessible anytime, anywhere.
Figure 1.1: EVE's intuitive interface ensures smooth and effective user interactions.
EVE provides expert, evidence-based health tips and answers to health-related queries, empowering users to make better decisions about their well-being.
EVE supports quick evaluations of mathematical expressions, making it an efficient tool for users needing precise calculations.
Handle common interactions such as:
- Greetings and farewells
- Command-based navigation
- Chat session management, including clearing history
A detailed help feature is available, guiding users through EVE's commands and functionalities.
EVE leverages a structured JSON-based knowledge base to provide targeted and helpful responses.
Before setting up, ensure the following are met:
- Python: Version 3.6 or higher.
- Dependencies:
- Flask (web framework)
- ChatterBot (chatbot engine)
- NLTK (natural language processing)
- SymPy (symbolic mathematics)
- Knowledge Base:
knowledge_base.json, structured with training data for health-related responses.
Follow these steps to set up EVE on your system:
git clone https://github.com/your-username/your-repository.git
cd your-repository# Create a virtual environment
python -m venv venv
# Activate the virtual environment
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activatepip install -r requirements.txtDependencies in requirements.txt include:
- Flask
- ChatterBot
- nltk
- sympy
Run the following commands in a Python shell:
import nltk
nltk.download('punkt')
nltk.download('stopwords')
nltk.download('averaged_perceptron_tagger')Ensure a file named knowledge_base.json exists in the root directory. Example structure:
{
"training_data": [
{"question": "What are some tips for staying healthy?", "answer": "Eat balanced meals, exercise regularly, and stay hydrated."},
{"question": "How can I lose weight?", "answer": "Maintain a calorie deficit through proper diet and exercise."}
]
}Start the application using:
python eve.pyEVE will be available at: http://localhost:5000.
- Open the chatbot interface in your browser at the provided URL.
- Type your query or command in the input box and press "Send" to interact with EVE.
- Ask Questions: Enter any health-related question, and EVE will respond with expert advice.
- Perform Calculations: Type mathematical expressions like
3 + 7, and EVE will evaluate them. - Exit the Session: Use commands such as
stop,exit,quit, orbyeto end the session. - Help: Type
helpto display a list of available commands.
| User Input | EVE Response |
|---|---|
| Hi, how are you? | Hello! How can I assist you today? |
| What are some tips for fitness? | Exercise daily, eat a balanced diet, and get enough sleep. |
| What is 12 * 8? | The answer is 96. |
| bye | Goodbye! Stay healthy! |
If you encounter any issues:
- Check Dependencies: Ensure all required packages are installed.
- Correct Spelling: Verify your input is clear and correctly spelled.
- Rephrase Queries: Use alternative phrasing for your questions.
- Internet Connectivity: Ensure your device is connected to a stable network.
| Developer | |
|---|---|
| John Maina Wambui | wambuijonmaina@gmail.com |
| Joyita Mithamo Njoki | Joyritanjoki061@gmail.com |
| Dwayne Masinde Lawrence | maslawayne@gmail.com |
| Isaac Maina Muraya | Isaacmuraya254@gmail.com |
- Version: 1.0
- Last Updated: November 30, 2024
We value your feedback!
For inquiries, suggestions, or technical support, please email any of the developers listed above.
Thank you for choosing HealthBot EVE
