JeCabrera commited on
Commit
e9e138e
·
verified ·
1 Parent(s): 2a1eb3b

Update format/format.py

Browse files
Files changed (1) hide show
  1. format/format.py +14 -112
format/format.py CHANGED
@@ -117,9 +117,7 @@ buyer_persona_formats = {
117
  **Lo que realmente quiere**: Lograr el éxito tanto en su vida personal como profesional para aumentar su potencial, vivir una vida llena de comodidades y lujos, ser respetada y admirada por sus habilidades y talentos, tener más tiempo para lo que ama y menos tiempo para lo que odia, ascender en la jerarquía social, y establecer relaciones cercanas y duraderas con amigos y familia. También busca validar sus sentimientos y demostrar que tiene razón a través de su éxito, escapar del peligro, y liberarse del miedo y la culpa que pueden impedirle alcanzar sus metas. Desea dejar un legado duradero y ser aceptada y apreciada por un grupo social o comunidad que comparta sus valores y aspiraciones.
118
  """,
119
 
120
- # Modificamos las instrucciones en bullet_format para ser más explícitas
121
-
122
- buyer_persona_formats["bullet_format"] = """
123
  \n\nIMPORTANT - LIST FORMAT:
124
  For the sections of Fears, Insecurities, Guilt, Problems, and Frustrations, use BULLET POINTS (•) with PROPER PARAGRAPH BREAKS after each item.
125
 
@@ -173,112 +171,16 @@ buyer_persona_formats = {
173
 
174
  6. When the user selects "Ninguno", your response should NOT contain any line starting with "**Nivel de conciencia**". Skip directly from "**¿Cómo es?**" to "**Miedos**" without any mention of consciousness level.
175
  """
176
-
177
- # Eliminamos la función get_format_by_consciousness_level ya que vamos a manejar esto
178
- # directamente a través de las instrucciones al modelo
179
- }
180
-
181
- what_we_really_want = {
182
- "list": [
183
- "Increase our potential",
184
- "Escape danger",
185
- "Free ourselves from fear and guilt",
186
- "Silence those who doubt us",
187
- "Validate our feelings",
188
- "Power over others",
189
- "Advantages over our rivals",
190
- "Be free from the consequences",
191
- "Have more time dedicated to what we love",
192
- "Less time dedicated to what we hate",
193
- "Happiness and satisfaction",
194
- "Prove we are right",
195
- "Prove our detractors wrong",
196
- "Be attractive and charming to others",
197
- "Leave a lasting legacy",
198
- "Higher status among our peers",
199
- "Have a life full of comforts and luxuries",
200
- "Be accepted by a social group or community",
201
- "Be respected and admired for our intelligence, skills, or talents",
202
- "Be true to ourselves and reach our full potential",
203
- "Climb the social hierarchy",
204
- "Establish close and lasting relationships with friends and family",
205
- "Feel part of a group or community and be valued and appreciated by others",
206
- "Be appreciated for our actions and receive gratitude from others"
207
- ],
208
- "format": """
209
- **[WHAT WE REALLY WANT]**
210
- - Increase our potential
211
- - Escape danger
212
- - Free ourselves from fear and guilt
213
- - Silence those who doubt us
214
- - Validate our feelings
215
- - Power over others
216
- - Advantages over our rivals
217
- - Be free from the consequences
218
- - Have more time dedicated to what we love
219
- - Less time dedicated to what we hate
220
- - Happiness and satisfaction
221
- - Prove we are right
222
- - Prove our detractors wrong
223
- - Be attractive and charming to others
224
- - Leave a lasting legacy
225
- - Higher status among our peers
226
- - Have a life full of comforts and luxuries
227
- - Be accepted by a social group or community
228
- - Be respected and admired for our intelligence, skills, or talents
229
- - Be true to ourselves and reach our full potential
230
- - Climb the social hierarchy
231
- - Establish close and lasting relationships with friends and family
232
- - Feel part of a group or community and be valued and appreciated by others
233
- - Be appreciated for our actions and receive gratitude from others
234
- """
235
- }
236
-
237
- validation_questions = {
238
- "buyer_persona": """
239
- ---
240
- **Validation Questions for Your Ideal Customer Profile:**
241
-
242
- Have you addressed these essential aspects in your buyer persona?
243
-
244
- 1. **Demographics and Background:**
245
- - Have you defined their age, gender, education level, and location?
246
- - What is their current occupation and professional background?
247
- - What is their socioeconomic status and lifestyle?
248
-
249
- 2. **Psychographics and Values:**
250
- - What are their core values and beliefs?
251
- - What aspirations drive their decisions?
252
- - Which activities and interests align with your offering?
253
- - How do their interests overlap with your expertise?
254
-
255
- 3. **Problems and Needs:**
256
- - What specific problems are they trying to solve?
257
- - Which pain points are most urgent for them?
258
- - What frustrations are driving them to seek a solution?
259
- - How does your solution address their specific challenges?
260
-
261
- 4. **Purchase Behavior:**
262
- - What is their typical budget for similar solutions?
263
- - How do they evaluate purchase decisions?
264
- - What factors influence their buying choices?
265
- - Are they willing to invest in premium solutions?
266
-
267
- 5. **Decision-Making Process:**
268
- - Do they research thoroughly before buying?
269
- - What information sources do they trust?
270
- - How do reviews and recommendations influence them?
271
- - What convinces them of a product's value?
272
-
273
- 6. **Consciousness Level:**
274
- - Does the avatar clearly reflect one of the five consciousness levels?
275
- - Are their fears, problems, and frustrations consistent with their consciousness level?
276
- - Does their language and way of expressing themselves correspond to their consciousness level about the problem?
277
- - Are their objections and doubts appropriate for their consciousness level?
278
- - Is the type of information they seek consistent with their consciousness level?
279
- - Do their decision criteria adequately reflect their consciousness level?
280
-
281
- Ensure your buyer persona thoroughly addresses these questions to create an accurate profile of someone who will value and invest in your offering.
282
- ---
283
- """
284
- }
 
117
  **Lo que realmente quiere**: Lograr el éxito tanto en su vida personal como profesional para aumentar su potencial, vivir una vida llena de comodidades y lujos, ser respetada y admirada por sus habilidades y talentos, tener más tiempo para lo que ama y menos tiempo para lo que odia, ascender en la jerarquía social, y establecer relaciones cercanas y duraderas con amigos y familia. También busca validar sus sentimientos y demostrar que tiene razón a través de su éxito, escapar del peligro, y liberarse del miedo y la culpa que pueden impedirle alcanzar sus metas. Desea dejar un legado duradero y ser aceptada y apreciada por un grupo social o comunidad que comparta sus valores y aspiraciones.
118
  """,
119
 
120
+ "bullet_format": """
 
 
121
  \n\nIMPORTANT - LIST FORMAT:
122
  For the sections of Fears, Insecurities, Guilt, Problems, and Frustrations, use BULLET POINTS (•) with PROPER PARAGRAPH BREAKS after each item.
123
 
 
171
 
172
  6. When the user selects "Ninguno", your response should NOT contain any line starting with "**Nivel de conciencia**". Skip directly from "**¿Cómo es?**" to "**Miedos**" without any mention of consciousness level.
173
  """
174
+ }
175
+
176
+ # Función para seleccionar el formato adecuado según el nivel de conciencia
177
+ def get_format_by_consciousness_level(level):
178
+ """
179
+ Devuelve el formato adecuado según el nivel de conciencia seleccionado.
180
+ Si el nivel es exactamente "Ninguno", se usa el formato sin sección de conciencia.
181
+ Para todos los demás niveles, incluyendo "Nivel 1 - Desconocido", se usa el formato base.
182
+ """
183
+ if level == "Ninguno":
184
+ return buyer_persona_formats["base_format_without_consciousness"]
185
+ else:
186
+ return buyer_persona_formats["base_format"]