Jiaaaaaaax commited on
Commit
a91ca77
·
verified ·
1 Parent(s): b34b702

Upload prompts.py

Browse files
Files changed (1) hide show
  1. prompts.py +425 -0
prompts.py ADDED
@@ -0,0 +1,425 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MI_SYSTEM_PROMPT = """
2
+ 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.
3
+
4
+ Key Frameworks You Use:
5
+ 1. MITI 4.2.1 (Motivational Interviewing Treatment Integrity)
6
+ 2. MISC 2.5 (Motivational Interviewing Skill Code)
7
+ 3. SCOPE (Sequential Code for Observing Process Exchanges)
8
+ 4. CLEAR (Client Language EAsy Rating)
9
+
10
+ Approach your analysis with:
11
+ - Clinical precision and attention to detail
12
+ - Evidence-based evaluation methods
13
+ - Quantitative and qualitative assessment integration
14
+ - Professional clinical reporting standards
15
+ """
16
+
17
+ SESSION_EVALUATION_PROMPT = """
18
+ Based on the provided session data, generate a comprehensive Motivational Interviewing evaluation report:
19
+
20
+ Session Information:
21
+ Context: {context}
22
+ Duration: {duration}
23
+ Transcript: {transcript}
24
+ Video Analysis Data: {video_data}
25
+
26
+ Generate a detailed clinical report following this structure:
27
+
28
+ I. SESSION OVERVIEW
29
+ A. Session Demographics
30
+ - Date and Duration
31
+ - Session Type
32
+ - Session Goals
33
+ - Presenting Focus
34
+
35
+ B. Technical Quality Indicators
36
+ - Recording Quality
37
+ - Data Completeness
38
+ - Analysis Constraints
39
+
40
+ II. QUANTITATIVE METRICS
41
+ A. MITI 4.2.1 Global Scores (1-5 scale)
42
+ 1. Technical Components
43
+ - Cultivating Change Talk
44
+ - Softening Sustain Talk
45
+ - Partnership
46
+ - Empathy
47
+ 2. Calculated Score Averages
48
+
49
+ B. Behavior Counts
50
+ 1. OARS Analysis
51
+ - Open Questions: [count]
52
+ - Closed Questions: [count]
53
+ - Simple Reflections: [count]
54
+ - Complex Reflections: [count]
55
+ - Affirmations: [count]
56
+ - Summaries: [count]
57
+
58
+ 2. Key Ratios
59
+ - Reflection-to-Question Ratio: [R:Q]
60
+ - Percent Complex Reflections: [%CR]
61
+ - Open-to-Closed Question Ratio: [O:C]
62
+ - MI-Adherent to MI-Non-Adherent Ratio: [MIA:MINA]
63
+
64
+ C. Client Language Metrics
65
+ 1. Change Talk Analysis
66
+ - Total Change Talk Instances: [count]
67
+ - Total Sustain Talk Instances: [count]
68
+ - Change Talk to Sustain Talk Ratio: [CT:ST]
69
+
70
+ 2. DARN-CAT Components (Frequency)
71
+ - Desire: [count]
72
+ - Ability: [count]
73
+ - Reasons: [count]
74
+ - Need: [count]
75
+ - Commitment: [count]
76
+ - Activation: [count]
77
+ - Taking Steps: [count]
78
+
79
+ 3. Strength Ratings (1-5 scale)
80
+ - Average Change Talk Strength: [score]
81
+ - Peak Change Talk Strength: [score]
82
+ - Sustained Change Talk Episodes: [count]
83
+
84
+ III. QUALITATIVE ANALYSIS
85
+ A. MI Spirit Adherence
86
+ 1. Partnership
87
+ - Strengths observed
88
+ - Areas for development
89
+ - Critical incidents
90
+
91
+ 2. Acceptance & Compassion
92
+ - Demonstrated behaviors
93
+ - Missed opportunities
94
+ - Impact on client engagement
95
+
96
+ 3. Evocation
97
+ - Effective strategies used
98
+ - Client response patterns
99
+ - Enhancement opportunities
100
+
101
+ B. Technical Skill Analysis
102
+ 1. OARS Implementation
103
+ - Notable examples
104
+ - Skill demonstration quality
105
+ - Development areas
106
+
107
+ 2. Change Talk Handling
108
+ - Recognition patterns
109
+ - Response effectiveness
110
+ - Missed opportunities
111
+
112
+ 3. Discord Management
113
+ - Observed instances
114
+ - Resolution strategies
115
+ - Effectiveness assessment
116
+
117
+ IV. PROCESS ANALYSIS
118
+ A. Therapeutic Relationship
119
+ - Alliance indicators
120
+ - Engagement patterns
121
+ - Collaboration quality
122
+
123
+ B. Session Flow
124
+ - Pace appropriateness
125
+ - Direction management
126
+ - Focus maintenance
127
+
128
+ C. Client Engagement
129
+ - Participation level
130
+ - Disclosure depth
131
+ - Resistance patterns
132
+
133
+ V. OUTCOME EVALUATION
134
+ A. Session Objectives
135
+ - Goal attainment
136
+ - Progress indicators
137
+ - Barriers identified
138
+
139
+ B. Change Process
140
+ - Stage of change movement
141
+ - Motivation indicators
142
+ - Commitment language progression
143
+
144
+ VI. RECOMMENDATIONS
145
+ A. Immediate Development Priorities
146
+ 1. Technical Skills
147
+ 2. Process Management
148
+ 3. Client Engagement
149
+
150
+ B. Long-term Development Goals
151
+ 1. Advanced skill targets
152
+ 2. Process refinement
153
+ 3. Professional development suggestions
154
+
155
+ VII. SUMMARY SCORES
156
+ A. Global Session Rating: [1-5 scale]
157
+ B. Technical Proficiency: [1-5 scale]
158
+ C. MI Spirit Adherence: [1-5 scale]
159
+ D. Overall Effectiveness: [1-5 scale]
160
+
161
+ VIII. APPENDIX
162
+ A. Notable Transcript Excerpts
163
+ B. Specific Examples
164
+ C. Reference Benchmarks
165
+ D. Supporting Data
166
+
167
+ Please ensure all numerical scores include brief explanatory rationales and all qualitative assessments are supported by specific examples from the session.
168
+ """
169
+
170
+ REAL_TIME_ANALYSIS_PROMPT = """
171
+ Based on the current session segment, provide immediate analysis and guidance:
172
+
173
+ Current Context: {context}
174
+ Client Statement: {current_statement}
175
+ Recent Exchange History: {exchange_history}
176
+ Time Marker: {timestamp}
177
+
178
+ I. IMMEDIATE ANALYSIS
179
+ A. Client Language Classification
180
+ 1. Current Statement Type
181
+ - Change Talk/Sustain Talk/Neutral
182
+ - DARN-CAT Category
183
+ - Strength Rating (1-5)
184
+ - Underlying Meaning/Theme
185
+
186
+ 2. Pattern Recognition
187
+ - Language Trend (last 3-5 exchanges)
188
+ - Motivation Direction
189
+ - Engagement Level (1-5)
190
+
191
+ B. Process Markers
192
+ 1. Current Stage Assessment
193
+ - Stage of Change Indicators
194
+ - Motivation Level (1-10)
195
+ - Readiness Signals
196
+ - Ambivalence Status
197
+
198
+ 2. Therapeutic Alliance
199
+ - Current Connection Quality (1-5)
200
+ - Discord Risk Level (1-5)
201
+ - Engagement Trajectory
202
+
203
+ II. IMMEDIATE RESPONSE GUIDANCE
204
+ A. Recommended Responses (Ranked 1-3)
205
+ 1. Primary Response Option
206
+ - Exact wording
207
+ - Response type (OARS)
208
+ - Strategic rationale
209
+ - Expected impact
210
+
211
+ 2. Alternative Options
212
+ - Alternative phrasings
213
+ - Strategic variations
214
+ - Context considerations
215
+
216
+ B. Technical Considerations
217
+ 1. OARS Selection
218
+ - Most appropriate technique
219
+ - Implementation guidance
220
+ - Potential pitfalls
221
+
222
+ 2. MI Strategy
223
+ - Change talk response
224
+ - Discord prevention
225
+ - Engagement maintenance
226
+
227
+ III. STRATEGIC DIRECTION
228
+ A. Immediate Focus
229
+ 1. Primary Objective
230
+ - Target behavior/topic
231
+ - Approach strategy
232
+ - Success indicators
233
+
234
+ 2. Process Management
235
+ - Pace adjustment needs
236
+ - Depth calibration
237
+ - Direction modifications
238
+
239
+ B. Next Steps Planning
240
+ 1. Anticipated Challenges
241
+ - Potential barriers
242
+ - Preparation strategies
243
+ - Contingency options
244
+
245
+ 2. Opportunity Areas
246
+ - Change talk potential
247
+ - Deepening possibilities
248
+ - Connection points
249
+
250
+ IV. REAL-TIME METRICS
251
+ A. Current Session Scores
252
+ 1. Technical Skills (1-5)
253
+ - OARS Implementation
254
+ - MI Adherence
255
+ - Strategy Effectiveness
256
+
257
+ 2. Process Ratings (1-5)
258
+ - Therapeutic Alliance
259
+ - Client Engagement
260
+ - Progress Pace
261
+
262
+ B. Trend Indicators
263
+ 1. Pattern Development
264
+ - Language evolution
265
+ - Engagement trajectory
266
+ - Alliance development
267
+
268
+ 2. Effectiveness Markers
269
+ - Impact assessment
270
+ - Response success
271
+ - Adjustment needs
272
+ """
273
+
274
+ PROGRESS_TRACKING_PROMPT = """
275
+ Generate a comprehensive progress tracking report based on accumulated session data:
276
+
277
+ Client Information: {client_info}
278
+ Session History: {session_history}
279
+ Initial Goals: {initial_goals}
280
+ Current Status: {current_status}
281
+
282
+ I. LONGITUDINAL METRICS
283
+ A. Technical Skill Progression
284
+ 1. MITI 4.2.1 Score Trends
285
+ - Global scores over time
286
+ - Behavior counts evolution
287
+ - Key ratios progression
288
+ [Include trend graphs/charts]
289
+
290
+ 2. Skill Development Patterns
291
+ - OARS proficiency growth
292
+ - MI adherence improvement
293
+ - Strategy effectiveness trends
294
+
295
+ B. Client Language Evolution
296
+ 1. Change Talk Progression
297
+ - Frequency trends
298
+ - Strength development
299
+ - Category shifts
300
+ [Include statistical analysis]
301
+
302
+ 2. DARN-CAT Trends
303
+ - Component frequency changes
304
+ - Strength modifications
305
+ - Pattern developments
306
+
307
+ II. THERAPEUTIC PROCESS EVALUATION
308
+ A. Relationship Development
309
+ 1. Alliance Progression
310
+ - Trust indicators
311
+ - Collaboration quality
312
+ - Engagement depth
313
+ [Rate 1-5 with trend analysis]
314
+
315
+ 2. Process Markers
316
+ - Stage of change movement
317
+ - Motivation development
318
+ - Resistance patterns
319
+
320
+ B. Goal Progression
321
+ 1. Original Goals
322
+ - Progress assessment
323
+ - Achievement metrics
324
+ - Barrier identification
325
+
326
+ 2. Emerging Objectives
327
+ - New focus areas
328
+ - Priority adjustments
329
+ - Strategy modifications
330
+
331
+ III. OUTCOME MEASUREMENTS
332
+ A. Quantitative Indicators
333
+ 1. Behavioral Metrics
334
+ - Target behavior changes
335
+ - Frequency modifications
336
+ - Intensity alterations
337
+ [Include measurement data]
338
+
339
+ 2. Scale Assessments
340
+ - Confidence ratings
341
+ - Importance scores
342
+ - Readiness levels
343
+ [Track changes over time]
344
+
345
+ B. Qualitative Progress
346
+ 1. Client Growth Areas
347
+ - Insight development
348
+ - Behavioral changes
349
+ - Attitude shifts
350
+
351
+ 2. Therapeutic Achievements
352
+ - Major breakthroughs
353
+ - Significant changes
354
+ - Key realizations
355
+
356
+ IV. COMPARATIVE ANALYSIS
357
+ A. Baseline vs. Current Status
358
+ 1. Behavioral Comparison
359
+ - Initial vs. current metrics
360
+ - Change percentages
361
+ - Impact assessment
362
+
363
+ 2. Process Evolution
364
+ - Therapeutic relationship
365
+ - Engagement quality
366
+ - Motivation levels
367
+
368
+ B. Expected vs. Actual Progress
369
+ 1. Goal Achievement
370
+ - Target attainment rates
371
+ - Pace assessment
372
+ - Adjustment needs
373
+
374
+ 2. Timeline Evaluation
375
+ - Progress speed
376
+ - Phase completion
377
+ - Milestone achievement
378
+
379
+ V. FUTURE PLANNING
380
+ A. Short-term Objectives
381
+ 1. Immediate Focus Areas
382
+ - Priority targets
383
+ - Strategy adjustments
384
+ - Success metrics
385
+
386
+ 2. Process Modifications
387
+ - Approach refinements
388
+ - Technique adjustments
389
+ - Focus calibration
390
+
391
+ B. Long-term Projections
392
+ 1. Treatment Timeline
393
+ - Phase progression
394
+ - Milestone targets
395
+ - Completion indicators
396
+
397
+ 2. Development Areas
398
+ - Ongoing challenges
399
+ - Growth opportunities
400
+ - Support needs
401
+
402
+ VI. SUMMARY ASSESSMENT
403
+ A. Progress Overview
404
+ 1. Global Ratings (1-5)
405
+ - Overall progress
406
+ - Goal achievement
407
+ - Engagement quality
408
+ - Relationship development
409
+
410
+ 2. Key Achievements
411
+ - Major successes
412
+ - Breakthrough moments
413
+ - Critical changes
414
+
415
+ B. Recommendations
416
+ 1. Treatment Adjustments
417
+ - Strategy modifications
418
+ - Approach refinements
419
+ - Focus changes
420
+
421
+ 2. Support Planning
422
+ - Resource needs
423
+ - Additional interventions
424
+ - Collaboration requirements
425
+ """