Spaces:
Sleeping
Sleeping
added new api re-generate
Browse files- app.py +13 -33
- beautify_user.py +325 -0
- core.py +5 -3
- schemas.py +6 -20
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import os
|
|
| 2 |
from fastapi import FastAPI, HTTPException, Header
|
| 3 |
from pydantic import BaseModel
|
| 4 |
from dotenv import load_dotenv
|
| 5 |
-
from schemas import
|
| 6 |
import uvicorn
|
| 7 |
import logging
|
| 8 |
logging.basicConfig(level=logging.INFO)
|
|
@@ -13,43 +13,23 @@ load_dotenv()
|
|
| 13 |
API_KEY = os.getenv("MY_API_KEY")
|
| 14 |
|
| 15 |
app = FastAPI()
|
| 16 |
-
"""
|
| 17 |
-
@app.post("/generate-users", response_model=GenerateUsersResponse)
|
| 18 |
-
def generate_users(request: GenerateUsersRequest, x_api_key: str = Header(...)):
|
| 19 |
-
if x_api_key != API_KEY:
|
| 20 |
-
raise HTTPException(status_code=403, detail="Invalid API Key")
|
| 21 |
-
|
| 22 |
-
from core import generate_user_parameters, generate_synthetic_personas
|
| 23 |
-
|
| 24 |
-
user_parameters = generate_user_parameters(request.audience, request.scope)
|
| 25 |
-
personas = generate_synthetic_personas(parameters=user_parameters, num_personas=request.n, audience=request.audience)
|
| 26 |
-
|
| 27 |
-
return GenerateUsersResponse(users_personas=personas)
|
| 28 |
-
|
| 29 |
-
@app.post("/generate-interviews", response_model=GenerateInterviewsResponse)
|
| 30 |
-
def generate_interviews(request: GenerateInterviewsRequest, x_api_key: str = Header(...)):
|
| 31 |
-
if x_api_key != API_KEY:
|
| 32 |
-
raise HTTPException(status_code=403, detail="Invalid API Key")
|
| 33 |
-
|
| 34 |
-
from core import generate_fleet
|
| 35 |
-
|
| 36 |
-
fleet = generate_fleet(n=request.n, parameters=request.users_personas, questions=request.questions, audience=request.scope)
|
| 37 |
-
|
| 38 |
-
return GenerateInterviewsResponse(fleet=fleet)
|
| 39 |
|
| 40 |
-
@app.post("/
|
| 41 |
-
def generate_report(request:
|
| 42 |
if x_api_key != API_KEY:
|
| 43 |
raise HTTPException(status_code=403, detail="Invalid API Key")
|
| 44 |
|
| 45 |
-
from core import generate_report
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
-
@app.post("/generate", response_model=
|
| 52 |
-
def generate_all(request:
|
| 53 |
if x_api_key != API_KEY:
|
| 54 |
logger.warning("Unauthorized access attempt.")
|
| 55 |
raise HTTPException(status_code=403, detail="Invalid API Key")
|
|
|
|
| 2 |
from fastapi import FastAPI, HTTPException, Header
|
| 3 |
from pydantic import BaseModel
|
| 4 |
from dotenv import load_dotenv
|
| 5 |
+
from schemas import GenerateWholeRequest, GenerateWholeResponse, GeneratePartialRequest, GeneratePartialResponse
|
| 6 |
import uvicorn
|
| 7 |
import logging
|
| 8 |
logging.basicConfig(level=logging.INFO)
|
|
|
|
| 13 |
API_KEY = os.getenv("MY_API_KEY")
|
| 14 |
|
| 15 |
app = FastAPI()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
@app.post("/re-generate", response_model=GeneratePartialResponse)
|
| 18 |
+
def generate_report(request: GeneratePartialRequest, x_api_key: str = Header(...)):
|
| 19 |
if x_api_key != API_KEY:
|
| 20 |
raise HTTPException(status_code=403, detail="Invalid API Key")
|
| 21 |
|
| 22 |
+
from core import generate_report, generate_fleet_from_users
|
| 23 |
+
logger.info("Generating interviews for each persona.")
|
| 24 |
+
fleet=generate_fleet_from_users(users_personas=request.users, questions=request.questions)
|
| 25 |
+
logger.info(f"Generated fleet:\n{fleet}")
|
| 26 |
+
logger.info("Generating report based on all interviews.")
|
| 27 |
+
report = generate_report(fleet=fleet, scope=request.scope,questions=request.questions)
|
| 28 |
+
logger.info("Report generation completed.")
|
| 29 |
+
return GeneratePartialResponse(report=report, users=fleet)
|
| 30 |
|
| 31 |
+
@app.post("/generate", response_model=GenerateWholeResponse)
|
| 32 |
+
def generate_all(request: GenerateWholeRequest, x_api_key: str = Header(...)):
|
| 33 |
if x_api_key != API_KEY:
|
| 34 |
logger.warning("Unauthorized access attempt.")
|
| 35 |
raise HTTPException(status_code=403, detail="Invalid API Key")
|
beautify_user.py
ADDED
|
@@ -0,0 +1,325 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
data=[
|
| 2 |
+
{
|
| 3 |
+
"Name": "Giovanni Rossi",
|
| 4 |
+
"Age": "25",
|
| 5 |
+
"Location": "Rome",
|
| 6 |
+
"Profession": "Graphic Designer",
|
| 7 |
+
"Consumption Frequency": "Daily",
|
| 8 |
+
"Brand Awareness Level": "Top of Mind",
|
| 9 |
+
"Preferred Consumption Occasion": "Social Events",
|
| 10 |
+
"Health Consciousness": "Moderate",
|
| 11 |
+
"answers": [
|
| 12 |
+
"I'm 25 years old. Being in my mid-twenties, I’m really enjoying life in Rome, especially the vibrant social scene. It’s the perfect age to explore new experiences and connect with friends at various events.",
|
| 13 |
+
"I usually drink carbonated beverages daily. I enjoy them, especially during social events with friends. It’s nice to have something refreshing to sip on while we’re hanging out. I try to balance it out with healthier options, but I definitely have a soft spot for fizzy drinks!",
|
| 14 |
+
"I usually enjoy carbonated beverages during social events, like gatherings with friends or parties. They pair perfectly with pizza or finger foods like bruschetta and chips. The fizz adds a nice touch to the flavors, making everything feel more festive. I also like to have them with burgers or pasta dishes when I'm out at a restaurant. It’s all about that refreshing burst that complements the food and enhances the overall experience.",
|
| 15 |
+
"When I think of carbonated beverages, the first brand that comes to mind is definitely Coca-Cola. It's such an iconic drink, and I love how it brings people together, especially during social events. My favorite, though, has to be San Pellegrino. I really enjoy the refreshing taste and the sparkling bubbles, plus it feels a bit more sophisticated. It’s perfect for those gatherings with friends or family. I appreciate that it’s a bit lighter and has a nice flavor without being overly sweet.",
|
| 16 |
+
"Absolutely, I've heard of Kombucha! It's that fizzy, fermented tea drink, right? I see it popping up everywhere, especially at social events and trendy cafes around Rome. I’ve tried it a few times, and I really enjoy the unique flavors. It feels like a healthier alternative to soda, which is great since I try to be mindful of what I consume. Plus, it’s a fun conversation starter when I’m out with friends. I wouldn’t say I’m an expert on it, but I definitely keep it in mind when I’m looking for something refreshing!"
|
| 17 |
+
]
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"Name": "Maria Bianchi",
|
| 21 |
+
"Age": "34",
|
| 22 |
+
"Location": "Milan",
|
| 23 |
+
"Profession": "Marketing Manager",
|
| 24 |
+
"Consumption Frequency": "Weekly",
|
| 25 |
+
"Brand Awareness Level": "Familiar",
|
| 26 |
+
"Preferred Consumption Occasion": "Meals",
|
| 27 |
+
"Health Consciousness": "High",
|
| 28 |
+
"answers": [
|
| 29 |
+
"I'm 34 years old. Living in Milan and working as a marketing manager keeps me quite busy, but I always make time for healthy meals, especially since I prioritize my health.",
|
| 30 |
+
"I usually drink carbonated beverages just occasionally. I prefer to focus on healthier options, especially during meals, but I do enjoy a sparkling water or a light soda now and then, especially when dining out with friends. It’s nice to have something refreshing, but I try to keep it balanced with my health-conscious lifestyle.",
|
| 31 |
+
"I usually enjoy carbonated beverages during meals, especially when I'm having something like pizza or a nice pasta dish. The fizz really complements the flavors and adds a refreshing touch. I also like to pair them with lighter fare, like salads or grilled chicken, especially when I'm dining out with friends. It feels like a nice balance, and I appreciate the bubbly texture alongside my food. Plus, it’s a great way to elevate the dining experience, making it feel a bit more special.",
|
| 32 |
+
"When I think of carbonated beverages, the first brand that comes to mind is San Pellegrino. It’s a classic choice, especially since I appreciate the quality and the taste. My favorite, though, has to be their sparkling water. I love having it with meals; it adds a nice touch without being overly sweet. Plus, it feels like a healthier option compared to sugary sodas, which aligns with my health-conscious lifestyle.",
|
| 33 |
+
"Yes, I’ve definitely heard of Kombucha! I’m quite familiar with it, actually. As a marketing manager, I often come across various health trends, and Kombucha has been gaining a lot of attention lately. I appreciate its probiotic benefits and the fact that it’s a healthier alternative to sugary drinks. I usually enjoy it during meals, especially when I’m looking for something refreshing and gut-friendly. It fits well with my health-conscious lifestyle, and I love experimenting with different flavors."
|
| 34 |
+
]
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"Name": "Luca Verdi",
|
| 38 |
+
"Age": "45",
|
| 39 |
+
"Location": "Florence",
|
| 40 |
+
"Profession": "Construction Worker",
|
| 41 |
+
"Consumption Frequency": "Occasionally",
|
| 42 |
+
"Brand Awareness Level": "Unfamiliar",
|
| 43 |
+
"Preferred Consumption Occasion": "Solo Refreshment",
|
| 44 |
+
"Health Consciousness": "Low",
|
| 45 |
+
"answers": [
|
| 46 |
+
"I'm 45 years old. It's been quite a journey, working in construction and enjoying life here in Florence.",
|
| 47 |
+
"I usually drink carbonated beverages just occasionally. It's not something I have every day, but every now and then, especially when I want a little refreshment after a long day at work. I don’t really keep track of it, but it’s nice to have one every once in a while, especially when I’m relaxing at home.",
|
| 48 |
+
"I usually enjoy carbonated beverages when I’m taking a break after a long day at work. It’s nice to crack open a cold one while I’m having a simple meal, like a sandwich or some pizza. Sometimes, I’ll just sip on it while I’m relaxing at home, maybe watching a game on TV. It’s all about that refreshing feeling, especially when I’m on my own and just want to unwind.",
|
| 49 |
+
"When I think of carbonated beverages, the first brand that comes to mind is Coca-Cola. It's just one of those drinks that you see everywhere, and it reminds me of good times, like having a cold one after a long day at work. My favorite, though? I’d say it’s probably Sprite. It’s refreshing and light, perfect for a solo refreshment after a tough day on the construction site. I don’t really pay much attention to brands, but those two are definitely the ones I go for when I want something fizzy.",
|
| 50 |
+
"I’ve heard the name Kombucha before, but I can’t say I know much about it. It sounds like one of those trendy drinks people talk about, but I’ve never really looked into it. I usually stick to what I know when it comes to drinks, especially after a long day at work. If it’s something people enjoy, that’s great, but I’m not really the type to seek out new health drinks or anything like that. I prefer something simple for a solo refreshment after a hard day."
|
| 51 |
+
]
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"Name": "Sofia Romano",
|
| 55 |
+
"Age": "19",
|
| 56 |
+
"Location": "Naples",
|
| 57 |
+
"Profession": "Student",
|
| 58 |
+
"Consumption Frequency": "Daily",
|
| 59 |
+
"Brand Awareness Level": "Top of Mind",
|
| 60 |
+
"Preferred Consumption Occasion": "Social Events",
|
| 61 |
+
"Health Consciousness": "Moderate",
|
| 62 |
+
"answers": [
|
| 63 |
+
"I'm 19 years old. Being a student in Naples keeps me pretty busy, but I always find time to enjoy social events with friends. It's a great way to unwind and connect with everyone!",
|
| 64 |
+
"I usually drink carbonated beverages daily, especially when I'm hanging out with friends or at social events. It's just something I enjoy, and it adds a fun touch to our gatherings. I try to balance it out with healthier options too, but there's definitely a place for fizzy drinks in my routine!",
|
| 65 |
+
"I usually enjoy carbonated beverages during social events, like hanging out with friends at a café or having a picnic in the park. They pair perfectly with pizza or some light snacks, like chips or finger foods. It’s just refreshing to have something fizzy while chatting and laughing with everyone. Sometimes, I even like to mix them with a bit of fruit for a fun twist!",
|
| 66 |
+
"When I think of carbonated beverages, the first brand that comes to mind is definitely Coca-Cola. It’s such a classic and always reminds me of fun times with friends at social events. My favorite, though, has to be Sprite. I love its refreshing taste, especially during hot days or when I’m hanging out with friends. It just feels like the perfect drink for any casual gathering!",
|
| 67 |
+
"Oh, definitely! Kombucha is something I've come across quite a bit, especially at social events. It's that fizzy drink made from fermented tea, right? I’ve tried it a few times, and I really like the different flavors you can find. It feels like a trendy choice, and I appreciate that it’s often seen as a healthier alternative to soda. I wouldn’t say I know everything about it, but I’m definitely aware of it and enjoy having it when I’m out with friends. It’s a fun drink to share!"
|
| 68 |
+
]
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"Name": "Alessandro Ferri",
|
| 72 |
+
"Age": "60",
|
| 73 |
+
"Location": "Turin",
|
| 74 |
+
"Profession": "Retired Teacher",
|
| 75 |
+
"Consumption Frequency": "Weekly",
|
| 76 |
+
"Brand Awareness Level": "Familiar",
|
| 77 |
+
"Preferred Consumption Occasion": "Meals",
|
| 78 |
+
"Health Consciousness": "High",
|
| 79 |
+
"answers": [
|
| 80 |
+
"I'm 60 years old. Having recently retired from teaching, I find myself enjoying my time in Turin, focusing on my health and well-being. I make it a point to eat well, especially during meals, as I believe that good nutrition is essential at this stage of life.",
|
| 81 |
+
"I usually drink carbonated beverages just occasionally. I prefer to focus on healthier options, especially during meals. While I do enjoy a sparkling water or a light soda now and then, I make sure it doesn’t become a regular part of my diet. My health is important to me, so I tend to prioritize drinks that align with that mindset.",
|
| 82 |
+
"I typically enjoy carbonated beverages during meals, especially when I'm having something like a light pasta dish or a fresh salad. The fizz adds a nice contrast to the flavors and makes the meal feel a bit more special. I also find that sparkling water pairs wonderfully with grilled vegetables or fish, enhancing the overall dining experience. While I’m health-conscious, I appreciate the occasional treat, so I might indulge in a small glass of a natural soda with a homemade pizza or during a family gathering. It’s all about balance for me, enjoying the flavors while keeping health in mind.",
|
| 83 |
+
"When I think of carbonated beverages, the first brand that comes to mind is San Pellegrino. It's a classic, and I appreciate its Italian roots. My favorite, however, would have to be a good quality sparkling water, preferably with a hint of lemon or lime. I enjoy it during meals, as it complements the flavors of the food beautifully. Being health-conscious, I prefer to stick to options that are low in sugar and additives, and sparkling water fits that bill perfectly.",
|
| 84 |
+
"Yes, I have heard of Kombucha. It's quite an interesting beverage, isn't it? I've come across it in health food stores and some cafes around Turin. I know it's a fermented tea that’s often praised for its potential health benefits, which definitely appeals to my health-conscious side. I’ve seen various flavors and brands, and while I haven't tried making it myself, I appreciate the idea of a drink that can support digestion and overall wellness. I tend to enjoy it during meals, especially when I'm looking for something refreshing and a bit different."
|
| 85 |
+
]
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"Name": "Chiara Gallo",
|
| 89 |
+
"Age": "28",
|
| 90 |
+
"Location": "Bologna",
|
| 91 |
+
"Profession": "Nurse",
|
| 92 |
+
"Consumption Frequency": "Occasionally",
|
| 93 |
+
"Brand Awareness Level": "Familiar",
|
| 94 |
+
"Preferred Consumption Occasion": "Solo Refreshment",
|
| 95 |
+
"Health Consciousness": "High",
|
| 96 |
+
"answers": [
|
| 97 |
+
"I'm 28 years old. Being in my late twenties, I often find myself balancing my busy life as a nurse with moments of self-care and relaxation. It's important for me to take time for myself, especially after long shifts.",
|
| 98 |
+
"I usually drink carbonated beverages just occasionally. I prefer to keep my consumption in check since I’m quite health-conscious. When I do indulge, it’s often for a solo refreshment after a long shift at the hospital or during a relaxing evening at home. It’s nice to treat myself every now and then!",
|
| 99 |
+
"I usually enjoy carbonated beverages during my quiet evenings at home, especially when I’m unwinding after a long shift at the hospital. I like to pair them with light snacks, like a fresh salad or some whole-grain crackers with hummus. It feels refreshing and satisfying without being too heavy. Sometimes, I’ll even have a sparkling water with a slice of lemon or lime while I’m reading or watching a show. It’s a nice little treat for myself, and it helps me stay hydrated while still enjoying something bubbly.",
|
| 100 |
+
"When I think of carbonated beverages, the first brand that comes to mind is San Pellegrino. I really appreciate their sparkling water and the variety of flavored options they offer. For a favorite, I’d have to say I enjoy their blood orange soda. It’s refreshing and feels like a little treat when I’m taking a break after a long shift at the hospital. I try to be mindful of what I consume, so I appreciate that they use natural ingredients. It’s perfect for a solo refreshment moment!",
|
| 101 |
+
"Yes, I've definitely heard of Kombucha! I'm quite familiar with it, actually. As a nurse, I’m always interested in health-conscious options, and Kombucha seems to fit that bill. I appreciate that it’s a fermented drink with probiotics, which can be great for gut health. I usually enjoy it as a solo refreshment when I want something a bit different and refreshing. It’s nice to have a tasty option that also aligns with my health goals."
|
| 102 |
+
]
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"Name": "Marco Conti",
|
| 106 |
+
"Age": "38",
|
| 107 |
+
"Location": "Palermo",
|
| 108 |
+
"Profession": "Chef",
|
| 109 |
+
"Consumption Frequency": "Daily",
|
| 110 |
+
"Brand Awareness Level": "Top of Mind",
|
| 111 |
+
"Preferred Consumption Occasion": "Meals",
|
| 112 |
+
"Health Consciousness": "Moderate",
|
| 113 |
+
"answers": [
|
| 114 |
+
"I'm 38 years old. Being a chef, I’ve spent a lot of time in the kitchen, experimenting with flavors and ingredients. It’s a passion that keeps me young at heart!",
|
| 115 |
+
"I usually drink carbonated beverages daily, especially during meals. It’s nice to have something fizzy to complement the flavors of the dishes I prepare. I enjoy a good sparkling water or a light soda now and then, but I try to keep it balanced since I’m mindful of my health. It’s all about enjoying the experience without overdoing it!",
|
| 116 |
+
"When I think about enjoying carbonated beverages, I usually pair them with meals that have a bit of richness or spice. For instance, a nice pizza with fresh ingredients or a hearty pasta dish really calls for a crisp soda to balance the flavors. I also love having a cold sparkling drink when I'm grilling outside, especially with some marinated meats and fresh salads. It adds a refreshing touch to the whole experience. Sometimes, I even enjoy a fizzy drink with a light snack, like bruschetta or antipasto, while catching up with friends. It just makes the meal feel more festive and enjoyable!",
|
| 117 |
+
"When I think of carbonated beverages, the first brand that comes to mind is Coca-Cola. It's such a classic and has been around for ages, so it’s hard not to think of it. My favorite, though, would have to be San Pellegrino. I love the refreshing taste and the bubbles are just perfect, especially when I’m enjoying a nice meal. It feels a bit more sophisticated, and I appreciate that it pairs well with food. Plus, it’s nice to have something that feels a bit special while still being mindful of what I consume.",
|
| 118 |
+
"Absolutely, I've heard of Kombucha! It's that fermented tea drink, right? I’ve seen it pop up in various health food stores and even some restaurants here in Palermo. I know it’s supposed to be good for digestion and has some probiotics, which is interesting. I haven't tried making it myself yet, but I’m curious about the different flavors. Since I’m a chef, I appreciate unique ingredients and flavors, so I might give it a shot one of these days. It could be a fun addition to meals, especially during the warmer months."
|
| 119 |
+
]
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"Name": "Elena Moretti",
|
| 123 |
+
"Age": "50",
|
| 124 |
+
"Location": "Genoa",
|
| 125 |
+
"Profession": "Accountant",
|
| 126 |
+
"Consumption Frequency": "Weekly",
|
| 127 |
+
"Brand Awareness Level": "Familiar",
|
| 128 |
+
"Preferred Consumption Occasion": "Social Events",
|
| 129 |
+
"Health Consciousness": "Moderate",
|
| 130 |
+
"answers": [
|
| 131 |
+
"I'm 50 years old. It's an interesting age, really—I've gained a lot of experience both in my profession as an accountant and in life. I enjoy spending time with friends and family, especially during social events where we can share good food and laughter.",
|
| 132 |
+
"I usually enjoy carbonated beverages about once a week, especially during social events with friends or family. It's a nice treat to have while catching up or celebrating special occasions. I wouldn't say I'm a daily drinker, but I do appreciate a good sparkling drink now and then. It adds a bit of fun to the gathering!",
|
| 133 |
+
"I usually enjoy carbonated beverages during social events, like family gatherings or dinner parties with friends. They pair wonderfully with a variety of foods, but I particularly love them with pizza or pasta dishes. The fizz adds a nice contrast to the richness of the cheese and sauces. Sometimes, I’ll also have a sparkling drink with lighter fare, like salads or grilled vegetables, especially when the weather is warm. It’s all about enhancing the experience and making those moments more enjoyable!",
|
| 134 |
+
"When I think of carbonated beverages, the first brand that comes to mind is Coca-Cola. It's such a classic and has been around for ages, so it’s hard not to think of it. My favorite, though, would have to be San Pellegrino. I love the refreshing taste, especially when I'm at social events with friends or family. It feels a bit more sophisticated, and I appreciate that it’s a sparkling water option. Plus, it pairs well with a variety of foods, which is always a bonus!",
|
| 135 |
+
"Yes, I've definitely heard of Kombucha. It's that fermented tea drink, right? I’ve seen it in stores and even at some social events. I’m somewhat familiar with it, but I haven’t tried making it myself. I know it’s supposed to have some health benefits, which is appealing, especially since I try to be mindful of what I consume. I think it could be a nice addition to gatherings with friends, especially if they’re looking for something a bit different."
|
| 136 |
+
]
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"Name": "Francesco De Luca",
|
| 140 |
+
"Age": "22",
|
| 141 |
+
"Location": "Catania",
|
| 142 |
+
"Profession": "Bartender",
|
| 143 |
+
"Consumption Frequency": "Daily",
|
| 144 |
+
"Brand Awareness Level": "Top of Mind",
|
| 145 |
+
"Preferred Consumption Occasion": "Social Events",
|
| 146 |
+
"Health Consciousness": "Low",
|
| 147 |
+
"answers": [
|
| 148 |
+
"I'm 22 years old. Being young and working as a bartender in Catania, I’m always surrounded by social events and good vibes. It’s a fun age to enjoy life and connect with people over drinks!",
|
| 149 |
+
"I usually drink carbonated beverages every day. It's just part of my routine, especially since I work as a bartender and I'm always around drinks. I love having a fizzy drink during social events with friends; it just adds to the vibe. I don’t really think about the health aspects too much—I'm more focused on enjoying the moment!",
|
| 150 |
+
"I usually enjoy carbonated beverages during social events, like when I'm hanging out with friends at a bar or having a casual get-together at home. They pair perfectly with things like pizza, burgers, or even some spicy snacks. The fizz just adds to the fun atmosphere, you know? It’s all about that refreshing feeling while we’re enjoying good food and good company. Plus, it’s a great way to keep the energy up during a lively night out!",
|
| 151 |
+
"When I think of carbonated beverages, the first brand that comes to mind is definitely Coca-Cola. It's just iconic, you know? I see it everywhere, especially at social events where I work as a bartender. My favorite, though, has to be Sprite. It’s super refreshing, especially on a hot day in Catania. I love serving it with a twist of lime; it really brings out the flavor. Plus, it’s a go-to for mixing with other drinks when I’m behind the bar.",
|
| 152 |
+
"Yeah, I've definitely heard of Kombucha! It's that fizzy drink made from fermented tea, right? I see it pop up a lot at social events and in trendy cafes around Catania. I know some people rave about it for its supposed health benefits, but honestly, I haven't tried it myself. I usually stick to the classics when I'm behind the bar or enjoying a night out with friends. It seems like a fun option for those who are into that kind of thing, though!"
|
| 153 |
+
]
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"Name": "Giulia Rinaldi",
|
| 157 |
+
"Age": "31",
|
| 158 |
+
"Location": "Verona",
|
| 159 |
+
"Profession": "Software Developer",
|
| 160 |
+
"Consumption Frequency": "Weekly",
|
| 161 |
+
"Brand Awareness Level": "Familiar",
|
| 162 |
+
"Preferred Consumption Occasion": "Solo Refreshment",
|
| 163 |
+
"Health Consciousness": "High",
|
| 164 |
+
"answers": [
|
| 165 |
+
"I'm 31 years old. Being in my early thirties, I really value my health and well-being, especially as a software developer who spends a lot of time in front of a screen. It’s important for me to take breaks and enjoy some solo refreshment to recharge.",
|
| 166 |
+
"I usually drink carbonated beverages about once a week. I enjoy them as a solo refreshment, especially after a long day of coding. I’m quite health-conscious, so I tend to choose options that are lower in sugar or even sparkling water with a hint of flavor. It’s a nice treat for myself without overindulging.",
|
| 167 |
+
"I usually enjoy carbonated beverages during my solo refreshment moments, often while I’m unwinding after a long day of coding. I find that they pair really well with light snacks, like a fresh salad or some whole-grain crackers with hummus. Sometimes, I’ll even treat myself to a piece of dark chocolate on the side. It’s a nice way to balance the fizz with something healthy and satisfying. I appreciate the refreshing taste of the bubbles, especially when I’m looking for a little pick-me-up without compromising my health-conscious choices.",
|
| 168 |
+
"When I think of carbonated beverages, the first brand that comes to mind is San Pellegrino. I really appreciate their sparkling water; it feels refreshing and has a nice, subtle flavor. For my favorite, though, I’d have to say I enjoy the various flavors of La Croix. They’re perfect for a solo refreshment, and I love that they’re calorie-free and made with natural flavors. It fits well with my health-conscious lifestyle while still giving me that fizzy satisfaction!",
|
| 169 |
+
"Yes, I’ve definitely heard of Kombucha! I’ve been familiar with it for a while now, especially since I’m quite health-conscious and always on the lookout for refreshing beverages that offer some health benefits. I usually enjoy it as a solo refreshment during my downtime, maybe while coding or just relaxing at home. The probiotics and potential gut health benefits really appeal to me, so I try to incorporate it into my weekly routine. It’s nice to have something that feels a bit indulgent but is also good for you!"
|
| 170 |
+
]
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"Name": "Antonio Ricci",
|
| 174 |
+
"Age": "65",
|
| 175 |
+
"Location": "Siena",
|
| 176 |
+
"Profession": "Farmer",
|
| 177 |
+
"Consumption Frequency": "Occasionally",
|
| 178 |
+
"Brand Awareness Level": "Unfamiliar",
|
| 179 |
+
"Preferred Consumption Occasion": "Meals",
|
| 180 |
+
"Health Consciousness": "Low",
|
| 181 |
+
"answers": [
|
| 182 |
+
"I'm 65 years old. I've spent most of my life working on the farm here in Siena, tending to the land and the animals. It's a simple life, but it keeps me busy and connected to nature.",
|
| 183 |
+
"I usually drink carbonated beverages just occasionally. They’re not something I have every day, but sometimes I enjoy one with a meal or when I’m out with friends. It’s more of a treat than a regular part of my diet. Most of the time, I prefer water or something simpler.",
|
| 184 |
+
"I usually enjoy carbonated beverages during meals, especially when I have family or friends over. It’s nice to have something fizzy to accompany a hearty pasta dish or a barbecue. Sometimes, I might crack open a soda while enjoying a simple pizza or even with a slice of cake for dessert. It adds a little something extra to the meal, even if I don’t drink them all the time.",
|
| 185 |
+
"When I think of carbonated beverages, the first brand that comes to mind is Coca-Cola. It's one of those drinks that you see everywhere, especially during meals or gatherings. I can't say I have a favorite, though. I drink it occasionally, mostly when I have family over or during special occasions. For everyday meals, I tend to stick to water or something simpler. Health isn't really a big concern for me when it comes to these drinks, but I do enjoy the fizz now and then.",
|
| 186 |
+
"Kombucha? I can't say I've heard of it before. Living out here in Siena, I mostly stick to what I know—like the wines and cheeses from the region. I don't really keep up with all the new health drinks or trends. My meals are simple, and I usually just enjoy a good glass of water or some homemade wine with my food. If it's something people are raving about, I might have to look into it, but for now, it’s not on my radar."
|
| 187 |
+
]
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"Name": "Valentina Esposito",
|
| 191 |
+
"Age": "40",
|
| 192 |
+
"Location": "Trieste",
|
| 193 |
+
"Profession": "Lawyer",
|
| 194 |
+
"Consumption Frequency": "Weekly",
|
| 195 |
+
"Brand Awareness Level": "Familiar",
|
| 196 |
+
"Preferred Consumption Occasion": "Social Events",
|
| 197 |
+
"Health Consciousness": "Moderate",
|
| 198 |
+
"answers": [
|
| 199 |
+
"I'm 40 years old. It's an interesting age, really—old enough to have some life experience but still young enough to enjoy new adventures. Balancing my career as a lawyer and my social life in Trieste keeps me on my toes!",
|
| 200 |
+
"I usually enjoy carbonated beverages on a weekly basis, especially during social events. It's nice to have something bubbly to share with friends or family while we catch up. I wouldn't say I'm a daily drinker, but I do appreciate a refreshing drink now and then, particularly when I'm out and about. I try to balance it with healthier options, but a little fizz can be a delightful treat!",
|
| 201 |
+
"I often enjoy carbonated beverages during social events, especially when I'm out with friends or family. They pair wonderfully with a variety of foods, but I particularly love them with pizza or light appetizers like bruschetta and olives. The fizz adds a refreshing touch that complements the flavors perfectly. I also find that they go well with grilled meats during summer barbecues. It’s all about creating a lively atmosphere, and a nice sparkling drink can really enhance the experience.",
|
| 202 |
+
"When I think of carbonated beverages, the first brand that comes to mind is San Pellegrino. It has that classic Italian touch that I really appreciate, especially during social events. My favorite, though, would have to be a good tonic water, like Fever-Tree. I enjoy it mixed with a bit of gin or even on its own; it feels refreshing and a bit more sophisticated. Plus, it’s nice to have something that feels a bit special when I’m out with friends.",
|
| 203 |
+
"Yes, I’ve definitely heard of Kombucha. It’s become quite popular, especially at social events where people are looking for healthier beverage options. I’m familiar with it and have tried it a few times. I appreciate that it’s a fermented drink and has some health benefits, though I wouldn’t say I’m an expert on it. I tend to enjoy it more when I’m out with friends, as it’s a nice alternative to sugary drinks or alcohol. Overall, I think it fits well with my moderate health consciousness."
|
| 204 |
+
]
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"Name": "Simone Caruso",
|
| 208 |
+
"Age": "29",
|
| 209 |
+
"Location": "Cagliari",
|
| 210 |
+
"Profession": "Sales Representative",
|
| 211 |
+
"Consumption Frequency": "Daily",
|
| 212 |
+
"Brand Awareness Level": "Top of Mind",
|
| 213 |
+
"Preferred Consumption Occasion": "Social Events",
|
| 214 |
+
"Health Consciousness": "Moderate",
|
| 215 |
+
"answers": [
|
| 216 |
+
"I'm 29 years old. Living in Cagliari has its perks, especially when it comes to enjoying social events with friends. It’s a great age to explore new experiences while balancing work as a sales representative.",
|
| 217 |
+
"I usually drink carbonated beverages daily. I enjoy them, especially during social events with friends or family. It’s nice to have something fizzy to sip on while catching up or celebrating. I try to balance it out with healthier options, but I definitely have a soft spot for a refreshing soda or sparkling water!",
|
| 218 |
+
"I usually enjoy carbonated beverages during social events, like gatherings with friends or family celebrations. They pair perfectly with a variety of foods, especially pizza or finger foods like bruschetta and antipasti. There's something about the fizz that complements the flavors and makes the whole experience more enjoyable. I also like to have them with grilled meats during summer barbecues; it just feels refreshing. Overall, I find that carbonated drinks add a fun touch to any meal shared with good company!",
|
| 219 |
+
"When I think of carbonated beverages, the first brand that comes to mind is definitely Coca-Cola. It’s such a classic and always reminds me of fun social events with friends. My favorite, though, has to be San Pellegrino. I love the refreshing taste and the sparkling bubbles, especially when I'm at a gathering or enjoying a nice meal. It feels a bit more sophisticated, and I appreciate that it’s a bit lighter on the sweetness compared to other sodas. Plus, it’s a nice way to stay social while still being somewhat health-conscious!",
|
| 220 |
+
"Absolutely, I've heard of Kombucha! It's one of those trendy drinks that seems to pop up everywhere, especially at social events. I’ve tried it a few times and I really enjoy the fizzy, tangy flavor. It’s nice to have something a bit different from the usual soft drinks or cocktails. I appreciate that it’s often marketed as a healthier option, which aligns with my moderate health consciousness. I wouldn’t say I’m an expert on it, but I definitely keep it in mind when I’m looking for something refreshing to share with friends."
|
| 221 |
+
]
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"Name": "Claudia Fontana",
|
| 225 |
+
"Age": "55",
|
| 226 |
+
"Location": "Bari",
|
| 227 |
+
"Profession": "Social Worker",
|
| 228 |
+
"Consumption Frequency": "Weekly",
|
| 229 |
+
"Brand Awareness Level": "Familiar",
|
| 230 |
+
"Preferred Consumption Occasion": "Meals",
|
| 231 |
+
"Health Consciousness": "High",
|
| 232 |
+
"answers": [
|
| 233 |
+
"I'm 55 years old. At this stage in my life, I really value my health and well-being, especially given my profession as a social worker. It’s important for me to maintain a balanced lifestyle, and I try to incorporate healthy meals into my weekly routine.",
|
| 234 |
+
"I usually drink carbonated beverages just occasionally. I prefer to focus on healthier options, especially since I’m quite health-conscious. When I do indulge, it’s typically during meals or special occasions, but I try to keep it to a minimum. I’m more inclined to choose sparkling water or natural juices instead.",
|
| 235 |
+
"I usually enjoy carbonated beverages during meals, especially when I'm having something light and refreshing. For instance, a nice sparkling water pairs perfectly with a fresh salad or grilled fish. I find that the bubbles enhance the flavors and make the meal feel a bit more special. Sometimes, I might indulge in a flavored soda with a homemade pizza or pasta dish, but I always try to choose options that are lower in sugar. It’s important for me to maintain a healthy lifestyle, so I’m mindful of what I consume. Overall, I appreciate the fizz as a delightful complement to my meals, making them feel more enjoyable.",
|
| 236 |
+
"When I think of carbonated beverages, the first brand that comes to mind is San Pellegrino. It has a certain elegance and a refreshing taste that I really appreciate. My favorite, however, would have to be a good quality sparkling water, preferably with a hint of lemon or lime. I enjoy it during meals, as it complements the flavors of the food while also keeping things light and refreshing. Being health-conscious, I prefer to choose options that are lower in sugar and additives, so sparkling water fits perfectly into my lifestyle.",
|
| 237 |
+
"Yes, I have heard of Kombucha. I’m quite familiar with it, actually. As a social worker, I pay a lot of attention to health and wellness, and Kombucha has come up in conversations about gut health and probiotics. I appreciate that it’s a fermented drink, and I often look for healthier options to enjoy with my meals. I usually consume it weekly, especially when I want something refreshing and beneficial for my digestion. It’s nice to have a drink that aligns with my health-conscious lifestyle!"
|
| 238 |
+
]
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"Name": "Pietro Gatti",
|
| 242 |
+
"Age": "18",
|
| 243 |
+
"Location": "Lecce",
|
| 244 |
+
"Profession": "High School Student",
|
| 245 |
+
"Consumption Frequency": "Occasionally",
|
| 246 |
+
"Brand Awareness Level": "Unfamiliar",
|
| 247 |
+
"Preferred Consumption Occasion": "Social Events",
|
| 248 |
+
"Health Consciousness": "Low",
|
| 249 |
+
"answers": [
|
| 250 |
+
"I'm 18 years old. Just finishing up high school and looking forward to what comes next!",
|
| 251 |
+
"I usually drink carbonated beverages just occasionally. It's not something I have every day, but when I'm at social events with friends, I might grab a soda or something fizzy. It's more about enjoying the moment than making it a regular thing for me.",
|
| 252 |
+
"I usually drink carbonated beverages during social events, like parties or gatherings with friends. They go really well with snacks like pizza, chips, or even burgers. It’s just something about the fizz that makes everything feel more fun and lively. I don’t think too much about health when I’m out having a good time, so I just enjoy whatever’s there.",
|
| 253 |
+
"When I think of carbonated beverages, the first brand that comes to mind is Coca-Cola. It's just everywhere, especially at social events like parties or gatherings with friends. I don't really have a favorite since I don't drink them often, but I guess if I had to choose, I'd go with Sprite. It's refreshing and not too sweet, which is nice when hanging out with friends.",
|
| 254 |
+
"I’ve heard of Kombucha, but I don’t really know much about it. I think it’s some kind of fermented drink, right? I’ve seen it around at social events, but I’ve never tried it myself. Honestly, I’m not super into health stuff, so it hasn’t really caught my attention. If it’s something people enjoy at parties, I might give it a shot someday!"
|
| 255 |
+
]
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"Name": "Rosa Marino",
|
| 259 |
+
"Age": "48",
|
| 260 |
+
"Location": "Reggio Calabria",
|
| 261 |
+
"Profession": "Retail Manager",
|
| 262 |
+
"Consumption Frequency": "Weekly",
|
| 263 |
+
"Brand Awareness Level": "Familiar",
|
| 264 |
+
"Preferred Consumption Occasion": "Solo Refreshment",
|
| 265 |
+
"Health Consciousness": "Moderate",
|
| 266 |
+
"answers": [
|
| 267 |
+
"I'm 48 years old. At this stage in my life, I find it important to balance enjoying my favorite treats while also being mindful of my health. It’s all about finding that sweet spot, especially when I indulge in my solo refreshment moments.",
|
| 268 |
+
"I usually drink carbonated beverages about once a week. It's a nice little treat for myself, especially when I want something refreshing while I’m relaxing at home. I enjoy them during my solo moments, maybe while watching a movie or reading a book. I try to keep it moderate since I’m health-conscious, but I do appreciate a fizzy drink now and then!",
|
| 269 |
+
"I usually enjoy carbonated beverages during my quiet moments at home, especially when I’m unwinding after a long day at work. They pair perfectly with light snacks like a fresh salad or some crunchy vegetable sticks. Sometimes, I’ll have them with a slice of pizza or a simple pasta dish when I want to treat myself. It’s all about that refreshing fizz that complements the flavors without being too heavy. I appreciate the balance, especially since I try to keep things on the healthier side while still enjoying my meals.",
|
| 270 |
+
"When I think of carbonated beverages, the first brand that comes to mind is Coca-Cola. It's such a classic and has been around for so long. I enjoy it occasionally, especially when I want a little pick-me-up during my busy days at work. However, my favorite would have to be San Pellegrino. I love the refreshing taste and the slight fizz it has, making it perfect for a solo refreshment moment. It feels a bit more sophisticated, and I appreciate that it’s a bit lighter on the sweetness compared to other sodas.",
|
| 271 |
+
"Yes, I've definitely heard of Kombucha. It's that fermented tea drink, right? I’ve seen it in stores and have tried a few flavors here and there. I’d say I’m somewhat familiar with it. I appreciate that it’s often marketed as a healthier option, which aligns with my moderate health consciousness. I usually enjoy it as a solo refreshment, especially when I want something a bit different from my usual drinks. The fizzy texture is quite refreshing!"
|
| 272 |
+
]
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"Name": "Nicola Pugliese",
|
| 276 |
+
"Age": "36",
|
| 277 |
+
"Location": "Messina",
|
| 278 |
+
"Profession": "IT Consultant",
|
| 279 |
+
"Consumption Frequency": "Daily",
|
| 280 |
+
"Brand Awareness Level": "Top of Mind",
|
| 281 |
+
"Preferred Consumption Occasion": "Social Events",
|
| 282 |
+
"Health Consciousness": "High",
|
| 283 |
+
"answers": [
|
| 284 |
+
"I'm 36 years old. Being in my mid-thirties, I find that I really value my health and well-being, especially with my busy lifestyle as an IT consultant. It’s important for me to stay active and make mindful choices, particularly when I’m out at social events.",
|
| 285 |
+
"I usually drink carbonated beverages daily, especially during social events. I enjoy the fizz and the variety of flavors available, but I always try to choose options that align with my health-conscious lifestyle. It's all about balance for me, so I make sure to enjoy them in moderation while still being mindful of my overall health.",
|
| 286 |
+
"I usually enjoy carbonated beverages during social events, like gatherings with friends or family celebrations. They pair perfectly with a variety of foods, especially when I’m having pizza or a nice platter of antipasti. The fizz adds a refreshing touch that complements the flavors, making the experience even more enjoyable. I also find that they go well with lighter dishes, like salads or seafood, especially when it’s warm outside. It’s all about enhancing the moment and enjoying good company while being mindful of what I consume.",
|
| 287 |
+
"When I think of carbonated beverages, the first brand that comes to mind is San Pellegrino. It has that refreshing taste and a touch of sophistication that I really appreciate, especially during social events. My favorite, though, would have to be their sparkling water. I love how it pairs well with meals and is a healthier option compared to sugary sodas. Plus, it feels great to enjoy something that’s both delicious and aligns with my health-conscious lifestyle.",
|
| 288 |
+
"Absolutely, I've heard of Kombucha! It's become quite popular lately, especially at social events where people are looking for healthier beverage options. I'm pretty familiar with it; I appreciate its unique flavors and the fact that it's a fermented drink, which aligns well with my health-conscious lifestyle. I often enjoy it as a refreshing alternative to sugary sodas or alcoholic drinks when I'm out with friends. Plus, I love that it can offer some probiotic benefits. It's definitely one of those drinks that I keep top of mind when I'm considering what to have at gatherings."
|
| 289 |
+
]
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"Name": "Martina Rizzo",
|
| 293 |
+
"Age": "42",
|
| 294 |
+
"Location": "Aosta",
|
| 295 |
+
"Profession": "Entrepreneur",
|
| 296 |
+
"Consumption Frequency": "Weekly",
|
| 297 |
+
"Brand Awareness Level": "Familiar",
|
| 298 |
+
"Preferred Consumption Occasion": "Meals",
|
| 299 |
+
"Health Consciousness": "Moderate",
|
| 300 |
+
"answers": [
|
| 301 |
+
"I'm 42 years old. It's an interesting age, really—old enough to have some experience under my belt, but still young enough to embrace new opportunities and challenges in my entrepreneurial journey.",
|
| 302 |
+
"I usually drink carbonated beverages a few times a week. I enjoy them with meals, especially when I'm out with friends or family. It's a nice treat, but I try to balance it with healthier options too. I’m aware of what I consume, so I don’t overdo it, but I do appreciate a good sparkling drink now and then!",
|
| 303 |
+
"I usually enjoy carbonated beverages during meals, especially when I'm having something like pizza or a nice pasta dish. The fizz really complements the flavors and adds a refreshing touch. I also find that they go well with casual gatherings, like when I'm hosting friends for a barbecue or a relaxed dinner. It’s nice to have a bubbly drink on hand to enhance the overall experience. While I’m health-conscious, I still appreciate the occasional indulgence, and a sparkling drink can make a meal feel a bit more special.",
|
| 304 |
+
"When I think of carbonated beverages, the first brand that comes to mind is Coca-Cola. It's such a classic and has been around for so long. My favorite, though, would have to be San Pellegrino. I love the refreshing taste and the bubbles, especially during meals. It feels a bit more sophisticated and pairs well with food, which is important to me as an entrepreneur who often entertains clients. Plus, I appreciate that it’s a bit lighter on the sweetness compared to other sodas.",
|
| 305 |
+
"Yes, I've definitely heard of Kombucha! I'm somewhat familiar with it, especially since I like to keep an eye on health trends. I know it's a fermented tea that's supposed to have various health benefits, like aiding digestion and boosting energy. I’ve seen it in stores and even tried a few flavors during meals out with friends. It’s interesting how it’s become quite popular lately. I’m always open to trying new things, especially if they can be a healthy addition to my diet."
|
| 306 |
+
]
|
| 307 |
+
}
|
| 308 |
+
]
|
| 309 |
+
|
| 310 |
+
|
| 311 |
+
structured_output = []
|
| 312 |
+
|
| 313 |
+
for user in data:
|
| 314 |
+
structured_output.append(f"### {user['Name']}")
|
| 315 |
+
structured_output.append(f"- **Age**: {user['Age']}")
|
| 316 |
+
structured_output.append(f"- **Location**: {user['Location']}")
|
| 317 |
+
structured_output.append(f"- **Profession**: {user['Profession']}\n")
|
| 318 |
+
structured_output.append("**Answers:**")
|
| 319 |
+
for i, answer in enumerate(user["answers"], start=1):
|
| 320 |
+
structured_output.append(f"{i}. {answer}")
|
| 321 |
+
structured_output.append("\n---\n")
|
| 322 |
+
|
| 323 |
+
# Join everything into a single string
|
| 324 |
+
final_output = "\n".join(structured_output)
|
| 325 |
+
print(final_output) # Display the first chunk of output (truncated for length)
|
core.py
CHANGED
|
@@ -87,14 +87,16 @@ Make sure to answer the question in a way that is relevant to the user persona.
|
|
| 87 |
|
| 88 |
|
| 89 |
def generate_fleet(n: int, parameters: Dict, questions: List[str], audience: str) -> List[Dict]:
|
| 90 |
-
fleet = []
|
| 91 |
users_personas = generate_synthetic_personas(parameters=parameters, num_personas=n, audience=audience)["users_personas"]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
for persona_dict in users_personas:
|
| 93 |
answers = ask_questions_to_persona(persona_dict, questions)
|
| 94 |
persona_dict["answers"] = answers
|
| 95 |
fleet.append(persona_dict)
|
| 96 |
-
return fleet
|
| 97 |
-
|
| 98 |
|
| 99 |
def generate_report(questions,fleet,scope) -> str:
|
| 100 |
|
|
|
|
| 87 |
|
| 88 |
|
| 89 |
def generate_fleet(n: int, parameters: Dict, questions: List[str], audience: str) -> List[Dict]:
|
|
|
|
| 90 |
users_personas = generate_synthetic_personas(parameters=parameters, num_personas=n, audience=audience)["users_personas"]
|
| 91 |
+
return generate_fleet_from_users(users_personas=users_personas, questions=questions)
|
| 92 |
+
|
| 93 |
+
def generate_fleet_from_users(users_personas: Dict, questions: List[str]) -> List[Dict]:
|
| 94 |
+
fleet = []
|
| 95 |
for persona_dict in users_personas:
|
| 96 |
answers = ask_questions_to_persona(persona_dict, questions)
|
| 97 |
persona_dict["answers"] = answers
|
| 98 |
fleet.append(persona_dict)
|
| 99 |
+
return fleet
|
|
|
|
| 100 |
|
| 101 |
def generate_report(questions,fleet,scope) -> str:
|
| 102 |
|
schemas.py
CHANGED
|
@@ -1,35 +1,21 @@
|
|
| 1 |
from pydantic import BaseModel
|
| 2 |
from typing import List, Dict
|
| 3 |
|
| 4 |
-
class
|
| 5 |
audience: str
|
| 6 |
scope: str
|
| 7 |
n: int
|
| 8 |
-
|
| 9 |
-
class GenerateUsersResponse(BaseModel):
|
| 10 |
-
users_personas: List[Dict[str, str]]
|
| 11 |
-
|
| 12 |
-
class GenerateInterviewsRequest(BaseModel):
|
| 13 |
-
users_personas: List[Dict[str, str]]
|
| 14 |
questions: List[str]
|
| 15 |
-
scope: str
|
| 16 |
-
|
| 17 |
-
class GenerateInterviewsResponse(BaseModel):
|
| 18 |
-
fleet: List[Dict[str, str]]
|
| 19 |
-
|
| 20 |
-
class GenerateReportRequest(BaseModel):
|
| 21 |
-
fleet: List[Dict[str, str]]
|
| 22 |
-
scope: str
|
| 23 |
|
| 24 |
-
class
|
|
|
|
| 25 |
report: str
|
| 26 |
|
| 27 |
-
class
|
| 28 |
-
|
| 29 |
scope: str
|
| 30 |
-
n: int
|
| 31 |
questions: List[str]
|
| 32 |
|
| 33 |
-
class
|
| 34 |
users: List[dict]
|
| 35 |
report: str
|
|
|
|
| 1 |
from pydantic import BaseModel
|
| 2 |
from typing import List, Dict
|
| 3 |
|
| 4 |
+
class GenerateWholeRequest(BaseModel):
|
| 5 |
audience: str
|
| 6 |
scope: str
|
| 7 |
n: int
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
questions: List[str]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
+
class GenerateWholeResponse(BaseModel):
|
| 11 |
+
users: List[dict]
|
| 12 |
report: str
|
| 13 |
|
| 14 |
+
class GeneratePartialRequest(BaseModel):
|
| 15 |
+
users: List[dict]
|
| 16 |
scope: str
|
|
|
|
| 17 |
questions: List[str]
|
| 18 |
|
| 19 |
+
class GeneratePartialResponse(BaseModel):
|
| 20 |
users: List[dict]
|
| 21 |
report: str
|