Agentic Medical Analyser is an AI-powered medical triage and diagnostic assistant designed to simulate intelligent patient intake, risk assessment, department routing, and explainable predictions.
The system combines rule-based logic, optional machine learning models, and LLM-powered assistance to provide fast preliminary medical guidance.
https://agentic-medical-analyser.vercel.app
Interactive multi-step form for capturing symptoms and patient details.
- Calls /triage for risk assessment
- Calls /predict for department routing
- Risk level classification
- Suggested medical department
- Confidence score
- Actionable recommendations
- LLM-powered chat via /chat (Groq API)
- Graceful fallback to local responses if unavailable
- /explain endpoint provides prediction rationale
- Helps users understand system decisions
- Location-aware hospital lookup
- Uses /nearest-hospital (Overpass API)
The project consists of two components:
- Backend (FastAPI)
- Frontend (Vite / npm)
Run from the Pragyan project root:
cd /Users/apple/Pragyan
python main_combined.pyDefault Backend URL: http://localhost:8010
If port 8010 is occupied, the server may automatically use ports 8011–8015.
- Python 3.x
- FastAPI
- Uvicorn
Install dependencies if needed:
pip install fastapi uvicorn python-dotenvCreate a .env file:
GROQ_API_KEY=your_api_key_here
Required for:
- /chat
- /explain
If present, ML-based triage logic will be used:
models/triage_model.pklmodels/encoders.pkl
If missing, the system falls back to rule-based logic.
cd Agentic-Medical-Analyser
npm install
npm run devDefault Frontend URL: http://localhost:5173
The frontend defaults to http://localhost:8010.
To override:
cp .env.example .envEdit .env:
VITE_API_URL=http://localhost:8010
User Input → Backend Intelligence Layer →
| Component | Endpoint |
|---|---|
| Risk Engine | /triage |
| Prediction Engine | /predict |
| Explainability Engine | /explain |
| AI Assistant | /chat |
| Location Services | /nearest-hospital |
This project is a research and educational prototype. It is not a replacement for professional medical advice and is not approved for clinical use. Always consult qualified medical professionals for real health concerns.