Welcome to the MedAI Assistant project! This repository is designed for the TiDB Hackathon hosted by Devpost and leverages state-of-the-art technology to provide advanced healthcare insights using AI. Our application integrates a React frontend with a Django backend, incorporating Langchain AI agents and OpenAI’s GPT-4 to deliver valuable health information.
- Project Overview
- Project Demo
- Technologies Used
- Agents
- Frontend Setup
- Backend Setup
- Contributing
- License
MedAI Assistant is designed to assist users with healthcare-related information through AI-powered analysis. It offers features like heart rate data analysis, prescription interpretation, and medicine information retrieval. This project combines the power of modern frontend technologies with robust backend services and intelligent agents.
Demo.mp4
- Frontend: React
- Backend: Django
- AI Integration: Langchain AI agents, OpenAI GPT-4
- Database: TiDB (distributed SQL database)
Our application includes the following AI agents:
-
HeartRateAnalyzerAgent
- Name: Heart_Rate_Analyzer
- Description: Fetches the heart rate data of the user for the last 7 days.
-
PrescriptionAnalyzerAgent
- Name: Prescription_Analyzer
- Description: Extracts medicine names and other meaningful information from a computer-generated prescription image provided by the user.
-
MedicineSearchAgent
- Name: Medicine_Search_Agent
- Description: Retrieves detailed information about a medicine if the PrescriptionAnalyzerAgent cannot retrieve it.
-
Navigate to the Frontend Directory:
cd frontend
-
Install Dependencies:
npm install
-
Run the Development Server:
npm start
The application will be accessible at
http://localhost:3000
.
-
Navigate to the Backend Directory:
cd backend
-
Create a Virtual Environment (if using virtualenv):
python -m venv venv
-
Activate the Virtual Environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install Dependencies:
pip install -r requirements.txt
-
Run Migrations:
python manage.py migrate
-
Start the Django Development Server:
uvicorn project.asgi:application --host 0.0.0.0 --port 8000
The API will be accessible at
http://localhost:8000
.
We welcome contributions to enhance MedAI Assistant! If you have suggestions, improvements, or bug fixes, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes and commit them (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Create a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
Thank you for checking out MedAI Assistant. We hope you find it helpful and innovative! For any questions or support, feel free to open an issue or contact us.
Happy coding!