Spaces:
Sleeping
Sleeping
feat: Add configurable content options for spiritual care messages in UI and backend, replacing a static prompt template.
Browse files- README.md +4 -3
- src/interface/help_content.py +10 -3
README.md
CHANGED
|
@@ -421,17 +421,18 @@ The Medical Assistant with Spiritual Support system is **fully functional and pr
|
|
| 421 |
---
|
| 422 |
|
| 423 |
**Version:** 2.1
|
| 424 |
-
**Last Updated:** December
|
| 425 |
**Status:** β
Production Ready
|
| 426 |
**Test Coverage:** 65/65 tests passing
|
| 427 |
|
| 428 |
-
### π Latest Updates (v2.
|
| 429 |
|
| 430 |
#### Spiritual Care Message Features
|
| 431 |
- **π¬ LLM-Generated Messages**: Compassionate, natural language messages for spiritual care team
|
|
|
|
|
|
|
| 432 |
- **π§ Prompt Editing**: Full support for editing Spiritual Care Message prompt in Edit Prompts tab
|
| 433 |
- **βοΈ Model Selection**: Dedicated model configuration for message generation
|
| 434 |
-
- **π Patient Context**: Automatic inclusion of patient age, medical conditions, and goals
|
| 435 |
- **π Auto-Language Detection**: Messages adapt to conversation language
|
| 436 |
|
| 437 |
#### Enhanced Integration
|
|
|
|
| 421 |
---
|
| 422 |
|
| 423 |
**Version:** 2.1
|
| 424 |
+
**Last Updated:** December 19, 2025
|
| 425 |
**Status:** β
Production Ready
|
| 426 |
**Test Coverage:** 65/65 tests passing
|
| 427 |
|
| 428 |
+
### π Latest Updates (v2.2)
|
| 429 |
|
| 430 |
#### Spiritual Care Message Features
|
| 431 |
- **π¬ LLM-Generated Messages**: Compassionate, natural language messages for spiritual care team
|
| 432 |
+
- **βοΈ Configurable Content**: Granular control over message context (Conversation, Situation, Indicators, Profile)
|
| 433 |
+
- **π Privacy Controls**: Default settings prioritize anonymity
|
| 434 |
- **π§ Prompt Editing**: Full support for editing Spiritual Care Message prompt in Edit Prompts tab
|
| 435 |
- **βοΈ Model Selection**: Dedicated model configuration for message generation
|
|
|
|
| 436 |
- **π Auto-Language Detection**: Messages adapt to conversation language
|
| 437 |
|
| 438 |
#### Enhanced Integration
|
src/interface/help_content.py
CHANGED
|
@@ -117,9 +117,16 @@ You can customize how these messages are generated:
|
|
| 117 |
3. Alternative: Gemini models for different tone
|
| 118 |
4. Changes apply to your session only
|
| 119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
### Message Features:
|
| 121 |
- **Auto-detects language** from conversation context
|
| 122 |
-
- **
|
| 123 |
- **Patient-centered** - emphasizes their feelings and struggles
|
| 124 |
- **Actionable** - clear urgency and follow-up timeline
|
| 125 |
- **Compassionate** - uses empathetic, caring language
|
|
@@ -315,9 +322,9 @@ The **Patient Profiles** tab includes comprehensive test scenarios:
|
|
| 315 |
### Version Information:
|
| 316 |
- **System Version**: 2.1
|
| 317 |
- **Test Coverage**: 65/65 tests passing
|
| 318 |
-
- **Last Updated**: December
|
| 319 |
- **Status**: Production Ready
|
| 320 |
-
- **New Features**:
|
| 321 |
|
| 322 |
---
|
| 323 |
|
|
|
|
| 117 |
3. Alternative: Gemini models for different tone
|
| 118 |
4. Changes apply to your session only
|
| 119 |
|
| 120 |
+
**Choose Message Content (in Care Team Message tab):**
|
| 121 |
+
You can selectively include or exclude information blocks:
|
| 122 |
+
- βοΈ **Include Conversation Context (Chat & Triage)** (Default: ON) - Raw chat history and triage exchanges.
|
| 123 |
+
- βοΈ **Include Distress Indicators** (Default: ON) - Detected signs of spiritual distress.
|
| 124 |
+
- β¬ **Include Situation Analysis** (Default: OFF) - System-generated summary of the situation (may include medical context).
|
| 125 |
+
- β¬ **Include Patient Profile** (Default: OFF) - Specific patient identifiers (Name, Phone) and medical history.
|
| 126 |
+
|
| 127 |
### Message Features:
|
| 128 |
- **Auto-detects language** from conversation context
|
| 129 |
+
- **Privacy-Focused** - Controls for excluding sensitive info
|
| 130 |
- **Patient-centered** - emphasizes their feelings and struggles
|
| 131 |
- **Actionable** - clear urgency and follow-up timeline
|
| 132 |
- **Compassionate** - uses empathetic, caring language
|
|
|
|
| 322 |
### Version Information:
|
| 323 |
- **System Version**: 2.1
|
| 324 |
- **Test Coverage**: 65/65 tests passing
|
| 325 |
+
- **Last Updated**: December 19, 2025
|
| 326 |
- **Status**: Production Ready
|
| 327 |
+
- **New Features**: Configurable message content, Prompt editing, Model selection
|
| 328 |
|
| 329 |
---
|
| 330 |
|