MaTriX-AI is a state-of-the-art, multimodal, multi-agent AI framework designed specifically for addressing maternal mortality crises in low-resource and remote clinical environments. It leverages a highly optimized Hybrid Edge-Cloud Architecture, deploying lightweight, offline models directly to the clinic, and escalates complex, high-risk cases to a powerful cloud AI only when critical thresholds are breached.
In low-resource clinics, internet connectivity is scarce and patient volume is overwhelmingly high. MaTriX-AI introduces an agentic workflow that runs offline on a consumer-grade laptop, analyzing raw vitals and scanning unstructured clinical notes in 1–2 seconds.
MaTriX-AI uses three distinct specialized agents passing context dynamically, managed by a hospital-configurable Network Topology.
Administrators can use the Settings UI to instantly re-route AI inference:
pgvector), it matches identified risks against WHO and NICE clinical standard guidelines to output a safe stabilization plan.| Domain | Technology | Description |
|---|---|---|
| Frontend UI/UX | Next.js 14, React 18, Tailwind CSS | Spatial, premium Dribbble-inspired dark-mode UI. Employs Framer Motion for deep interactive micro-animations and a multi-step clinical wizard. |
| Edge Backend | FastAPI, Python 3.13 | High-concurrency async ASGI server managing the swarm state. |
| Local LLM Engine | Ollama, unsloth/medgemma-1.5-4b-it-GGUF | Highly-quantized (4-bit API) offline inference engine capable of running on minimal RAM. |
| Vector Database | PostgreSQL + pgvector | Stores 1000+ WHO maternal guideline embeddings via all-mpnet-base-v2. |
| Cloud Backend | FastAPI, AWS SageMaker | The escalation server managing the Boto3 connectivity to Heavy-Duty HuggingFace inference clusters. |
| CI/CD Continuous Learning | GitHub Actions + Kaggle + Copilot | Automated weekly LoRA fine-tuning on free Kaggle GPUs using clinical outcomes, plus Copilot-driven swarm architecture prompt optimization via PRs. |
This repository encompasses the Full-Stack application (Frontend, Edge, Cloud).
ollama run hf.co/unsloth/medgemma-1.5-4b-it-GGUF:Q4_K_M)docker-compose up -d
cd edge
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
python scripts/ingest_guidelines.py
python scripts/seed_demo.py
You need three separate terminal windows:
Terminal 1: The Edge Server (Port 8000)
cd edge
venv\Scripts\activate
python -m uvicorn app.main:app --port 8000 --reload
Terminal 2: The Cloud Escalation Server (Port 9000)
cd cloud
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
python -m uvicorn app.main:app --port 9000 --reload
Terminal 3: The Spatial Frontend (Port 3000)
cd frontend
npm install
npm run dev
If deploying the real MedGemma 27B and PaliGemma 3B to AWS SageMaker:
cd cloud
python scripts/deploy_sagemaker.py --model medgemma-27b
python scripts/deploy_sagemaker.py --model medgemma-4b
python scripts/deploy_sagemaker.py --model paligemma-3b
MaTriX-AI is designed to learn directly from nurse corrections over time, completely autonomously via GitHub Actions.
We include a fully self-contained standalone Jupyter Notebook located in notebooks/Kaggle_MaTriX_Agentic_Validation.ipynb.
n_gpu_layers=0), preventing VRAM overflow crashes.Every LLM payload passes through src/governance/auditor.py.
(C) 2026 MaTriX-AI Engineering Suite. All Rights Reserved.
32 commits
7 commits
TypeScript
36.2%
Jupyter Notebook
32.9%
Python
29.1%
MaTriX-AI is a state-of-the-art, multimodal, multi-agent AI framework designed specifically for addressing maternal mortality crises in low-resource and remote clinical environments. It leverages a highly optimized Hybrid Edge-Cloud Architecture, deploying lightweight, offline models directly to the clinic, and escalates complex, high-risk cases to a powerful cloud AI only when critical thresholds are breached.
In low-resource clinics, internet connectivity is scarce and patient volume is overwhelmingly high. MaTriX-AI introduces an agentic workflow that runs offline on a consumer-grade laptop, analyzing raw vitals and scanning unstructured clinical notes in 1–2 seconds.
MaTriX-AI uses three distinct specialized agents passing context dynamically, managed by a hospital-configurable Network Topology.
Administrators can use the Settings UI to instantly re-route AI inference:
pgvector), it matches identified risks against WHO and NICE clinical standard guidelines to output a safe stabilization plan.| Domain | Technology | Description |
|---|---|---|
| Frontend UI/UX | Next.js 14, React 18, Tailwind CSS | Spatial, premium Dribbble-inspired dark-mode UI. Employs Framer Motion for deep interactive micro-animations and a multi-step clinical wizard. |
| Edge Backend | FastAPI, Python 3.13 | High-concurrency async ASGI server managing the swarm state. |
| Local LLM Engine | Ollama, unsloth/medgemma-1.5-4b-it-GGUF | Highly-quantized (4-bit API) offline inference engine capable of running on minimal RAM. |
| Vector Database | PostgreSQL + pgvector | Stores 1000+ WHO maternal guideline embeddings via all-mpnet-base-v2. |
| Cloud Backend | FastAPI, AWS SageMaker | The escalation server managing the Boto3 connectivity to Heavy-Duty HuggingFace inference clusters. |
| CI/CD Continuous Learning | GitHub Actions + Kaggle + Copilot | Automated weekly LoRA fine-tuning on free Kaggle GPUs using clinical outcomes, plus Copilot-driven swarm architecture prompt optimization via PRs. |
This repository encompasses the Full-Stack application (Frontend, Edge, Cloud).
ollama run hf.co/unsloth/medgemma-1.5-4b-it-GGUF:Q4_K_M)docker-compose up -d
cd edge
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
python scripts/ingest_guidelines.py
python scripts/seed_demo.py
You need three separate terminal windows:
Terminal 1: The Edge Server (Port 8000)
cd edge
venv\Scripts\activate
python -m uvicorn app.main:app --port 8000 --reload
Terminal 2: The Cloud Escalation Server (Port 9000)
cd cloud
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
python -m uvicorn app.main:app --port 9000 --reload
Terminal 3: The Spatial Frontend (Port 3000)
cd frontend
npm install
npm run dev
If deploying the real MedGemma 27B and PaliGemma 3B to AWS SageMaker:
cd cloud
python scripts/deploy_sagemaker.py --model medgemma-27b
python scripts/deploy_sagemaker.py --model medgemma-4b
python scripts/deploy_sagemaker.py --model paligemma-3b
MaTriX-AI is designed to learn directly from nurse corrections over time, completely autonomously via GitHub Actions.
We include a fully self-contained standalone Jupyter Notebook located in notebooks/Kaggle_MaTriX_Agentic_Validation.ipynb.
n_gpu_layers=0), preventing VRAM overflow crashes.Every LLM payload passes through src/governance/auditor.py.
(C) 2026 MaTriX-AI Engineering Suite. All Rights Reserved.
32 commits
7 commits
TypeScript
36.2%
Jupyter Notebook
32.9%
Python
29.1%