This project is an AI-powered healthcare chatbot designed to assist users by answering health-related queries, analyzing symptoms, and providing preliminary medical insights. It integrates a pre-trained AI model (Flan-T5-Large) along with a medical knowledge base to enhance response accuracy.
- Provides AI-generated responses to health-related queries
- Uses a predefined medical knowledge base for instant answers
- Utilizes natural language processing (NLP) for better understanding
- Built using the Streamlit framework for a user-friendly interface
- Includes logging and error handling for debugging and monitoring
-
Clone the Repository
git clone https://github.com/Agent-A345/AI-Healthcare-Chatbot.git
cd AI-Healthcare-Chatbot -
Create a Virtual Environment (Optional)
python -m venv chatbot_envActivate the virtual environment:
- On macOS/Linux: source chatbot_env/bin/activate
- On Windows: chatbot_env\Scripts\activate
- On macOS/Linux: source chatbot_env/bin/activate
-
Install Dependencies
pip install -r requirements.txt -
Run the Chatbot
streamlit run app.py
- Python 3.x
- Streamlit (For user interface)
- Transformers (For AI model integration)
- PyTorch (For deep learning)
- Logging module (For error handling and debugging)
- The user enters a health-related query in the chatbot.
- The chatbot first checks the predefined medical knowledge base for an instant response.
- If the query is not found in the knowledge base, it is processed by the Flan-T5-Large model.
- The model generates a context-aware medical response using NLP techniques.
- The response is displayed in the Streamlit UI.
- Implementing voice input for hands-free interaction
- Adding multilingual support for better accessibility
- Integrating with external medical APIs for real-time data retrieval
- Developing a mobile application for better accessibility
This project is licensed under the Apache License 2.0