Spaces:
Sleeping
Sleeping
File size: 6,040 Bytes
57375e5 b2e56a1 cd94818 57375e5 eb410a0 57375e5 8c6e44f 57375e5 8c6e44f 57375e5 | 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 | ---
title: Prompt Prism Prototype
short_description: Dynamic system prompts for psychiatric AI
emoji: ๐ฎ
colorFrom: purple
colorTo: blue
sdk: gradio
sdk_version: 4.44.1
python_version: "3.11"
app_file: app.py
pinned: false
license: mit
---
# Prompt Prism Prototype
**Dynamic System Prompt Architecture for Psychiatric AI**
*Same AI foundation, different refractions based on clinician + client + session.*
---
## The Problem
Psychiatric AI tools today give every clinician the same prompt.
- A psychodynamic therapist gets CBT-flavored AI
- A high-risk bipolar client gets the same flags as stable anxiety
- Intake data sits unused in the EHR
- Clinician expertise is flattened to one-size-fits-all
## The Solution
**Prompt Prism** generates a unique system prompt for each clinician + client combination.
Same AI infrastructure. Different refraction for each clinical dyad.
---
## How It Works
### The Prism Metaphor
A prism takes one light source and refracts it differently based on angle.
Prompt Prism takes the **ARI Framework** (ethical base layer) and refracts it based on:
- **Clinician** (orientation, style, philosophy)
- **Client** (risk, diagnosis, treatment stage)
- **Tools** (opt-in modules enabled for this client)
- **Session** (what's happening now)
### The Layers
| Layer | What It Contains | Why It Matters |
|-------|-----------------|----------------|
| **ARI Base** | Ethical guardrails, crisis protocols, forbidden language | Always-on safety |
| **Clinician** | Orientation, style, preferences, exclusions | AI thinks like you do |
| **Client** | Risk level, diagnosis, stage, custom flags | Personalized care |
| **Tools** | Opt-in modules clinician enables | Right tools for right client |
| **Session** | Last session, today's focus, current state | Continuity |
---
## Opt-In Tools
Clinicians enable specific tools for specific clients:
| Tool | Purpose |
|------|---------|
| **Diagnosis Explorer** | Multi-pillar psychoeducation without pathologizing |
| **Tend & Send** | NVC-based communication for couples/family |
| **NVC How-To** | Nonviolent Communication skill-building |
| **Distress Tolerance** | DBT skills for riding out intensity |
| **Practice Conversations** | Roleplay difficult discussions |
| **Grounding & Regulation** | Somatic/sensory grounding |
| **Somatic Check-In** | Brief interoception practice |
| **ShadowBox Static Library** | Crisis-adjacent psychoeducation (NO LLM - static content only) |
### About ShadowBox
ShadowBox demonstrates how to handle **crisis-adjacent content safely**:
- Pre-written, clinically-reviewed content only
- NO LLM generation for suicidal ideation, self-harm, or crisis topics
- Confidentiality explained clearly
- State-specific duty-to-warn information
- Safety planning (Stanley-Brown model)
- Crisis resources with context
- Starter scripts for disclosure
*"A resonant library for hard thoughts. Not a chatbot."*
---
## Supported Orientations
- Psychodynamic
- CBT
- DBT
- Trauma-Informed
- IFS (Internal Family Systems)
- Somatic/Body-Based
- ACT (Acceptance and Commitment)
- Humanistic/Person-Centered
- Integrative
---
## Built On: ARI Framework
**Assistive Relational Intelligence** - AI that scaffolds human connection, not simulates it.
### Core Principles
1. Scaffold human connection, not simulate it
2. Bridge toward human care, not away from it
3. Build capacity, not dependency
4. Honor clinician expertise
5. Refuse engagement-optimization
### Safety Features
- Forbidden language patterns (no synthetic intimacy)
- Crisis protocols that defer to humans
- Risk-calibrated alerting
- Session boundaries and exit rituals
- Always bridge back to psychiatrist
---
## For Psychiatric Organizations
This prototype demonstrates how hundreds of psychiatrists could each get AI aligned to their practice:
- Psychodynamic psychiatrist โ psychodynamic AI responses
- DBT psychiatrist โ DBT-aligned skill coaching
- Conservative risk philosophy โ lower alert thresholds
- Client in stabilization โ no trauma processing suggested
- Couples client โ Tend & Send communication tools enabled
- High-risk client โ ShadowBox static library for safe psychoeducation
**The result:** AI that feels like an extension of the clinician's approach, not a generic chatbot.
### What This Demonstrates
**For each unique clinician-client relationship:**
1. **Provider-controlled UX** โ Psychiatrist toggles which tools are available
2. **Modality alignment** โ AI speaks in the clinician's orientation
3. **Risk calibration** โ Alerts tuned to this client's specific profile
4. **Opt-in tooling** โ Right tools for right client at right time
5. **Bridging architecture** โ Every tool points back to human care
6. **Static content for crisis** โ ShadowBox shows how to handle high-risk topics safely
**Innovation points:**
- Dynamic system prompt generation per dyad
- Clinician as configurator, not just consumer
- Human-in-the-loop at every layer
- Ethical guardrails embedded, not bolted on
- Between-session support that strengthens (not replaces) the psychiatric relationship
---
## Usage
1. **Clinician Profile** - Set your orientation, style, preferences
2. **Client Context** - Configure diagnosis, risk level, treatment stage
3. **Tools & Modules** - Enable opt-in tools for this client
4. **Session Context** - Add continuity from last session
5. **Generate Prompt** - See your compiled system prompt
6. **Test Prompt** - Try it with sample client messages
---
## Setup
Add your `ANTHROPIC_API_KEY` in Space settings to enable the Test Prompt feature.
---
## Author
**Jocelyn Skillman, LMHC**
Clinical AI Designer | Creator of the ARI Framework
*"Your 800 psychiatrists practice differently. Should they all get the same AI?"*
---
## Related Projects
- [ARI Tool Builder](https://huggingface.co/spaces/jostlebot/TherapistsCoding.ARI)
- [Diagnosis Explorer](https://huggingface.co/spaces/jostlebot/DiagnosisExplorer)
- [Portfolio](https://jocelyn-portfolio-ebon.vercel.app/)
|