Commit ·
8a8d6cc
1
Parent(s): 8f08ad2
- ignoring personalized info to simplify the process
Browse files
Messaging_system/MultiMessage.py
CHANGED
|
@@ -172,7 +172,7 @@ Mimic the example style as much as possible and make it personalized using provi
|
|
| 172 |
# Combine into a single string
|
| 173 |
previous_text_str = "\n\n".join(previous_text)
|
| 174 |
|
| 175 |
-
user_info = self.promptGen.get_user_profile(user=user)
|
| 176 |
input_context = self.promptGen.input_context()
|
| 177 |
instructions = self.message_instructions(step)
|
| 178 |
recommendation_instructions = self.promptGen.recommendations_instructions(user)
|
|
@@ -193,9 +193,7 @@ Write the *next* follow up personalized push notification following the instruct
|
|
| 193 |
{input_context}
|
| 194 |
{instructions}
|
| 195 |
- The new header and message should be different from previous messages and we should not have similar words and phrases from previous messages.
|
| 196 |
-
- You are **ONLY ALLOWED** to use {self.Core.get_emoji()}
|
| 197 |
-
|
| 198 |
-
{user_info}
|
| 199 |
|
| 200 |
{recommendation_instructions}
|
| 201 |
|
|
|
|
| 172 |
# Combine into a single string
|
| 173 |
previous_text_str = "\n\n".join(previous_text)
|
| 174 |
|
| 175 |
+
# user_info = self.promptGen.get_user_profile(user=user)
|
| 176 |
input_context = self.promptGen.input_context()
|
| 177 |
instructions = self.message_instructions(step)
|
| 178 |
recommendation_instructions = self.promptGen.recommendations_instructions(user)
|
|
|
|
| 193 |
{input_context}
|
| 194 |
{instructions}
|
| 195 |
- The new header and message should be different from previous messages and we should not have similar words and phrases from previous messages.
|
| 196 |
+
- You are **ONLY ALLOWED** to use {self.Core.get_emoji()} if we didn't use in previous messages. (ONLY ONCE, and ONLY at the end of header or message).
|
|
|
|
|
|
|
| 197 |
|
| 198 |
{recommendation_instructions}
|
| 199 |
|
Messaging_system/PromptGenerator.py
CHANGED
|
@@ -88,7 +88,7 @@ Here is the information about the user:
|
|
| 88 |
"""
|
| 89 |
input_context = self.input_context()
|
| 90 |
instructions = self.message_type_instructions()
|
| 91 |
-
user_info = self.get_user_profile(user=user)
|
| 92 |
|
| 93 |
recommendation_instructions = self.recommendations_instructions(user)
|
| 94 |
|
|
@@ -101,8 +101,6 @@ Here is the information about the user:
|
|
| 101 |
|
| 102 |
{instructions}
|
| 103 |
|
| 104 |
-
{user_info}
|
| 105 |
-
|
| 106 |
{recommendation_instructions}
|
| 107 |
|
| 108 |
{example_output}
|
|
@@ -202,8 +200,8 @@ Goal: Make the recommendation feel personalized and casually relevant — not ge
|
|
| 202 |
**Expected output structure:**
|
| 203 |
|
| 204 |
thoughts:
|
| 205 |
-
1. Generate a header
|
| 206 |
-
2. Generate a message
|
| 207 |
3. Ensure that the output is a valid JSON following below structure.
|
| 208 |
|
| 209 |
{{
|
|
|
|
| 88 |
"""
|
| 89 |
input_context = self.input_context()
|
| 90 |
instructions = self.message_type_instructions()
|
| 91 |
+
# user_info = self.get_user_profile(user=user)
|
| 92 |
|
| 93 |
recommendation_instructions = self.recommendations_instructions(user)
|
| 94 |
|
|
|
|
| 101 |
|
| 102 |
{instructions}
|
| 103 |
|
|
|
|
|
|
|
| 104 |
{recommendation_instructions}
|
| 105 |
|
| 106 |
{example_output}
|
|
|
|
| 200 |
**Expected output structure:**
|
| 201 |
|
| 202 |
thoughts:
|
| 203 |
+
1. Generate a header less than {self.Core.config_file["header_limit"]} characters.
|
| 204 |
+
2. Generate a message less than {self.Core.config_file["message_limit"]} characters.
|
| 205 |
3. Ensure that the output is a valid JSON following below structure.
|
| 206 |
|
| 207 |
{{
|