πŸ₯ Clinical Decision Support Agent

Python LLaMA LangGraph HuggingFace

🎯 Live Demo

πŸ‘‰ Try it on Hugging Face Spaces

πŸ” Overview

A production-grade Medical AI Agent that takes patient symptoms as natural language input, searches real PubMed medical literature automatically, and generates structured clinical recommendations with citations. Built with LangGraph for agent orchestration and Groq (LLaMA 3.3 70B) for clinical reasoning.

πŸ“Š Results

Metric Score
BERTScore Precision 0.8449
BERTScore Recall 0.8887
BERTScore F1 0.8663

πŸ§ͺ Test Cases

Case Symptoms Urgency Level
Case 1 Fever, cough, chest pain High βœ…
Case 2 Stiff neck, fever, confusion Emergency βœ…
Case 3 Chest pain radiating to left arm, diabetes Emergency βœ…

✨ Features

  • βœ… Real-time PubMed literature search via NCBI API
  • βœ… LLM-powered clinical reasoning (LLaMA 3.3 70B via Groq)
  • βœ… Structured output: conditions, tests, treatments, urgency
  • βœ… Multi-turn conversation memory
  • βœ… BERTScore quality evaluation
  • βœ… Interactive Gradio web interface

πŸ—οΈ Architecture

Patient Symptoms β†’ Extract Search Query (LLM) β†’ Search PubMed (NCBI API) β†’ Generate Recommendation (LLaMA 3.3 70B) β†’ Format Report β†’ Gradio UI

πŸ› οΈ Tech Stack

Component Tool
Agent Orchestration LangGraph
LLM Groq β€” LLaMA 3.3 70B
Medical Literature PubMed NCBI API
Evaluation BERTScore
UI Gradio
Platform Google Colab (CPU)

πŸš€ How to Run

  1. Get a free Groq API key at console.groq.com
  2. Open app.py in Google Colab
  3. Replace your-groq-api-key-here with your actual key
  4. Run all cells in order

⚠️ Medical Disclaimer

This system is for educational and research purposes only. It does not provide medical advice. Always consult a qualified healthcare professional for medical decisions.

πŸ“Œ Project Status

βœ… PubMed search tool complete βœ… LangGraph agent built βœ… Multi-turn memory working βœ… BERTScore evaluation done βœ… Gradio demo deployed on Hugging Face Spaces

Downloads last month
28
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for mou11/clinical-decision-support-agent

Finetuned
(1033)
this model