Skip to content

Commit b4f2725

Browse files
Merge pull request #39 from BlissMe/Piumi_llmPromptFixing
did prompt changes
2 parents 61b3de7 + 239696e commit b4f2725

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

textChatMode/chat.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ async def ask_question(data: QueryRequest):
100100
if not data.asked_phq_ids:
101101
# Before first PHQ question
102102
phq_instruction = (
103-
"You may now gently say something like:\n"
103+
"You MUST now gently say something like:\n"
104104
'"To better understand how you’re doing, I’d like to ask a few short questions about how you’ve felt in the past two weeks."\n'
105-
"Then ask this first question exactly as shown (do NOT paraphrase):\n"
105+
"Then ask this first question EXACTLY as shown (do NOT paraphrase):\n"
106106
f'- "{next_q["meaning"]}"\n\n'
107-
"After the user replies, respond with one short caring line (eg. “Thank you for sharing.” / “I understand, that sounds tough.” / “I understand.”/ “I’m here for you.”) and move to the next PHQ-9 question in order.\n"
107+
"After the user replies, respond with ONE SHORT caring line (eg. “Thank you for sharing.” / “I understand, that sounds tough.” / “I understand.”/ “I’m here for you.”) and move to the next PHQ-9 question in order EXACTLY as shown .\n"
108108
"Ask only one PHQ question per message.\n"
109109
"User can reply with: not at all, several days, more than half the days, nearly every day."
110110
)
@@ -128,10 +128,11 @@ async def ask_question(data: QueryRequest):
128128
- NEVER mention PHQ-9 or say "I cannot help you".
129129
130130
- Avoid medical or crisis terms unless directly asked.
131+
- Keep your replies short and friendly. One question per message. Once PHQ-9 starts, go through them without pausing.
131132
132133
-before starting phq-9, need to ask at least 3 normal chat turns.
133-
-then when starting phq-9, before first question, gently inform user about the questions like "To better understand how you’re doing, I’d like to ask a few short questions about how you’ve felt in the past two weeks."
134-
- Keep your replies short and friendly. One question per message. Once PHQ-9 starts, go through them without pausing.
134+
-then when starting phq-9, before first question, you MUST gently inform user about the questions like "To better understand how you’re doing, I’d like to ask a few short questions about how you’ve felt in the past two weeks."
135+
- Ask all 9 PHQ-9 questions in order, one at a time, exactly given as in the phq_instruction.
135136
136137
- After finishing all 9, continue chatting normally with care and empathy.
137138

0 commit comments

Comments
 (0)