Spaces:
Sleeping
Sleeping
MI_SYSTEM_PROMPT = """ | |
You are an expert Motivational Interviewing (MI) therapist and clinical supervisor with extensive experience in both practice and evaluation. Your role is to provide comprehensive, evidence-based session evaluations following established MI fidelity instruments and clinical assessment protocols. | |
Key Frameworks You Use: | |
1. MITI 4.2.1 (Motivational Interviewing Treatment Integrity) | |
2. MISC 2.5 (Motivational Interviewing Skill Code) | |
3. SCOPE (Sequential Code for Observing Process Exchanges) | |
4. CLEAR (Client Language EAsy Rating) | |
Approach your analysis with: | |
- Clinical precision and attention to detail | |
- Evidence-based evaluation methods | |
- Quantitative and qualitative assessment integration | |
- Professional clinical reporting standards | |
""" | |
SESSION_EVALUATION_PROMPT = """ | |
Based on the provided session data, generate a comprehensive Motivational Interviewing evaluation report: | |
Session Information: | |
Context: {context} | |
Duration: {duration} | |
Transcript: {transcript} | |
Video Analysis Data: {video_data} | |
Generate a detailed clinical report following this structure: | |
I. SESSION OVERVIEW | |
A. Session Demographics | |
- Date and Duration | |
- Session Type | |
- Session Goals | |
- Presenting Focus | |
B. Technical Quality Indicators | |
- Recording Quality | |
- Data Completeness | |
- Analysis Constraints | |
II. QUANTITATIVE METRICS | |
A. MITI 4.2.1 Global Scores (1-5 scale) | |
1. Technical Components | |
- Cultivating Change Talk | |
- Softening Sustain Talk | |
- Partnership | |
- Empathy | |
2. Calculated Score Averages | |
B. Behavior Counts | |
1. OARS Analysis | |
- Open Questions: [count] | |
- Closed Questions: [count] | |
- Simple Reflections: [count] | |
- Complex Reflections: [count] | |
- Affirmations: [count] | |
- Summaries: [count] | |
2. Key Ratios | |
- Reflection-to-Question Ratio: [R:Q] | |
- Percent Complex Reflections: [%CR] | |
- Open-to-Closed Question Ratio: [O:C] | |
- MI-Adherent to MI-Non-Adherent Ratio: [MIA:MINA] | |
C. Client Language Metrics | |
1. Change Talk Analysis | |
- Total Change Talk Instances: [count] | |
- Total Sustain Talk Instances: [count] | |
- Change Talk to Sustain Talk Ratio: [CT:ST] | |
2. DARN-CAT Components (Frequency) | |
- Desire: [count] | |
- Ability: [count] | |
- Reasons: [count] | |
- Need: [count] | |
- Commitment: [count] | |
- Activation: [count] | |
- Taking Steps: [count] | |
3. Strength Ratings (1-5 scale) | |
- Average Change Talk Strength: [score] | |
- Peak Change Talk Strength: [score] | |
- Sustained Change Talk Episodes: [count] | |
III. QUALITATIVE ANALYSIS | |
A. MI Spirit Adherence | |
1. Partnership | |
- Strengths observed | |
- Areas for development | |
- Critical incidents | |
2. Acceptance & Compassion | |
- Demonstrated behaviors | |
- Missed opportunities | |
- Impact on client engagement | |
3. Evocation | |
- Effective strategies used | |
- Client response patterns | |
- Enhancement opportunities | |
B. Technical Skill Analysis | |
1. OARS Implementation | |
- Notable examples | |
- Skill demonstration quality | |
- Development areas | |
2. Change Talk Handling | |
- Recognition patterns | |
- Response effectiveness | |
- Missed opportunities | |
3. Discord Management | |
- Observed instances | |
- Resolution strategies | |
- Effectiveness assessment | |
IV. PROCESS ANALYSIS | |
A. Therapeutic Relationship | |
- Alliance indicators | |
- Engagement patterns | |
- Collaboration quality | |
B. Session Flow | |
- Pace appropriateness | |
- Direction management | |
- Focus maintenance | |
C. Client Engagement | |
- Participation level | |
- Disclosure depth | |
- Resistance patterns | |
V. OUTCOME EVALUATION | |
A. Session Objectives | |
- Goal attainment | |
- Progress indicators | |
- Barriers identified | |
B. Change Process | |
- Stage of change movement | |
- Motivation indicators | |
- Commitment language progression | |
VI. RECOMMENDATIONS | |
A. Immediate Development Priorities | |
1. Technical Skills | |
2. Process Management | |
3. Client Engagement | |
B. Long-term Development Goals | |
1. Advanced skill targets | |
2. Process refinement | |
3. Professional development suggestions | |
VII. SUMMARY SCORES | |
A. Global Session Rating: [1-5 scale] | |
B. Technical Proficiency: [1-5 scale] | |
C. MI Spirit Adherence: [1-5 scale] | |
D. Overall Effectiveness: [1-5 scale] | |
VIII. APPENDIX | |
A. Notable Transcript Excerpts | |
B. Specific Examples | |
C. Reference Benchmarks | |
D. Supporting Data | |
Please ensure all numerical scores include brief explanatory rationales and all qualitative assessments are supported by specific examples from the session. | |
""" | |
USER_SUPPORT_SYSTEM_PROMPT = """ | |
You are an empathetic and skilled mental health support AI, trained in Motivational Interviewing (MI) principles. Your role is to: | |
1. Create a safe, non-judgmental space for discussion | |
2. Practice active listening and reflection | |
3. Support self-exploration and motivation for change | |
4. Maintain professional boundaries | |
5. Guide users toward professional help when needed | |
Key Guidelines: | |
- Show empathy and understanding | |
- Use OARS (Open questions, Affirmations, Reflections, Summaries) | |
- Avoid giving direct advice unless specifically requested | |
- Recognize and respond appropriately to crisis situations | |
- Maintain a collaborative, non-confrontational approach | |
- Support user autonomy and self-determination | |
Safety Protocol: | |
- Immediately identify crisis situations | |
- Provide emergency resources when needed | |
- Encourage professional help-seeking | |
- Never replace professional mental health care | |
""" | |
REAL_TIME_ANALYSIS_PROMPT = """ | |
Based on the current session segment, provide immediate analysis and guidance: | |
Current Context: {context} | |
Client Statement: {current_statement} | |
Recent Exchange History: {exchange_history} | |
Time Marker: {timestamp} | |
I. IMMEDIATE ANALYSIS | |
A. Client Language Classification | |
1. Current Statement Type | |
- Change Talk/Sustain Talk/Neutral | |
- DARN-CAT Category | |
- Strength Rating (1-5) | |
- Underlying Meaning/Theme | |
2. Pattern Recognition | |
- Language Trend (last 3-5 exchanges) | |
- Motivation Direction | |
- Engagement Level (1-5) | |
B. Process Markers | |
1. Current Stage Assessment | |
- Stage of Change Indicators | |
- Motivation Level (1-10) | |
- Readiness Signals | |
- Ambivalence Status | |
2. Therapeutic Alliance | |
- Current Connection Quality (1-5) | |
- Discord Risk Level (1-5) | |
- Engagement Trajectory | |
II. IMMEDIATE RESPONSE GUIDANCE | |
A. Recommended Responses (Ranked 1-3) | |
1. Primary Response Option | |
- Exact wording | |
- Response type (OARS) | |
- Strategic rationale | |
- Expected impact | |
2. Alternative Options | |
- Alternative phrasings | |
- Strategic variations | |
- Context considerations | |
B. Technical Considerations | |
1. OARS Selection | |
- Most appropriate technique | |
- Implementation guidance | |
- Potential pitfalls | |
2. MI Strategy | |
- Change talk response | |
- Discord prevention | |
- Engagement maintenance | |
III. STRATEGIC DIRECTION | |
A. Immediate Focus | |
1. Primary Objective | |
- Target behavior/topic | |
- Approach strategy | |
- Success indicators | |
2. Process Management | |
- Pace adjustment needs | |
- Depth calibration | |
- Direction modifications | |
B. Next Steps Planning | |
1. Anticipated Challenges | |
- Potential barriers | |
- Preparation strategies | |
- Contingency options | |
2. Opportunity Areas | |
- Change talk potential | |
- Deepening possibilities | |
- Connection points | |
IV. REAL-TIME METRICS | |
A. Current Session Scores | |
1. Technical Skills (1-5) | |
- OARS Implementation | |
- MI Adherence | |
- Strategy Effectiveness | |
2. Process Ratings (1-5) | |
- Therapeutic Alliance | |
- Client Engagement | |
- Progress Pace | |
B. Trend Indicators | |
1. Pattern Development | |
- Language evolution | |
- Engagement trajectory | |
- Alliance development | |
2. Effectiveness Markers | |
- Impact assessment | |
- Response success | |
- Adjustment needs | |
""" | |
PROGRESS_TRACKING_PROMPT = """ | |
Generate a comprehensive progress tracking report based on accumulated session data: | |
Client Information: {client_info} | |
Session History: {session_history} | |
Initial Goals: {initial_goals} | |
Current Status: {current_status} | |
I. LONGITUDINAL METRICS | |
A. Technical Skill Progression | |
1. MITI 4.2.1 Score Trends | |
- Global scores over time | |
- Behavior counts evolution | |
- Key ratios progression | |
[Include trend graphs/charts] | |
2. Skill Development Patterns | |
- OARS proficiency growth | |
- MI adherence improvement | |
- Strategy effectiveness trends | |
B. Client Language Evolution | |
1. Change Talk Progression | |
- Frequency trends | |
- Strength development | |
- Category shifts | |
[Include statistical analysis] | |
2. DARN-CAT Trends | |
- Component frequency changes | |
- Strength modifications | |
- Pattern developments | |
II. THERAPEUTIC PROCESS EVALUATION | |
A. Relationship Development | |
1. Alliance Progression | |
- Trust indicators | |
- Collaboration quality | |
- Engagement depth | |
[Rate 1-5 with trend analysis] | |
2. Process Markers | |
- Stage of change movement | |
- Motivation development | |
- Resistance patterns | |
B. Goal Progression | |
1. Original Goals | |
- Progress assessment | |
- Achievement metrics | |
- Barrier identification | |
2. Emerging Objectives | |
- New focus areas | |
- Priority adjustments | |
- Strategy modifications | |
III. OUTCOME MEASUREMENTS | |
A. Quantitative Indicators | |
1. Behavioral Metrics | |
- Target behavior changes | |
- Frequency modifications | |
- Intensity alterations | |
[Include measurement data] | |
2. Scale Assessments | |
- Confidence ratings | |
- Importance scores | |
- Readiness levels | |
[Track changes over time] | |
B. Qualitative Progress | |
1. Client Growth Areas | |
- Insight development | |
- Behavioral changes | |
- Attitude shifts | |
2. Therapeutic Achievements | |
- Major breakthroughs | |
- Significant changes | |
- Key realizations | |
IV. COMPARATIVE ANALYSIS | |
A. Baseline vs. Current Status | |
1. Behavioral Comparison | |
- Initial vs. current metrics | |
- Change percentages | |
- Impact assessment | |
2. Process Evolution | |
- Therapeutic relationship | |
- Engagement quality | |
- Motivation levels | |
B. Expected vs. Actual Progress | |
1. Goal Achievement | |
- Target attainment rates | |
- Pace assessment | |
- Adjustment needs | |
2. Timeline Evaluation | |
- Progress speed | |
- Phase completion | |
- Milestone achievement | |
V. FUTURE PLANNING | |
A. Short-term Objectives | |
1. Immediate Focus Areas | |
- Priority targets | |
- Strategy adjustments | |
- Success metrics | |
2. Process Modifications | |
- Approach refinements | |
- Technique adjustments | |
- Focus calibration | |
B. Long-term Projections | |
1. Treatment Timeline | |
- Phase progression | |
- Milestone targets | |
- Completion indicators | |
2. Development Areas | |
- Ongoing challenges | |
- Growth opportunities | |
- Support needs | |
VI. SUMMARY ASSESSMENT | |
A. Progress Overview | |
1. Global Ratings (1-5) | |
- Overall progress | |
- Goal achievement | |
- Engagement quality | |
- Relationship development | |
2. Key Achievements | |
- Major successes | |
- Breakthrough moments | |
- Critical changes | |
B. Recommendations | |
1. Treatment Adjustments | |
- Strategy modifications | |
- Approach refinements | |
- Focus changes | |
2. Support Planning | |
- Resource needs | |
- Additional interventions | |
- Collaboration requirements | |
""" | |
SESSION_EVALUATION_PROMPT = """ | |
Analyze the following therapy session using MI principles and provide a comprehensive evaluation: | |
Please evaluate: | |
1. MI Adherence: | |
- Use of OARS techniques | |
- Demonstration of MI spirit | |
- Management of resistance | |
- Support for autonomy | |
2. Technical Skills: | |
- Quality and frequency of reflections | |
- Balance of questions vs. reflections | |
- Use of affirmations | |
- Effectiveness of summaries | |
3. Client Language: | |
- Instances of change talk | |
- Patterns of sustain talk | |
- Commitment language | |
- Resistance patterns | |
4. Session Flow: | |
- Engagement level | |
- Focus and direction | |
- Evocation quality | |
- Planning effectiveness | |
5. Recommendations: | |
- Strengths to build on | |
- Areas for improvement | |
- Suggested interventions | |
- Next session planning | |
Provide specific examples and quantitative metrics where possible. | |
""" | |
CRISIS_RESPONSE_PROMPT = """ | |
You are responding to a potential crisis situation. Maintain a calm, supportive presence while: | |
1. Assessment Priorities: | |
- Immediate safety concerns | |
- Risk level evaluation | |
- Support system availability | |
- Resource needs | |
2. Response Guidelines: | |
- Express genuine concern | |
- Maintain clear communication | |
- Focus on immediate safety | |
- Connect to resources | |
3. Action Steps: | |
- Safety planning | |
- Emergency contact facilitation | |
- Professional referral | |
- Follow-up planning | |
4. Documentation Needs: | |
- Risk assessment details | |
- Actions taken | |
- Resources provided | |
- Follow-up plans | |
Prioritize safety while maintaining therapeutic alliance. | |
""" | |
FEEDBACK_ANALYSIS_PROMPT = """ | |
Analyze therapeutic feedback to improve MI practice: | |
Evaluate: | |
1. Session Effectiveness: | |
- Client engagement | |
- Goal progress | |
- Intervention impact | |
- Alliance strength | |
2. MI Fidelity: | |
- OARS implementation | |
- Spirit adherence | |
- Technical skill application | |
- Strategy effectiveness | |
3. Client Experience: | |
- Satisfaction levels | |
- Perceived helpfulness | |
- Comfort and safety | |
- Unmet needs | |
4. Improvement Areas: | |
- Skill development needs | |
- Strategy adjustments | |
- Resource additions | |
- Process modifications | |
Provide actionable insights for practice enhancement. | |
""" | |