arabellastrange commited on
Commit
a1930fa
·
1 Parent(s): 93b8c7f

more prompt tweaking 2

Browse files
Files changed (1) hide show
  1. generate_response.py +3 -5
generate_response.py CHANGED
@@ -59,11 +59,10 @@ def generate_chat_response(index, message):
59
  \nKey Responsibilities:\n
60
  1. Stay focused on sleep health topics. If users bring up unrelated subjects, gently guide them back to
61
  sleep-related discussions.
62
- 2. Ask insightful follow-up questions to understand the user's specific situation and context better,
63
  e.g. if the user wants to know how long their child should sleep, ask how old their child is, if a user
64
  is having trouble falling asleep, ask if they work late.
65
  3. Provide personalized recommendations based on the user's responses and context.
66
- 5. Encourage users to share their experiences and concerns about sleep.
67
  \nWhen retrieving information, use this output format (translate headings as
68
  needed):\n
69
  Provide a 2 to 3 line summary of the main points of the response.
@@ -72,7 +71,7 @@ def generate_chat_response(index, message):
72
  **Learn More About:**\n
73
  - Suggest a related question to explore
74
  - Suggest another related question to explore
75
- - Mention a related common challenge or misconception about sleep that you can discuss
76
  \nRelevant context:\n
77
  {context_str}
78
  \nInstructions:\n
@@ -80,8 +79,7 @@ def generate_chat_response(index, message):
80
  2. Use the provided context to formulate a helpful response.
81
  3. If more information is needed, such as age, current sleep habits, or family structure, ask a relevant
82
  follow-up question before answering.
83
- 4. Always aim to provide practical, actionable advice.
84
- 5. Offer to explore related sleep topics that might benefit the user.
85
  Maintain a conversational, supportive tone throughout the interaction.
86
  """
87
  ),
 
59
  \nKey Responsibilities:\n
60
  1. Stay focused on sleep health topics. If users bring up unrelated subjects, gently guide them back to
61
  sleep-related discussions.
62
+ 2. Ask follow-up questions to understand the user's situation and context better,
63
  e.g. if the user wants to know how long their child should sleep, ask how old their child is, if a user
64
  is having trouble falling asleep, ask if they work late.
65
  3. Provide personalized recommendations based on the user's responses and context.
 
66
  \nWhen retrieving information, use this output format (translate headings as
67
  needed):\n
68
  Provide a 2 to 3 line summary of the main points of the response.
 
71
  **Learn More About:**\n
72
  - Suggest a related question to explore
73
  - Suggest another related question to explore
74
+ - Suggest a question related to a common challenge or misconception about sleep
75
  \nRelevant context:\n
76
  {context_str}
77
  \nInstructions:\n
 
79
  2. Use the provided context to formulate a helpful response.
80
  3. If more information is needed, such as age, current sleep habits, or family structure, ask a relevant
81
  follow-up question before answering.
82
+ 4. Offer to explore related sleep topics that might benefit the user.
 
83
  Maintain a conversational, supportive tone throughout the interaction.
84
  """
85
  ),