-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrestaurant_data.py
More file actions
281 lines (264 loc) · 9.39 KB
/
Copy pathrestaurant_data.py
File metadata and controls
281 lines (264 loc) · 9.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
"""
Restaurant Knowledge Base - Menu, Information, and Data
"""
MENU_DATA = {
"Appetizers": [
{
"name": "Bruschetta Trio",
"price": 12.99,
"description": "Three varieties: classic tomato basil, mushroom truffle, and roasted pepper",
"dietary": ["vegetarian"],
"popular": True
},
{
"name": "Calamari Fritti",
"price": 14.99,
"description": "Crispy fried calamari with lemon aioli and marinara",
"dietary": [],
"popular": True
},
{
"name": "Caprese Salad",
"price": 11.99,
"description": "Fresh mozzarella, heirloom tomatoes, basil, balsamic glaze",
"dietary": ["vegetarian", "gluten-free"],
"popular": False
},
{
"name": "Stuffed Mushrooms",
"price": 10.99,
"description": "Portobello mushrooms stuffed with herbs, cheese, and breadcrumbs",
"dietary": ["vegetarian"],
"popular": False
}
],
"Main Courses": [
{
"name": "Osso Buco",
"price": 32.99,
"description": "Braised veal shanks with saffron risotto and gremolata",
"dietary": ["gluten-free"],
"popular": True,
"chef_special": True
},
{
"name": "Seafood Linguine",
"price": 28.99,
"description": "Fresh lobster, shrimp, mussels in white wine garlic sauce",
"dietary": [],
"popular": True
},
{
"name": "Chicken Marsala",
"price": 24.99,
"description": "Pan-seared chicken breast with mushroom marsala wine sauce",
"dietary": ["gluten-free"],
"popular": True
},
{
"name": "Eggplant Parmigiana",
"price": 19.99,
"description": "Breaded eggplant layered with marinara, mozzarella, and parmesan",
"dietary": ["vegetarian"],
"popular": False
},
{
"name": "Grilled Salmon",
"price": 26.99,
"description": "Atlantic salmon with lemon butter, asparagus, and roasted potatoes",
"dietary": ["gluten-free"],
"popular": True
},
{
"name": "Ribeye Steak",
"price": 38.99,
"description": "14oz prime ribeye with herb butter and seasonal vegetables",
"dietary": ["gluten-free"],
"popular": True,
"chef_special": True
},
{
"name": "Mushroom Risotto",
"price": 21.99,
"description": "Creamy arborio rice with wild mushrooms and truffle oil",
"dietary": ["vegetarian", "gluten-free"],
"popular": False
}
],
"Pasta": [
{
"name": "Spaghetti Carbonara",
"price": 18.99,
"description": "Classic Roman pasta with pancetta, egg, pecorino romano",
"dietary": [],
"popular": True
},
{
"name": "Fettuccine Alfredo",
"price": 17.99,
"description": "Rich and creamy parmesan sauce with fettuccine",
"dietary": ["vegetarian"],
"popular": True
},
{
"name": "Penne Arrabbiata",
"price": 16.99,
"description": "Spicy tomato sauce with garlic and red chili flakes",
"dietary": ["vegan"],
"popular": False
},
{
"name": "Lobster Ravioli",
"price": 29.99,
"description": "Handmade ravioli filled with lobster in pink vodka sauce",
"dietary": [],
"popular": True,
"chef_special": True
}
],
"Desserts": [
{
"name": "Tiramisu",
"price": 8.99,
"description": "Classic Italian dessert with espresso-soaked ladyfingers and mascarpone",
"dietary": ["vegetarian"],
"popular": True
},
{
"name": "Panna Cotta",
"price": 7.99,
"description": "Vanilla bean panna cotta with berry compote",
"dietary": ["vegetarian", "gluten-free"],
"popular": False
},
{
"name": "Chocolate Lava Cake",
"price": 9.99,
"description": "Warm chocolate cake with molten center, vanilla gelato",
"dietary": ["vegetarian"],
"popular": True
},
{
"name": "Cannoli",
"price": 7.99,
"description": "Crispy pastry shells filled with sweet ricotta and chocolate chips",
"dietary": ["vegetarian"],
"popular": True
}
],
"Beverages": [
{
"name": "Italian Espresso",
"price": 3.99,
"description": "Rich and bold espresso shot",
"dietary": ["vegan", "gluten-free"],
"popular": True
},
{
"name": "Cappuccino",
"price": 4.99,
"description": "Espresso with steamed milk and foam",
"dietary": ["vegetarian", "gluten-free"],
"popular": True
},
{
"name": "Fresh Lemonade",
"price": 3.99,
"description": "House-made lemonade with mint",
"dietary": ["vegan", "gluten-free"],
"popular": False
},
{
"name": "San Pellegrino",
"price": 4.99,
"description": "Sparkling mineral water",
"dietary": ["vegan", "gluten-free"],
"popular": False
}
]
}
WINE_LIST = {
"Red Wines": [
{"name": "Chianti Classico", "price": 45.00, "region": "Tuscany, Italy"},
{"name": "Barolo", "price": 85.00, "region": "Piedmont, Italy"},
{"name": "Cabernet Sauvignon", "price": 55.00, "region": "Napa Valley, USA"}
],
"White Wines": [
{"name": "Pinot Grigio", "price": 38.00, "region": "Veneto, Italy"},
{"name": "Chardonnay", "price": 48.00, "region": "Burgundy, France"},
{"name": "Sauvignon Blanc", "price": 42.00, "region": "Marlborough, NZ"}
]
}
SPECIAL_OFFERS = [
{
"name": "Happy Hour",
"description": "50% off appetizers and select drinks",
"time": "Monday-Friday, 4:00 PM - 6:00 PM"
},
{
"name": "Sunday Brunch",
"description": "Special brunch menu with bottomless mimosas",
"time": "Sunday, 10:00 AM - 2:00 PM",
"price": "$29.99 per person"
},
{
"name": "Chef's Tasting Menu",
"description": "5-course tasting menu with wine pairing",
"time": "Available daily",
"price": "$89.99 per person"
}
]
DIETARY_INFO = {
"vegetarian": "We offer multiple vegetarian options across all categories",
"vegan": "Vegan options available, please ask your server for modifications",
"gluten-free": "Gluten-free pasta and bread available upon request",
"allergies": "Please inform your server of any allergies. We take all precautions seriously."
}
CHEF_RECOMMENDATIONS = [
"Osso Buco - Our signature dish, slow-braised to perfection",
"Lobster Ravioli - Handmade daily by our pasta chef",
"Ribeye Steak - Premium cut, aged 28 days",
"Tiramisu - Made with our secret family recipe"
]
def get_full_menu_text():
"""Generate formatted menu text for AI context"""
menu_text = "BELLA VISTA RESTAURANT MENU\n\n"
for category, items in MENU_DATA.items():
menu_text += f"\n{category.upper()}\n" + "="*50 + "\n"
for item in items:
menu_text += f"\n{item['name']} - ${item['price']}\n"
menu_text += f" {item['description']}\n"
if item.get('dietary'):
menu_text += f" Dietary: {', '.join(item['dietary'])}\n"
if item.get('popular'):
menu_text += " ⭐ Popular Choice\n"
if item.get('chef_special'):
menu_text += " 👨🍳 Chef's Special\n"
return menu_text
def search_menu(query):
"""Search menu items by name or description"""
query = query.lower()
results = []
for category, items in MENU_DATA.items():
for item in items:
if (query in item['name'].lower() or
query in item['description'].lower() or
query in category.lower()):
results.append({**item, "category": category})
return results
def get_items_by_dietary(dietary_type):
"""Get menu items by dietary restriction"""
results = []
for category, items in MENU_DATA.items():
for item in items:
if dietary_type.lower() in [d.lower() for d in item.get('dietary', [])]:
results.append({**item, "category": category})
return results
def get_popular_items():
"""Get all popular menu items"""
results = []
for category, items in MENU_DATA.items():
for item in items:
if item.get('popular'):
results.append({**item, "category": category})
return results