JeCabrera commited on
Commit
57be20f
verified
1 Parent(s): 0fe5701

Update prompts.py

Browse files
Files changed (1) hide show
  1. prompts.py +35 -3
prompts.py CHANGED
@@ -79,14 +79,46 @@ def create_instruction(product_service, skills, target_audience=None, gender=Non
79
  # Si no existe un ejemplo espec铆fico, usar el ejemplo predeterminado
80
  example = buyer_persona_formats.get(example_key, buyer_persona_formats["example"])
81
 
82
- what_we_want = what_we_really_want["format"]
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  validation = validation_questions["buyer_persona"]
84
 
85
  # Usar la variable importada directamente
86
  format_instruction = bullet_format_instructions
87
 
88
- # Obtener el prompt principal
89
- system_prompt = get_system_prompt()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
 
91
  # Preparar la informaci贸n del p煤blico objetivo si se proporciona
92
  target_audience_info = ""
 
79
  # Si no existe un ejemplo espec铆fico, usar el ejemplo predeterminado
80
  example = buyer_persona_formats.get(example_key, buyer_persona_formats["example"])
81
 
82
+ # Solo incluir la secci贸n "Lo que realmente quiere" para el formato base
83
+ if format_type == "base_format":
84
+ what_we_want = what_we_really_want["format"]
85
+ what_we_want_instruction = """
86
+ Give the reasons why they want what they want. Use **[WHAT WE REALLY WANT]** to answer that section.
87
+
88
+ For the section "Lo que realmente quiere" (What they really want), identify and focus on THE SINGLE MOST IMPORTANT underlying desire that drives this avatar. Choose only one element from [WHAT WE REALLY WANT] that best connects with their fears, obstacles, and aspirations. Develop this single desire in depth, explaining specifically how it manifests in their life, why it's so important to them, and how it relates to their personal circumstances mentioned in previous sections. Be detailed and specific about how this core desire influences their decisions and behaviors.
89
+ """
90
+ else:
91
+ what_we_want = ""
92
+ what_we_want_instruction = """
93
+ IMPORTANT: Do NOT include a "Lo que realmente quiere" section in this format.
94
+ """
95
+
96
  validation = validation_questions["buyer_persona"]
97
 
98
  # Usar la variable importada directamente
99
  format_instruction = bullet_format_instructions
100
 
101
+ # Obtener el prompt principal pero modificarlo seg煤n el formato
102
+ system_prompt = get_system_prompt().replace(
103
+ """Give the reasons why they want what they want. Use **[WHAT WE REALLY WANT]** to answer that section.
104
+
105
+ **IMPORTANT:**
106
+ If there is a variable in **[VARIABLES]**, replace it in the format.
107
+ Base your answers on real-life situations that the avatar would experience in their daily life.
108
+ Use a natural, conversational language that feels authentic and relatable.
109
+ Give the reasons why they want what they want. Use **[WHAT WE REALLY WANT]** to answer that section.
110
+ Use Markdown formatting for the presentation.
111
+ THE ENTIRE RESPONSE MUST BE IN SPANISH, especially the section "Lo que realmente quiere".
112
+ For the section "Lo que realmente quiere" (What they really want), identify and focus on THE SINGLE MOST IMPORTANT underlying desire that drives this avatar. Choose only one element from [WHAT WE REALLY WANT] that best connects with their fears, obstacles, and aspirations. Develop this single desire in depth, explaining specifically how it manifests in their life, why it's so important to them, and how it relates to their personal circumstances mentioned in previous sections. Be detailed and specific about how this core desire influences their decisions and behaviors.""",
113
+
114
+ """**IMPORTANT:**
115
+ If there is a variable in **[VARIABLES]**, replace it in the format.
116
+ Base your answers on real-life situations that the avatar would experience in their daily life.
117
+ Use a natural, conversational language that feels authentic and relatable.
118
+ """ + what_we_want_instruction + """
119
+ Use Markdown formatting for the presentation.
120
+ THE ENTIRE RESPONSE MUST BE IN SPANISH."""
121
+ )
122
 
123
  # Preparar la informaci贸n del p煤blico objetivo si se proporciona
124
  target_audience_info = ""