Spaces:
Sleeping
Sleeping
| # simplified_help_content.py | |
| SIMPLIFIED_HELP_CONTENT = """ | |
| # π₯ Medical Assistant - Help Guide | |
| ## π― Overview | |
| This interface helps you test and verify conversations with the Medical Assistant that includes automatic spiritual support monitoring. | |
| --- | |
| ## π Main Features | |
| ### π¬ Chat Tab | |
| Test conversations with the medical assistant. The system automatically monitors for spiritual distress. | |
| **How to use:** | |
| 1. Type your message in the text box | |
| 2. Click "π€ Send" or press Enter | |
| 3. Review the assistant's response | |
| 4. Notice the classification indicator (π’ GREEN, π‘ YELLOW, π΄ RED) | |
| **Message Format:** | |
| - **Classification line:** Shows distress level and confidence | |
| - **To patient:** The actual response to the patient | |
| - **To spiritual care team:** Provider summary (only after consent) | |
| **Quick Examples:** | |
| - π’ "I am fine" - Normal conversation | |
| - π‘ "I'm feeling stressed" - Potential distress | |
| - π΄ "Emotional crisis" - Immediate concern | |
| --- | |
| ### π§Ύ Conversation Verification Tab | |
| Review and verify the accuracy of spiritual distress classifications. | |
| **Important:** Provider Summary appears as the **final exchange** for your review. | |
| **Workflow:** | |
| 1. Click "π Generate Verification from Chat" | |
| 2. Review each exchange: | |
| - Read the user message and assistant response | |
| - Check the classification (GREEN/YELLOW/RED) | |
| - Mark as β Correct or β Incorrect | |
| 3. For incorrect classifications: | |
| - Select the correct classification | |
| - Add a comment explaining why it's incorrect | |
| - Click "πΎ Save comment" | |
| 4. Navigate with β¬ οΈ Previous / Next β‘οΈ buttons | |
| 5. **Final step:** Review the Provider Summary | |
| - This is the message sent to the spiritual care team | |
| - Verify it's complete and accurate | |
| - Add feedback if needed | |
| 6. Download results: "π Download CSV" | |
| **Statistics shown:** | |
| - Reviewed: How many exchanges you've checked | |
| - β Correct: Accurate classifications | |
| - β Incorrect: Classifications that need fixing | |
| - π Incorrect w/ comment: Incorrect with your feedback | |
| --- | |
| ### βοΈ Model Settings Tab | |
| Configure which AI models to use for different tasks. | |
| **Available models:** | |
| - **Gemini models:** Fast, good for classification | |
| - **Claude models:** More nuanced, better for conversations | |
| **Model roles:** | |
| - π Spiritual Monitor: Detects distress indicators | |
| - π‘ Soft Spiritual Triage: Asks clarifying questions | |
| - π Triage Response Evaluator: Analyzes patient responses | |
| - π₯ Medical Assistant: Provides medical guidance | |
| - π©Ί Soft Medical Triage: Medical assessment questions | |
| - π¬ Medical Brain Summary Generator: Creates provider summaries | |
| **How to use:** | |
| 1. Select models from dropdowns | |
| 2. Click "β Apply Model Settings" | |
| 3. Changes apply to your current session only | |
| --- | |
| ### π§ Edit Prompts Tab | |
| Customize the AI system prompts for testing different behaviors. | |
| **Available prompts:** | |
| - π Spiritual Monitor (Classifier) | |
| - π‘ Soft Spiritual Triage | |
| - π Triage Response Evaluator | |
| - π₯ Medical Assistant | |
| - π©Ί Soft Medical Triage | |
| - π¬ Spiritual Care Message (used for Provider Summary) | |
| **How to use:** | |
| 1. Select a prompt from the dropdown | |
| 2. Click "π₯ Load Prompt" to see current version | |
| 3. Edit the prompt text | |
| 4. Click "β Apply Changes" to test | |
| 5. Click "π Reset to Default" if needed | |
| **Tips:** | |
| - Changes are session-only (not permanent) | |
| - Test your changes in the Chat tab | |
| - Use "π Validate" to check syntax | |
| - Use "π€ Promote to File" to save permanently | |
| --- | |
| ### π₯ Patient Profiles Tab | |
| Switch between different patient scenarios for testing. | |
| **Predefined profiles:** | |
| - π€ Default Profile (Serhii) | |
| - π’ GREEN scenarios (healthy coping) | |
| - π‘ YELLOW scenarios (mild distress, grief, questions) | |
| - π΄ RED scenarios (crisis, hopelessness) | |
| - Medical conditions (cardiac, diabetic, post-surgery, etc.) | |
| **How to use:** | |
| 1. Select a profile from the dropdown | |
| 2. Click "π₯ Load Profile" | |
| 3. Profile settings are applied to the session | |
| 4. Test conversations with this patient context | |
| **Custom profiles:** | |
| - Modify patient name, age, phone | |
| - Add medical conditions | |
| - Set primary goals | |
| - Define exercise preferences and limitations | |
| - Click "πΎ Save Current Profile" | |
| --- | |
| ## π For Testing Team | |
| ### What to Verify | |
| **In Chat:** | |
| - β Appropriate responses to different distress levels | |
| - β Correct classification indicators | |
| - β Clear addressee labels (To patient: / To spiritual care team:) | |
| **In Conversation Verification:** | |
| - β Accurate distress level detection (GREEN/YELLOW/RED) | |
| - β Provider Summary completeness and accuracy | |
| - β All important information captured | |
| ### Provider Summary Review (Final Exchange) | |
| The Provider Summary is the **most important** part to verify: | |
| **Check for:** | |
| - β Patient demographics (name, age, conditions) | |
| - β Distress indicators clearly stated | |
| - β Severity and urgency levels | |
| - β Recommended timeline for contact | |
| - β Patient quotes (if applicable) | |
| - β Clear, professional narrative style | |
| **If incorrect or incomplete:** | |
| - Mark as β Incorrect | |
| - Add detailed comment about what's missing or wrong | |
| - Specify what should be included | |
| --- | |
| ## π‘ Tips & Best Practices | |
| ### For Effective Testing | |
| 1. **Test various scenarios:** Try different distress levels | |
| 2. **Be specific in comments:** Help us understand what needs fixing | |
| 3. **Review Provider Summary carefully:** This goes to the spiritual care team | |
| 4. **Use predefined profiles:** They cover common scenarios | |
| 5. **Export your results:** Download CSV for reporting | |
| ### Common Issues | |
| **Classification seems wrong?** | |
| - Mark as incorrect | |
| - Select the correct classification | |
| - Explain your reasoning in the comment | |
| **Provider Summary incomplete?** | |
| - Mark as incorrect | |
| - List what's missing in the comment | |
| - Suggest what should be included | |
| **Response not appropriate?** | |
| - Note it in the verification comments | |
| - Specify what would be better | |
| --- | |
| ## π Export & Reporting | |
| ### CSV Export | |
| The CSV file includes: | |
| - All exchanges with classifications | |
| - Your verification results (correct/incorrect) | |
| - Your comments and corrections | |
| - Provider Summary (in the final row) | |
| - Session metadata | |
| **Use for:** | |
| - Reporting to development team | |
| - Tracking accuracy over time | |
| - Identifying patterns in errors | |
| --- | |
| ## π Workflow Summary | |
| ``` | |
| 1. Chat Tab | |
| β Test conversations | |
| 2. Conversation Verification Tab | |
| β Generate verification | |
| β Review exchanges | |
| β Mark correct/incorrect | |
| β Review Provider Summary (final step) | |
| β Download CSV | |
| 3. Report findings to team | |
| ``` | |
| --- | |
| ## β Frequently Asked Questions | |
| **Q: What's the difference between GREEN, YELLOW, and RED?** | |
| - π’ GREEN: No spiritual distress detected | |
| - π‘ YELLOW: Potential distress, needs clarification | |
| - π΄ RED: Significant distress, requires spiritual care referral | |
| **Q: Why is Provider Summary the last exchange?** | |
| - It allows you to review the final message sent to the spiritual care team | |
| - You can verify it's complete and accurate | |
| - Your feedback helps improve summary quality | |
| **Q: Do my changes persist between sessions?** | |
| - No, model and prompt changes are session-only | |
| - This allows safe testing without affecting others | |
| - Use "Promote to File" to make permanent changes | |
| **Q: What should I focus on when testing?** | |
| - Accuracy of distress classification | |
| - Appropriateness of responses | |
| - Completeness of Provider Summary | |
| - Overall user experience | |
| **Q: How do I report issues?** | |
| - Use the verification comments | |
| - Download CSV with your findings | |
| - Share with the development team | |
| --- | |
| ## π Support | |
| If you encounter issues or have questions: | |
| 1. Check this help guide | |
| 2. Contact the development team | |
| --- | |
| **Thank you for helping improve the Medical Assistant! Your feedback is invaluable! π** | |
| """ | |