Spaces:
Running
on
Zero
Running
on
Zero
File size: 7,263 Bytes
f72d6b4 4a397fd e6e6e5d 4a397fd f2e3c2d 4a397fd adf6767 4a397fd adf6767 4a397fd adf6767 4a397fd 913b4f8 4a397fd adf6767 4a397fd f2e3c2d 4a397fd 92485ac adf6767 92485ac adf6767 92485ac adf6767 e6e6e5d adf6767 92485ac 4a397fd adf6767 e6e6e5d adf6767 e6e6e5d adf6767 e6e6e5d adf6767 cda84d7 adf6767 4a397fd c1646d0 4a397fd c02224c 4a397fd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
---
title: PNA Assistant
emoji: π¨πΎββοΈ
colorFrom: indigo
colorTo: purple
sdk: gradio
sdk_version: 5.12.0
app_file: app.py
pinned: false
---
<p align="center">
<img src="https://em-content.zobj.net/source/apple/391/woman-health-worker-medium-skin-tone_1f469-1f3fd-200d-2695-fe0f.png" width="80" alt="PNA Logo">
</p>
<h1 align="center">Professional Nurse Advocate Assistant</h1>
<p align="center">
<strong>AI-Powered Support for the A-EQUIP Model & Restorative Supervision</strong>
</p>
<p align="center">
<a href="https://huggingface.co/spaces/NurseCitizenDeveloper/PNA-Assistant">
<img src="https://img.shields.io/badge/Status-Research_Use_Only-orange?style=for-the-badge" alt="Research Use Only">
</a>
<a href="https://huggingface.co/spaces/NurseCitizenDeveloper/PNA-Assistant">
<img src="https://img.shields.io/badge/π€%20Live%20Demo-Hugging%20Face-yellow" alt="Hugging Face Space">
</a>
<a href="https://huggingface.co/google/gemma-2-2b-it">
<img src="https://img.shields.io/badge/Model-Gemma%202%202B%20IT-blue" alt="Model">
</a>
<img src="https://img.shields.io/badge/License-Apache%202.0-green" alt="License">
<img src="https://img.shields.io/badge/Python-3.10+-blue" alt="Python">
</p>
<p align="center">
π¨πΎββοΈ π©π½ββοΈ π¨πΏββοΈ π©π»ββοΈ π©ββοΈ
</p>
---
## π Table of Contents
- [About](#-about)
- [Key Features](#-key-features)
- [The A-EQUIP Model](#-the-a-equip-model)
- [Technology Stack](#-technology-stack)
- [Repository Structure](#-repository-structure)
- [Roadmap](#-roadmap)
- [Local Development](#-local-development)
- [Contributing](#-contributing)
- [Important Disclaimers](#-important-disclaimers)
- [Citation](#-citation)
- [Acknowledgements](#-acknowledgements)
---
## π₯ About
The **Professional Nurse Advocate (PNA) Assistant** is an AI-powered educational tool designed to support nursing professionals in understanding and applying the **A-EQUIP model** (Advocating and Educating for Quality Improvement).
This tool focuses on:
- **Restorative Clinical Supervision** - Supporting staff wellbeing
- **Person-Centred Communication** - Compassionate, reflective dialogue
- **Quality Improvement** - Guiding continuous professional development
---
## π Key Features
| Feature | Description |
|---------|-------------|
| **RAG-Powered Knowledge** | Retrieval-Augmented Generation using the official A-EQUIP Model Guide |
| **Foundation Model** | Powered by Gemma 2 2B IT, instruction-tuned for clear, safe, and helpful dialogue |
| **Premium UI** | Modern, accessible interface with NHS-inspired design |
| **Diversity-First** | Inclusive design with diverse healthcare worker representation |
---
## π The A-EQUIP Model
The A-EQUIP model provides a framework for Professional Nurse Advocates with four key functions:
1. **Normative** - Monitoring quality and standards
2. **Formative** - Education and skill development
3. **Restorative** - Clinical supervision and staff wellbeing (primary focus)
4. **Personal Action for Quality Improvement** - Driving positive change
---
## π§ Technology Stack
- **Base Model**: [google/gemma-2-2b-it](https://huggingface.co/google/gemma-2-2b-it)
- **Architecture**: RAG (Context-Aware) + Instruction Tuned LLM
- **Framework**: Gradio + Hugging Face Spaces (ZeroGPU)
- **Knowledge Base**: RAG with Sentence Transformers + FAISS
---
## οΏ½ Repository Structure
```
βββ app.py # Main application file (Gradio UI & Logic)
βββ pna_client.py # LLM Client handling generation
βββ knowledge_base.py # RAG implementation (FAISS + Embeddings)
βββ requirements.txt # Project dependencies
βββ Professional...Guide.md# Source knowledge base document
βββ README.md # Documentation
```
---
## πΊοΈ Roadmap
- [x] **Phase 1**: Initial Deployment with RAG & Fine-tuned Model
- [ ] **Phase 2**: TranslateGemma Live (Real-Time WebRTC Audio/Video Translation)
- [ ] **Phase 3**: Voice Integration for Spoken Restorative Supervision
- [ ] **Phase 4**: Integration with NHS e-Learning Platforms
---
## π οΈ Local Development
```bash
# Clone the repository
git clone https://github.com/ClinyQAi/Professional-Nurse-Advocate-Assistant.git
cd Professional-Nurse-Advocate-Assistant
# Install dependencies
pip install -r requirements.txt
# Run locally
python app.py
```
---
## π€ Contributing
Contributions are always welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to get started.
---
## β οΈ Important Disclaimers
> [!CAUTION]
> ### For Educational & Research Purposes Only
> This AI assistant is designed **exclusively for educational and research purposes**. It does NOT provide:
> - Clinical advice or diagnosis
> - Treatment recommendations
> - Mental health crisis support
>
> **Important Note on AI Limitations:**
> While this assistant may provide general information about accessing services or resources, **we cannot guarantee the accuracy of this information**. AI models can "hallucinate" or provide outdated details. Always verify outputs with authoritative sources.
> [!WARNING]
> ### Not a Substitute for Professional Support
> - This tool is **not a replacement** for qualified Professional Nurse Advocates, clinical supervisors, or mental health professionals.
> - **If you or someone you know is experiencing a mental health crisis, please contact a qualified healthcare professional immediately or call your local emergency services.**
---
## π Citation
If you use this tool or model in your research, please cite:
```bibtex
@software{gombedza_pna_assistant_2024,
author = {Gombedza, Lincoln},
title = {The Professional Nurse Advocate AI: A specialized language model for supporting nursing workforce resilience research},
year = {2024},
publisher = {Hugging Face},
url = {https://huggingface.co/spaces/NurseCitizenDeveloper/PNA-Assistant},
version = {1.0.0}
}
```
## π System Card & Methodology
For a detailed technical breakdown of the system architecture, RAG implementation, and ethical considerations, please see the [**System Card**](SYSTEM_CARD.md).
---
## π€ Author
**Lincoln Gombedza**
*Registered Learning Disability Nurse | Practice Educator | AI Researcher | Nurse Citizen Developer*
- π GitHub: [@NurseCitizenDeveloper](https://github.com/NurseCitizenDeveloper)
- π€ Hugging Face: [NurseCitizenDeveloper](https://huggingface.co/NurseCitizenDeveloper)
- π₯ Organisation: [ClinyQAi](https://github.com/ClinyQAi)
---
## π Acknowledgements
This project builds upon the work of many individuals and organisations:
- **[Foundation of Nursing Studies (FONS)](https://www.fons.org/)** - For person-centred nursing principles
- **[NHS England](https://www.england.nhs.uk/)** - For the A-EQUIP Model and PNA Framework
- **[Google](https://ai.google.dev/gemma)** - For the Gemma 2 open model family
- **[Hugging Face](https://huggingface.co/)** - For hosting and ZeroGPU infrastructure
---
## π License
This project is licensed under the **Apache License 2.0** - see the [LICENSE](LICENSE) file for details.
<p align="center">
<sub>Made with β€οΈ for the nursing profession</sub>
</p>
|