mou11's picture
Update README.md
39c9dae verified
---
license: mit
pipeline_tag: text-generation
base_model: mistralai/Mistral-7B-v0.1
tags:
- medical-ai
- llm
- clinical-decision-support
- langgraph
- pubmed
- groq
- llama
- agent
---
# πŸ₯ Clinical Decision Support Agent
![Python](https://img.shields.io/badge/Python-3.10-blue)
![LLaMA](https://img.shields.io/badge/LLaMA-3.3%2070B-green)
![LangGraph](https://img.shields.io/badge/LangGraph-Agent-purple)
![HuggingFace](https://img.shields.io/badge/HuggingFace-Spaces-yellow)
## 🎯 Live Demo
πŸ‘‰ [Try it on Hugging Face Spaces](https://huggingface.co/spaces/mou11/clinical-decision-support-agent)
## πŸ” 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](https://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