Skip to content

An AI-powered healthcare assistant using React and Django. It integrates Langchain AI agents and OpenAI GPT-4 to analyze heart rate data, interpret prescriptions, and search for medicine information. Developed for the TiDB Hackathon by Devpost.

Notifications You must be signed in to change notification settings

hasnain3142/MedAI-Assistant

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MedAI Assistant for TiDB Hackathon

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.

Table of Contents

Project Overview

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.

Project Demo

Demo.mp4

Technologies Used

  • Frontend: React
  • Backend: Django
  • AI Integration: Langchain AI agents, OpenAI GPT-4
  • Database: TiDB (distributed SQL database)

Agents

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.

Frontend Setup

  1. Navigate to the Frontend Directory:

    cd frontend
  2. Install Dependencies:

    npm install
  3. Run the Development Server:

    npm start

    The application will be accessible at http://localhost:3000.

Backend Setup

  1. Navigate to the Backend Directory:

    cd backend
  2. Create a Virtual Environment (if using virtualenv):

    python -m venv venv
  3. Activate the Virtual Environment:

    • On Windows:
      venv\Scripts\activate
    • On macOS/Linux:
      source venv/bin/activate
  4. Install Dependencies:

    pip install -r requirements.txt
  5. Run Migrations:

    python manage.py migrate
  6. 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.

Contributing

We welcome contributions to enhance MedAI Assistant! If you have suggestions, improvements, or bug fixes, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes and commit them (git commit -am 'Add new feature').
  4. Push to the branch (git push origin feature-branch).
  5. Create a Pull Request.

License

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!

About

An AI-powered healthcare assistant using React and Django. It integrates Langchain AI agents and OpenAI GPT-4 to analyze heart rate data, interpret prescriptions, and search for medicine information. Developed for the TiDB Hackathon by Devpost.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 72.7%
  • JavaScript 21.8%
  • HTML 3.5%
  • CSS 2.0%