Skip to content
khageshranjan23-pixelPublic

About

Intelligent clinical decision support and health risk prediction engine

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

title HealthAI
emoji 🩺
colorFrom blue
colorTo green
sdk docker
pinned false

🩺 NewGenHealthAI

An AI-powered Medical Consultation & Diagnostic Platform


Live URL: https://khagesh1-healthai.hf.space


Open Live App GitHub Hugging Face


An AI-powered medical assistant with a FastAPI backend and a React frontend for conversational clinical guidance, session-based chat, and image-based disease analysis.

Overview

Dr.SushamHealthAI/NewGenHealthAI is a full-stack healthcare AI application designed to support medical interaction workflows through:

  • conversational AI assistance
  • image-based disease analysis
  • session-based chat history
  • diagnostics and model inspection utilities
  • containerized deployment with Docker

The project is organized as a monorepo with separate backend and frontend applications.

Repository Structure

Dr.sushamhealthAI/
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ test_images/
β”‚   β”œβ”€β”€ tests/
β”‚   β”œβ”€β”€ .flake8
β”‚   β”œβ”€β”€ Dockerfile
β”‚   β”œβ”€β”€ inspect_models.py
β”‚   β”œβ”€β”€ pyproject.toml
β”‚   β”œβ”€β”€ pytest.ini
β”‚   β”œβ”€β”€ requirements.txt
β”‚   β”œβ”€β”€ test_api.py
β”‚   └── test_clip_routing.py
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ .gitignore
β”‚   β”œβ”€β”€ Dockerfile
β”‚   β”œβ”€β”€ README.md
β”‚   β”œβ”€β”€ eslint.config.js
β”‚   β”œβ”€β”€ index.html
β”‚   β”œβ”€β”€ nginx.conf
β”‚   β”œβ”€β”€ package-lock.json
β”‚   β”œβ”€β”€ package.json
β”‚   β”œβ”€β”€ postcss.config.js
β”‚   β”œβ”€β”€ tailwind.config.js
β”‚   └── vite.config.js
β”œβ”€β”€ .env.example
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ check_model_on_image.py
β”œβ”€β”€ diagnose_env.py
β”œβ”€β”€ run.py
β”œβ”€β”€ run_medai.bat
└── .gitignore

Features

  • AI-powered medical assistant interface
  • FastAPI backend API
  • React + Vite frontend
  • Session-based conversation history
  • Medical image analysis endpoint
  • Model diagnostics endpoint
  • Local testing utilities for medical images
  • Docker support for deployment
  • Environment-based configuration

Tech Stack

Backend

  • Python
  • FastAPI
  • Uvicorn
  • LangChain / LangGraph
  • ChromaDB
  • Sentence Transformers
  • Hugging Face Transformers
  • PyTorch
  • SQLAlchemy

Frontend

  • React
  • Vite
  • Tailwind CSS
  • DaisyUI

Environment Variables

Create a .env file in the project root based on .env.example.

Required variables include:

GROQ_API_KEY=your_groq_api_key_here
TAVILY_API_KEY=your_tavily_api_key_here
SESSION_SECRET_KEY=your_session_secret_key_here

Optional path overrides may also be configured for logs, database, vector store, and PDF sources.

Installation

1. Clone the repository

git clone https://github.com/khageshranjan23-pixel/HealthAI.git
cd HealthAI/Dr.sushamhealthAI

2. Backend setup

cd backend
python -m venv .venv

Activate the virtual environment:

Windows

.venv\Scripts\activate

Linux / macOS

source .venv/bin/activate

Install dependencies:

pip install -r requirements.txt

3. Frontend setup

Open a new terminal:

cd frontend
npm install

Running the Project

Option 1: Start with the root launcher

From the Dr.sushamhealthAI folder:

python run.py

This script:

  • creates a virtual environment if needed
  • installs backend dependencies
  • installs frontend dependencies
  • starts the backend on port 8000
  • waits for the backend health endpoint
  • launches the frontend development server

Option 2: Run backend and frontend separately

Start backend

cd backend
uvicorn app.main:app --reload --port 8000

Start frontend

cd frontend
npm run dev

API Endpoints

Some important backend routes include:

  • GET /api/v1/health β€” backend health check
  • GET /api/v1/diagnostics β€” loaded model diagnostics
  • POST /api/v1/analyze-image β€” upload an image for analysis

Depending on your backend router definitions, additional chat and session endpoints are also available.

Testing

Backend tests

Run pytest inside the backend folder:

cd backend
pytest

Image API test script

cd backend
python test_api.py

CLIP routing verification

cd backend
python test_clip_routing.py

These scripts test image classification and verify that domain routing works correctly for sample images such as skin, xray, and retina inputs.

Docker

Dockerfiles are included for:

  • project root
  • backend
  • frontend

You can use them to build and containerize the entire application or individual services depending on your deployment setup.

Frontend

The frontend is built with React and Vite and provides:

  • chat-based interaction
  • conversation history
  • a clean medical assistant interface

To create a production build:

cd frontend
npm run build

To preview the production build locally:

npm run preview

Utilities

The project also includes utility scripts such as:

  • check_model_on_image.py β€” test model behavior on a single image
  • diagnose_env.py β€” inspect environment setup and issues
  • inspect_models.py β€” inspect backend model loading/configuration
  • run_medai.bat β€” Windows launcher helper

Use Cases

  • AI-assisted symptom guidance
  • educational medical assistant demos
  • image-based disease analysis workflows
  • research prototypes for healthcare AI systems

Disclaimer

This project is intended for educational, research, and prototype purposes only.

It must not be used as a replacement for licensed medical diagnosis, treatment, or professional clinical judgment.

Contributors

  • Khagesh Ranjan β€” Developer
  • Ajitesh Baghel - Developer
  • Sudipto Ghosh β€” Developer

License

Add your preferred license here, for example:

MIT License

If you have not chosen one yet, create a LICENSE file before publishing for open-source reuse.

Acknowledgments

Special thanks to the mentor, contributors, and open-source communities behind FastAPI, React, Vite, Hugging Face, LangChain, and related AI tooling.

About

Intelligent clinical decision support and health risk prediction engine

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages