MediTrain is an AI-powered medical assistant designed to provide users with accurate, empathetic, and clear answers to medical queries. Built using Groq's powerful AI models and Flask, MediTrain emphasizes user-friendly interactions while ensuring that users are reminded to seek professional healthcare advice for proper diagnosis and treatment.
- Conversational Context : Retains the context of recent interactions to provide relevant and cohesive responses.
- Medical Focus : Tailored to assist with general medical questions while avoiding direct diagnoses.
- Empathetic Responses : Ensures responses are clear, considerate, and accurate.
To run MediTrain locally, ensure you have the following:
- Python 3.8+
- A valid Groq API key in the
.env
file - Libraries specified in
requirements.txt
- Clone this repository:
git clone https://github.com/RachitKumarA/Infosys-Internship.git cd MediTrain-Chatbot
- Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
- Install the dependencies:
pip install -r requirements.txt
- Set up your environment variables by creating a
.env
file in the root directory:GROQ_API_KEY=your_groq_api_key_here
- Run the application:
python app.py
- Open the application in your browser (default: http://localhost:5000).
- Interact with MediTrain by typing your medical queries in the input box.
app.py
: Main Flask application script.requirements.txt
: List of required Python packages..env
: Environment file containing sensitive API keys (not included in the repository).
- Groq : AI model powering the chatbot.
- Python-dotenv : For managing environment variables.
- Flask : For backend
- MediTrain is designed as a medical assistant but does not provide medical diagnoses or treatment plans.
- Always consult a certified healthcare professional for medical concerns.
- Add support for multilingual queries.
- Enhance conversation memory to retain context over extended sessions.
- Introduce additional models for region-specific medical advice.
This project is licensed under the MIT License.
Enjoy using MediTrain and let us know if you have suggestions or encounter issues!