DylanonWic commited on
Commit
5c5bd6b
1 Parent(s): 7c2edac

Upload 18 files

Browse files
QA_sample.ipynb CHANGED
@@ -2,7 +2,7 @@
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
- "execution_count": 7,
6
  "metadata": {},
7
  "outputs": [],
8
  "source": [
@@ -29,7 +29,7 @@
29
  },
30
  {
31
  "cell_type": "code",
32
- "execution_count": 8,
33
  "metadata": {},
34
  "outputs": [],
35
  "source": [
@@ -41,7 +41,7 @@
41
  },
42
  {
43
  "cell_type": "code",
44
- "execution_count": null,
45
  "metadata": {},
46
  "outputs": [
47
  {
@@ -73,426 +73,435 @@
73
  },
74
  {
75
  "cell_type": "code",
76
- "execution_count": null,
77
  "metadata": {},
78
  "outputs": [
79
  {
80
  "name": "stdout",
81
  "output_type": "stream",
82
  "text": [
83
- "[{'answer': '### \\n'\n",
84
- " '\\n'\n",
85
- " '#### 1. List of Competitors (Grocery Stores)\\n'\n",
86
- " '- **ร้านขายของชำ 7**\\n'\n",
87
- " ' - Address: 156/5 Phetchaburi Rd, Thung Phaya Thai, Ratchathewi\\n'\n",
88
- " ' - Rating: 3\\n'\n",
89
- " '\\n'\n",
90
- " '- **ร้านขายของชำ อาหารสด**\\n'\n",
91
- " ' - Address: 467 Ratchawithi Rd, Thanon Phaya Thai, Ratchathewi\\n'\n",
92
- " ' - Rating: 4\\n'\n",
93
- " '\\n'\n",
94
- " '- **ร้านขายของชำ โอเค**\\n'\n",
95
- " ' - Address: 163, 25 Soi Phetchaburi 5, Thung Phaya Thai, '\n",
96
- " 'Ratchathewi\\n'\n",
97
- " ' - Rating: 5\\n'\n",
98
- " '\\n'\n",
99
- " '- **ร้านขายของชำ พิชิต**\\n'\n",
100
- " ' - Address: 184/4 Soi Phahon Yothin 1, Phaya Thai\\n'\n",
101
- " ' - Rating: 4.5\\n'\n",
102
- " '\\n'\n",
103
- " '- **ร้านขายของชำ นคร**\\n'\n",
104
- " ' - Address: 476 Thanon Asok - Din Daeng, Din Daeng\\n'\n",
105
- " ' - Rating: 4.4\\n'\n",
106
  " '\\n'\n",
107
- " '- **ร้านขายของชำ อิ่มอร่อย**\\n'\n",
108
- " ' - Address: 140/6 Ratchawithi Rd, Phaya Thai\\n'\n",
109
- " ' - Rating: 5\\n'\n",
110
  " '\\n'\n",
111
- " '- **ร้านขายของชำ สบายใจ**\\n'\n",
112
- " ' - Address: 504 Thanon Asok - Din Daeng, Din Daeng\\n'\n",
113
- " ' - Rating: 3\\n'\n",
 
 
114
  " '\\n'\n",
115
- " '- **ร้านขายของชำ น้องนุช**\\n'\n",
116
- " ' - Address: 292 Takhe Alley, Din Daeng\\n'\n",
117
- " ' - Rating: 4.3\\n'\n",
 
118
  " '\\n'\n",
119
- " '- **ร้านขายของชำ อร่อย**\\n'\n",
120
- " ' - Address: 188 Thanon Asok - Din Daeng, Din Daeng\\n'\n",
121
- " ' - Rating: 4\\n'\n",
 
122
  " '\\n'\n",
123
- " '- **ร้านขายของชำ สินค้า**\\n'\n",
124
- " ' - Address: 8/12 Phetchaburi Rd, Makkasan, Ratchathewi\\n'\n",
125
- " ' - Rating: 4\\n'\n",
 
126
  " '\\n'\n",
127
  " '#### 2. Numerical Data\\n'\n",
128
- " '- **Number of Competitors**: More than 20 grocery stores in the '\n",
129
- " 'vicinity.\\n'\n",
130
- " '- **Rating Range**: 0 to 5 (with several stores rated 4 and '\n",
131
- " 'above).\\n'\n",
132
- " '- **Community Type**: Urban area in Bangkok (Ratchathewi '\n",
133
- " 'district).\\n'\n",
134
- " '- **Population Data**: Bangkok has a population of over 10 '\n",
135
- " 'million, with high density in urban districts.\\n'\n",
 
 
136
  " '\\n'\n",
137
  " '#### 3. Descriptive Analytical Summary\\n'\n",
138
- " 'The Anusawari Chai area is characterized by a high density of '\n",
139
- " 'grocery stores, with over 20 establishments within a 1 km radius. '\n",
140
- " 'The ratings of these stores vary, with many achieving ratings of '\n",
141
- " '4 and above, indicating a competitive market for grocery retail. '\n",
142
- " 'The area is part of Bangkok, which is known for its significant '\n",
143
- " 'population density, particularly in urban districts like '\n",
144
- " 'Ratchathewi. This suggests a robust demand for grocery services, '\n",
145
- " 'making it a potentially lucrative area for grocery businesses. \\n'\n",
146
- " '\\n'\n",
147
- " 'If you need further insights or specific data, feel free to ask!',\n",
148
- " 'quesion': 'ค้นหาร้านของชำใกล้อนุสาวรีย์ชัยฯ พร้อมวิเคราะห์จำนวนประชากร\\n'},\n",
149
- " {'answer': '### \\n'\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
150
  " '\\n'\n",
151
- " '#### 1. List of Competitors (Coffee Shops near MBK Center):\\n'\n",
152
- " '- **BEANS Coffee Roaster Paragon**\\n'\n",
153
- " ' - Address: 991/1 Rama I Rd, Pathum Wan\\n'\n",
154
- " ' - Rating: 5\\n'\n",
155
  " '\\n'\n",
156
- " '- **The Palette**\\n'\n",
157
- " ' - Address: Phaya Thai Rd, Thanon Phetchaburi, Ratchathewi\\n'\n",
158
- " ' - Rating: 4.8\\n'\n",
159
  " '\\n'\n",
160
- " '- **Olympic Coffee**\\n'\n",
161
- " ' - Address: 43/4 Rama VI Rd, Rong Muang, Pathum Wan\\n'\n",
162
- " ' - Rating: 4.8\\n'\n",
163
  " '\\n'\n",
164
- " '- **Treasure Specialty Coffee**\\n'\n",
165
- " ' - Address: MINT TOWER Bantadthong Phetchaburi Rd, Subdistrict '\n",
166
- " 'Pathum Wan\\n'\n",
167
- " ' - Rating: 4.9\\n'\n",
168
  " '\\n'\n",
169
- " '- **Salotto Coffee**\\n'\n",
170
- " ' - Address: 813/8 Phetchaburi Rd, Thanon Phaya Thai, '\n",
 
 
 
 
171
  " 'Ratchathewi\\n'\n",
172
- " ' - Rating: 5\\n'\n",
173
  " '\\n'\n",
174
- " \"- **Sip 'n Drip**\\n\"\n",
175
- " ' - Address: 36, 6 Kasem San 1 Alley, Wang Mai, Pathum Wan\\n'\n",
176
- " ' - Rating: 4.9\\n'\n",
177
  " '\\n'\n",
178
- " '- **D Coffee House**\\n'\n",
179
- " ' - Address: 445 Rama I Rd, Rong Muang, Pathum Wan\\n'\n",
180
- " ' - Rating: 4.9\\n'\n",
181
  " '\\n'\n",
182
- " '- **Gallery Drip Coffee**\\n'\n",
183
- " ' - Address: 939 Rama I Rd, Wang Mai, Pathum Wan\\n'\n",
184
- " ' - Rating: 4.6\\n'\n",
 
 
 
 
 
185
  " '\\n'\n",
186
- " '- **GATTA CAFÉ**\\n'\n",
187
- " ' - Address: 2nd Floor Siam Square One 388 Rama I Rd, Pathum Wan\\n'\n",
188
- " ' - Rating: 4.9\\n'\n",
189
- " '\\n'\n",
190
- " '- **echo bar**\\n'\n",
191
- " ' - Address: Siam Discovery Center 194 Phaya Thai Rd, Pathum Wan\\n'\n",
192
- " ' - Rating: 5\\n'\n",
193
- " '\\n'\n",
194
- " '#### 2. Numerical Data:\\n'\n",
195
- " '- **Number of Competitors**: 10 coffee shops listed.\\n'\n",
196
- " \"- **Range of Competitors' Ratings**: 3.5 to 5.\\n\"\n",
197
- " '- **Community Type**: Urban area (Pathum Wan district).\\n'\n",
198
- " '- **Household Expenditures**: Not available.\\n'\n",
199
- " '- **Population Data**: Not available.\\n'\n",
200
- " '\\n'\n",
201
- " '#### 3. Descriptive Analytical Summary:\\n'\n",
202
- " 'The area surrounding MBK Center is rich in coffee shop options, '\n",
203
- " 'with a total of 10 notable competitors. The ratings of these '\n",
204
- " 'establishments range from 3.5 to 5, indicating a generally high '\n",
205
- " 'level of customer satisfaction. The coffee shops are located in '\n",
206
- " 'an urban community, which is likely to attract both locals and '\n",
207
- " 'tourists. However, specific data regarding household expenditures '\n",
208
- " 'and population demographics in the vicinity was not accessible. '\n",
209
- " 'This information could be beneficial for understanding the market '\n",
210
- " 'dynamics and consumer behavior in the area. \\n'\n",
211
- " '\\n'\n",
212
- " 'If you need further insights or specific data, feel free to ask!',\n",
213
- " 'quesion': 'coffee shop near mbk center\\n'},\n",
214
- " {'answer': '### Final Report on the Feasibility of Opening a Restaurant Near '\n",
215
- " 'Siam Paragon\\n'\n",
216
  " '\\n'\n",
217
- " '#### 1. Competitors\\n'\n",
218
- " '- **List of Competitors**:\\n'\n",
219
- " ' - Shree Bhavan Pure South Indian Vegetarian Restaurant (Rating: '\n",
220
- " '4.9)\\n'\n",
221
- " ' - I Food Bar & Restaurant (Rating: 4.8)\\n'\n",
222
- " ' - Tan Kun ท่านขุน Central World (Rating: 4.7)\\n'\n",
223
- " ' - Jasmine Siam Kitchen (Rating: 4.7)\\n'\n",
224
- " ' - Ñam Ñam Pasta and Tapas (Rating: 4.2)\\n'\n",
225
- " ' - Anjappar Chettinad Restaurant (Rating: 4.5)\\n'\n",
226
- " ' - Inter Restaurants since 1981 (Rating: 4.4)\\n'\n",
227
- " ' - Arun Thai Cuisine by SEE FAH (Rating: 4.4)\\n'\n",
228
- " ' - Indiagate Restaurant (Rating: 4.6)\\n'\n",
229
- " ' - Metro Square SiamParagon (Rating: 4.7)\\n'\n",
230
- " ' - Prego Bangkok (Rating: 4.4)\\n'\n",
231
- " ' - KAI Japanese Restaurant (Rating: 5.0)\\n'\n",
232
- " ' - Madras Darbar Indian Restaurant (Rating: 4.7)\\n'\n",
233
- " ' - Honest Vegetarian Indian Restaurant (Rating: 4.4)\\n'\n",
234
- " ' - Chotivala 100% Pure Vegetarian & Jain Food (Rating: 4.3)\\n'\n",
235
- " ' - Na Bangkok Thai Street Food (Rating: 3.3)\\n'\n",
236
- " ' - Shichi Japanese Restaurant (Rating: 4.8)\\n'\n",
237
- " \" - Bangkok'78 (Rating: 4.3)\\n\"\n",
238
- " ' - Sanjha Chulha Pratunam Bangkok (Rating: 4.4)\\n'\n",
239
- " ' - BurnBusaba Central World (Rating: 4.4)\\n'\n",
240
  " '\\n'\n",
241
- " '#### 2. Numerical Data\\n'\n",
242
- " '- **Number of Competitors**: Over 20 restaurants within a 1 km '\n",
243
- " 'radius.\\n'\n",
244
- " \"- **Range of Competitors' Ratings**: 3.3 to 5.0.\\n\"\n",
245
- " '- **Community Type**: Urban, high foot traffic area due to '\n",
246
- " 'shopping and entertainment.\\n'\n",
247
- " '- **Household Expenditures**: Not specifically gathered, but the '\n",
248
- " 'presence of high-end shopping suggests a higher average '\n",
249
- " 'expenditure.\\n'\n",
250
- " '- **Population Data**: Not specifically gathered, but the area is '\n",
251
- " 'known for a mix of locals and tourists.\\n'\n",
252
  " '\\n'\n",
253
- " '#### 3. Descriptive Analytical Summary\\n'\n",
254
- " 'The area around Siam Paragon is highly competitive for the '\n",
255
- " 'restaurant business, with a significant number of established '\n",
256
- " 'restaurants offering a variety of cuisines and maintaining high '\n",
257
- " 'ratings. The presence of high-quality competitors indicates a '\n",
258
- " 'demanding customer base, which could pose challenges for a new '\n",
259
- " 'restaurant. \\n'\n",
260
- " '\\n'\n",
261
- " 'To succeed, a new restaurant would need to differentiate itself '\n",
262
- " 'through unique offerings, exceptional service, or innovative '\n",
263
- " 'marketing strategies. Additionally, understanding the local '\n",
264
- " 'demographic and their spending habits will be crucial in '\n",
265
- " \"tailoring the restaurant's concept and menu.\\n\"\n",
266
- " '\\n'\n",
267
- " 'In conclusion, while the market is competitive, there is '\n",
268
- " 'potential for success if the restaurant can carve out a niche and '\n",
269
- " 'meet the expectations of the discerning clientele frequenting the '\n",
270
- " 'area.\\n'\n",
271
- " '\\n',\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
  " 'quesion': 'Analyze the feasibility of opening a restaurant near Siam '\n",
273
  " 'Paragon\\n'},\n",
274
- " {'answer': '### Final Report on Competitors of Bakeries Near Chatuchak '\n",
275
- " 'Market\\n'\n",
276
- " '\\n'\n",
277
- " '#### 1. List of Competitors:\\n'\n",
278
- " '- **Sanan Bakery** (Rating: 4.4)\\n'\n",
279
- " '- **The Croissant Corner** (Rating: 4.7)\\n'\n",
280
- " '- **Baked With Hearts** (Rating: 4.6)\\n'\n",
281
- " '- **JJ Mall One More Bite Japanese Bakery** (Rating: 4.9)\\n'\n",
282
- " '- **Triple D Bakery @ Chatuchak Market** (Rating: 4.9)\\n'\n",
283
- " \"- **Bellinee's Bake & Brew** (Rating: 3.9)\\n\"\n",
284
- " '- **Miss Muay Bakery** (Rating: 3.8)\\n'\n",
285
- " '- **Mom’s FF Cafe & Bakery** (Rating: 5)\\n'\n",
286
- " '- **Wipada Herb Coffee and Bakery** (Rating: 0)\\n'\n",
287
- " '\\n'\n",
288
- " '#### 2. Numerical Data:\\n'\n",
289
- " '- **Total Number of Competitors**: 15 bakeries found.\\n'\n",
290
- " '- **Rating Range**: 0 to 5 (with most competitors rated above '\n",
291
- " '4).\\n'\n",
292
- " '- **Community Type**: Urban area with a mix of local residents '\n",
293
- " 'and tourists.\\n'\n",
294
- " '- **Household Expenditures**: Data not available.\\n'\n",
295
- " '\\n'\n",
296
- " '#### 3. Descriptive Analytical Summary:\\n'\n",
297
- " 'The bakery market near Chatuchak Market is competitive, with '\n",
298
- " 'several establishments offering a variety of baked goods. The '\n",
299
- " 'ratings of these bakeries indicate a generally positive reception '\n",
300
- " 'from customers, with several achieving ratings above 4. The '\n",
301
- " 'presence of both local and tourist traffic suggests a vibrant '\n",
302
- " 'market environment, which could be beneficial for a new bakery '\n",
303
- " 'entering this area. However, the competition is strong, '\n",
304
- " 'particularly from bakeries like \"JJ Mall One More Bite Japanese '\n",
305
- " 'Bakery\" and \"Triple D Bakery,\" both of which have high ratings '\n",
306
- " 'and likely loyal customer bases.\\n'\n",
307
- " '\\n'\n",
308
- " 'In conclusion, while the market presents opportunities, it also '\n",
309
- " 'requires a strategic approach to differentiate from established '\n",
310
- " 'competitors. \\n'\n",
311
- " '\\n',\n",
312
- " 'quesion': 'วิเคราะห์คู่แข่งของร้านเบเกอรี่ใกล้ตลาดจตุจักร\\n'},\n",
313
- " {'answer': '### Final Report on Restaurant Opening Near Siam Paragon\\n'\n",
314
- " '\\n'\n",
315
- " '#### 1. Competitors List\\n'\n",
316
- " '- **Shree Bhavan Pure South Indian Vegetarian Restaurant** - '\n",
317
- " 'Rating: 4.9\\n'\n",
318
- " '- **I Food Bar & Restaurant** - Rating: 4.8\\n'\n",
319
- " '- **Tan Kun (Central World)** - Rating: 4.7\\n'\n",
320
- " '- **Jasmine Siam Kitchen** - Rating: 4.7\\n'\n",
321
- " '- **Metro Square SiamParagon** - Rating: 4.7\\n'\n",
322
- " '- **KAI Japanese Restaurant Gaysorn Amarin** - Rating: 5.0\\n'\n",
323
- " '- **Madras Darbar Indian Restaurant** - Rating: 4.7\\n'\n",
324
- " \"- **Bangkok'78** - Rating: 4.3\\n\"\n",
325
- " '- **Additional competitors**: More than 20 restaurants in the '\n",
326
- " 'vicinity.\\n'\n",
327
- " '\\n'\n",
328
- " '#### 2. Numerical Data\\n'\n",
329
- " '- **Number of Competitors**: More than 20 restaurants nearby.\\n'\n",
330
- " '- **Rating Range**: 3.3 to 5.0\\n'\n",
331
- " '- **Community Type**: Urban community with a mix of residential, '\n",
332
- " 'commercial, and tourist activities.\\n'\n",
333
- " '- **Household Expenditures**: Generally high due to the presence '\n",
334
- " 'of luxury shopping and dining options.\\n'\n",
335
- " '- **Population**: Densely populated area typical of urban centers '\n",
336
- " 'in Bangkok.\\n'\n",
337
  " '\\n'\n",
338
- " '#### 3. Descriptive Analytical Summary\\n'\n",
339
- " 'Siam Paragon is located in a bustling urban area of Bangkok, '\n",
340
- " 'characterized by a high density of both local residents and '\n",
341
- " 'tourists. The presence of over 20 competing restaurants within a '\n",
342
- " '1 km radius indicates a vibrant dining scene, with ratings '\n",
343
- " 'ranging from 3.3 to 5.0. This competitive landscape suggests a '\n",
344
- " 'strong demand for diverse dining options, particularly in the mid '\n",
345
- " 'to high-end market segments.\\n'\n",
346
- " '\\n'\n",
347
- " 'The high household expenditures in the area, driven by the luxury '\n",
348
- " 'shopping environment of Siam Paragon, further support the '\n",
349
- " 'viability of opening a new restaurant. Potential restaurant '\n",
350
- " 'owners should consider the existing competition and aim to '\n",
351
- " 'differentiate their offerings, possibly by focusing on unique '\n",
352
- " 'cuisine, exceptional service, or innovative dining experiences.\\n'\n",
353
- " '\\n'\n",
354
- " 'In conclusion, the area around Siam Paragon presents a promising '\n",
355
- " 'opportunity for new restaurant ventures, provided that they can '\n",
356
- " 'effectively compete with established players and cater to the '\n",
357
- " 'affluent customer base.\\n'\n",
358
- " '\\n',\n",
359
- " 'quesion': 'วิเคราะห์การเปิดร้านอาหารใกล้สยามพารากอน\\n'},\n",
360
- " {'answer': '### Final Report on the Possibility of Opening a Bookstore Near '\n",
361
- " 'Thonglor\\n'\n",
362
- " '\\n'\n",
363
- " '#### 1. Competitors\\n'\n",
364
- " '- **List of Competitors:**\\n'\n",
365
- " ' 1. **Book Link Co., LTD.**\\n'\n",
366
- " ' - Address: 47/3 Ekkamai 28 Alley, Khlong Tan Nuea, Watthana\\n'\n",
367
- " ' - Rating: 4\\n'\n",
368
- " ' 2. **Asiabooks Bangkok Hospital**\\n'\n",
369
- " ' - Address: 1-06 Bangkok Plaza, New Petchaburi Rd, Bang Kapi, '\n",
370
- " 'Huai Khwang\\n'\n",
371
- " ' - Rating: 3.5\\n'\n",
372
- " ' 3. **ร้านหนังสือพัฒนาการ (Pattanakarn Bookstore)**\\n'\n",
373
- " ' - Address: 22 Bangkok Plaza Soi Phetchaburi 47 Yaek 10, Bang '\n",
374
- " 'Kapi, Huai Khwang\\n'\n",
375
- " ' - Rating: 4\\n'\n",
376
- " ' 4. **ร้านหนังสือสยาม (Siam Bookstore)**\\n'\n",
377
- " ' - Address: 2447/7 New Petchaburi Rd, Bang Kapi, Huai Khwang\\n'\n",
378
- " ' - Rating: 5\\n'\n",
379
  " '\\n'\n",
380
- " '#### 2. Numerical Data\\n'\n",
381
- " '- **Number of Competitors:** 4 bookstores\\n'\n",
382
- " '- **Competitor Ratings Range:** 3.5 to 5\\n'\n",
383
- " '- **Location Coordinates:** Latitude 13.7424537, Longitude '\n",
384
- " '100.5854359\\n'\n",
385
- " '- **Population Data:** Not available\\n'\n",
386
- " '- **Community Type:** Not available\\n'\n",
387
- " '- **Household Expenditures:** Not available\\n'\n",
 
 
388
  " '\\n'\n",
389
- " '#### 3. Descriptive Analytical Summary\\n'\n",
390
- " 'The Thonglor area has a competitive landscape with four existing '\n",
391
- " 'bookstores, indicating a demand for books in the vicinity. The '\n",
392
- " 'ratings of these competitors suggest a healthy market, with some '\n",
393
- " 'stores achieving high customer satisfaction. However, specific '\n",
394
- " 'demographic and economic data such as population density, '\n",
395
- " 'community type, and household expenditures were not retrievable, '\n",
396
- " 'which limits a more detailed analysis of the market potential.\\n'\n",
397
- " '\\n'\n",
398
- " 'Given the existing competition and the ratings, opening a '\n",
399
- " 'bookstore in Thonglor could be viable, especially if the new '\n",
400
- " 'store can offer unique products or services that differentiate it '\n",
401
- " 'from the current offerings.\\n'\n",
402
- " '\\n'\n",
403
- " '### \\n'\n",
404
- " 'This report summarizes the potential for opening a bookstore near '\n",
405
- " 'Thonglor based on available data. If further analysis or specific '\n",
406
- " 'inquiries are needed, please feel free to ask!',\n",
407
- " 'quesion': 'วิเคราะห์ความเป็นไปได้ในการเปิดร้านหนังสือใกล้ทองหล่อ\\n'},\n",
408
- " {'error': InternalServerError(\"Error code: 500 - {'error': {'message': 'The model produced invalid content. Consider modifying your prompt if you are seeing this error persistently.', 'type': 'model_error', 'param': None, 'code': None}}\"),\n",
409
  " 'quesion': 'ร้านกาแฟใกล้เซ็นทรัลเวิลด์\\n'},\n",
410
- " {'answer': '### \\n'\n",
411
- " '\\n'\n",
412
- " '#### 1. List of Competitors (Coffee Shops Near MBK Center)\\n'\n",
413
- " '- **BEANS Coffee Roaster Paragon** - Rating: 5\\n'\n",
414
- " '- **The Palette** - Rating: 4.8\\n'\n",
415
- " \"- **Sip 'n Drip** - Rating: 4.9\\n\"\n",
416
- " '- **Gallery Drip Coffee** - Rating: 4.6\\n'\n",
417
- " '- **GATTA CAFÉ** - Rating: 4.9\\n'\n",
418
- " '- **Treasure specialty coffee** - Rating: 4.9\\n'\n",
419
- " '- **echo bar** - Rating: 5\\n'\n",
420
- " '- **The Cassette Coffee Bar** - Rating: 4.2\\n'\n",
421
- " '- **Intanin Coffee MBK** - Rating: 5\\n'\n",
422
- " '- **Coffee Booms** - Rating: 4.8\\n'\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
423
  " '\\n'\n",
424
- " '#### 2. Numerical Data\\n'\n",
425
- " '- **Number of Competitors**: More than 20 coffee shops\\n'\n",
426
- " '- **Rating Range**: 3.5 to 5\\n'\n",
427
- " '- **Location**: MBK Center, 444 Phaya Thai Rd, Wang Mai, Pathum '\n",
428
- " 'Wan, Bangkok 10330, Thailand\\n'\n",
429
- " '- **Population Density**: High due to commercial activities and '\n",
430
- " 'residential buildings in the Pathum Wan district.\\n'\n",
431
  " '\\n'\n",
432
- " '#### 3. Descriptive Analytical Summary\\n'\n",
433
- " 'The area surrounding MBK Center is vibrant with a diverse range '\n",
434
- " 'of coffee shops, boasting high ratings, indicating a competitive '\n",
435
- " 'market for coffee enthusiasts. The population density in Pathum '\n",
436
- " 'Wan is significant, driven by both local residents and visitors '\n",
437
- " 'attracted to the shopping and entertainment options available. '\n",
438
- " 'This combination of high foot traffic and a variety of coffee '\n",
439
- " 'offerings presents a lucrative opportunity for businesses in the '\n",
440
- " 'area.\\n'\n",
441
- " '\\n'\n",
442
- " 'If you need any further information or analysis, feel free to '\n",
443
- " 'ask!',\n",
444
- " 'quesion': 'ค้นหาร้านกาแฟใกล้มาบุญครอง พร้อมวิเคราะห์จำนวนประชากร\\n'},\n",
445
- " {'error': InternalServerError(\"Error code: 500 - {'error': {'message': 'The model produced invalid content. Consider modifying your prompt if you are seeing this error persistently.', 'type': 'model_error', 'param': None, 'code': None}}\"),\n",
446
- " 'quesion': 'Coffee shop near Central World\\n'},\n",
447
- " {'answer': ':\\n'\n",
448
- " '\\n'\n",
449
- " '### 1. List of Competitors (Grocery Stores Near Victory '\n",
450
- " 'Monument)\\n'\n",
451
- " '- **Tops Century**\\n'\n",
452
- " ' - Address: 15 Phaya Thai Rd, Thanon Phaya Thai, Ratchathewi\\n'\n",
453
- " ' - Rating: 3.7\\n'\n",
454
- " '- **Lotus’s go fresh**\\n'\n",
455
- " ' - Address: 104, 30-34 Rang Nam Alley, Thanon Phaya Thai, '\n",
456
  " 'Ratchathewi\\n'\n",
457
- " ' - Rating: 4.1\\n'\n",
458
- " '- **Lotus’s go fresh**\\n'\n",
459
- " ' - Address: 100 Soi Ratchawithi 9, Thanon Phaya Thai, '\n",
 
460
  " 'Ratchathewi\\n'\n",
461
- " ' - Rating: 4.3\\n'\n",
462
- " '- **Get it Supermarket**\\n'\n",
463
- " ' - Address: 420/8, Ratchawithi Rd, Ratchathewi\\n'\n",
464
- " ' - Rating: 0 (no reviews)\\n'\n",
465
- " '- **YAMi Selected Store Victory Monument**\\n'\n",
466
- " ' - Address: QG7R+P24, Thanon Phaya Thai, Ratchathewi\\n'\n",
467
- " ' - Rating: 5\\n'\n",
468
- " '- **Ran Pi Ya Phon Sin Si Kun**\\n'\n",
469
- " ' - Address: 107/9, Rang Nam Road, Khwaeng Thanon Phaya Thai, '\n",
470
- " 'Khet Ratchathewi, Bangkok, 10400\\n'\n",
471
- " ' - Rating: 0 (no reviews)\\n'\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
472
  " '\\n'\n",
473
  " '### 2. Numerical Data\\n'\n",
474
- " '- **Total Grocery Stores Found**: 16\\n'\n",
475
- " '- **Population of Ratchathewi District**: Approximately 50,000 to '\n",
476
- " '60,000 residents\\n'\n",
477
- " '- **Community Type**: Urban, diverse population including locals '\n",
478
- " 'and expatriates\\n'\n",
 
 
 
479
  " '\\n'\n",
480
  " '### 3. Descriptive Analytical Summary\\n'\n",
481
- " 'Victory Monument is surrounded by a variety of grocery stores, '\n",
482
- " 'with a total of 16 options available within a 500-meter radius. '\n",
483
- " 'The ratings of these stores vary, with some like YAMi Selected '\n",
484
- " 'Store achieving a perfect score of 5, while others have lower '\n",
485
- " 'ratings or no reviews at all. The Ratchathewi district, where '\n",
486
- " 'Victory Monument is located, has a vibrant urban community with a '\n",
487
- " 'population estimated between 50,000 to 60,000 residents, '\n",
488
- " 'reflecting a mix of local Thais and expatriates. This demographic '\n",
489
- " 'diversity contributes to the demand for various grocery options '\n",
490
- " 'in the area.\\n'\n",
491
- " '\\n'\n",
492
- " 'If you need further insights or additional information, feel free '\n",
493
- " 'to ask!',\n",
494
- " 'quesion': 'Search for grocery stores near Victory Monument and analyze the '\n",
495
- " 'population\\n'}]\n"
496
  ]
497
  }
498
  ],
 
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
+ "execution_count": 1,
6
  "metadata": {},
7
  "outputs": [],
8
  "source": [
 
29
  },
30
  {
31
  "cell_type": "code",
32
+ "execution_count": 2,
33
  "metadata": {},
34
  "outputs": [],
35
  "source": [
 
41
  },
42
  {
43
  "cell_type": "code",
44
+ "execution_count": 3,
45
  "metadata": {},
46
  "outputs": [
47
  {
 
73
  },
74
  {
75
  "cell_type": "code",
76
+ "execution_count": 4,
77
  "metadata": {},
78
  "outputs": [
79
  {
80
  "name": "stdout",
81
  "output_type": "stream",
82
  "text": [
83
+ "[{'error': BadRequestError('Error code: 400 - {\\'error\\': {\\'message\\': \"An assistant message with \\'tool_calls\\' must be followed by tool messages responding to each \\'tool_call_id\\'. The following tool_call_ids did not have response messages: call_unMN66et1GfiFghWmFzTTCgE\", \\'type\\': \\'invalid_request_error\\', \\'param\\': \\'messages\\', \\'code\\': None}}'),\n",
84
+ " 'quesion': 'Search for grocery stores near Victory Monument and analyze the '\n",
85
+ " 'population\\n'},\n",
86
+ " {'answer': '\\n'\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  " '\\n'\n",
88
+ " '### Feasibility Analysis for a Bookstore Near Thonglor\\n'\n",
 
 
89
  " '\\n'\n",
90
+ " '#### 1. Competitors\\n'\n",
91
+ " '- **Asiabooks Bangkok Hospital**\\n'\n",
92
+ " ' - **Address:** 1-06 Bangkok Plaza, New Petchaburi Rd, Bang '\n",
93
+ " 'Kapi, Huai Khwang\\n'\n",
94
+ " ' - **Rating:** 3.5\\n'\n",
95
  " '\\n'\n",
96
+ " '- **Book Link Co., LTD.**\\n'\n",
97
+ " ' - **Address:** 47/3 Ekkamai 28 Alley, Khlong Tan Nuea, '\n",
98
+ " 'Watthana\\n'\n",
99
+ " ' - **Rating:** 4.0\\n'\n",
100
  " '\\n'\n",
101
+ " '- **Another Bookstore**\\n'\n",
102
+ " ' - **Address:** 2447/7 New Petchaburi Rd, Bang Kapi, Huai '\n",
103
+ " 'Khwang\\n'\n",
104
+ " ' - **Rating:** 5.0\\n'\n",
105
  " '\\n'\n",
106
+ " '- **Unnamed Bookstore**\\n'\n",
107
+ " ' - **Address:** 22 Bangkok Plaza Soi Phetchaburi 47 Yaek 10, '\n",
108
+ " 'Bang Kapi, Huai Khwang\\n'\n",
109
+ " ' - **Rating:** 4.0\\n'\n",
110
  " '\\n'\n",
111
  " '#### 2. Numerical Data\\n'\n",
112
+ " '- **Number of Competitors:** 4\\n'\n",
113
+ " \"- **Competitors' Ratings Range:** 3.5 to 5.0\\n\"\n",
114
+ " '- **Population in Thonglor:** Approximately 45,000\\n'\n",
115
+ " '- **Community Type:** Urban residential area with a mix of '\n",
116
+ " 'commercial establishments.\\n'\n",
117
+ " '- **Household Expenditures (Recent Year 2564):**\\n'\n",
118
+ " ' - Expenditure on books: 34\\n'\n",
119
+ " ' - Expenditure on education: 45\\n'\n",
120
+ " ' - Expenditure on culture and recreation: 39\\n'\n",
121
+ " ' - Expenditure on other goods and services: 12\\n'\n",
122
  " '\\n'\n",
123
  " '#### 3. Descriptive Analytical Summary\\n'\n",
124
+ " 'Thonglor is a vibrant urban area with a population of around '\n",
125
+ " '45,000, characterized by a mix of residential and commercial '\n",
126
+ " 'establishments. The presence of four nearby bookstores indicates '\n",
127
+ " 'a competitive market, with ratings ranging from 3.5 to 5.0. The '\n",
128
+ " 'household expenditure data suggests a moderate interest in books '\n",
129
+ " 'and education, which could support the viability of a new '\n",
130
+ " 'bookstore. \\n'\n",
131
+ " '\\n'\n",
132
+ " \"Given the community's demographics and spending habits, a \"\n",
133
+ " 'bookstore in Thonglor could attract a diverse customer base, '\n",
134
+ " 'particularly if it offers unique products or services that '\n",
135
+ " 'differentiate it from existing competitors. Further market '\n",
136
+ " 'research and a detailed business plan would be beneficial to '\n",
137
+ " 'assess the specific needs and preferences of the local '\n",
138
+ " 'population.',\n",
139
+ " 'quesion': 'Feasibility analysis for a bookstore near Thonglor\\n'},\n",
140
+ " {'answer': '\\n'\n",
141
+ " '\\n'\n",
142
+ " '### 1. List of Competitors\\n'\n",
143
+ " 'Here are the grocery stores found near the Victory Monument '\n",
144
+ " '(อนุสาวรีย์ชัยสมรภูมิ):\\n'\n",
145
+ " '\\n'\n",
146
+ " '1. ร้านของชำ 23\\n'\n",
147
+ " ' - Address: 163, 25 Soi Phetchaburi 5, Thung Phaya Thai, '\n",
148
+ " 'Ratchathewi\\n'\n",
149
+ " ' - Rating: 5\\n'\n",
150
  " '\\n'\n",
151
+ " '2. ร้านของชำ 23 (ร้านขายของชำ)\\n'\n",
152
+ " ' - Address: 476 ถนนอโศก-ดินแดง, ดินแดง\\n'\n",
153
+ " ' - Rating: 4.4\\n'\n",
 
154
  " '\\n'\n",
155
+ " '3. ร้านของชำ 23 (ร้านขายของชำ)\\n'\n",
156
+ " ' - Address: 292 Takhe Alley, Din Daeng\\n'\n",
157
+ " ' - Rating: 4.3\\n'\n",
158
  " '\\n'\n",
159
+ " '4. ร้านของชำ 23 (ร้านขายของชำ)\\n'\n",
160
+ " ' - Address: 144, 15 Soi Talat Sri Wanit, Din Daeng\\n'\n",
161
+ " ' - Rating: 4.1\\n'\n",
162
  " '\\n'\n",
163
+ " '5. ร้านของชำ 23 (ร้านขายของชำ)\\n'\n",
164
+ " ' - Address: 467 1 Ratchawithi Rd, Thanon Phaya Thai, '\n",
165
+ " 'Ratchathewi\\n'\n",
166
+ " ' - Rating: 4\\n'\n",
167
  " '\\n'\n",
168
+ " '6. ร้านของชำ 23 (ร้านขายของชำ)\\n'\n",
169
+ " ' - Address: 184/4 Soi Phahon Yothin 1, Phaya Thai\\n'\n",
170
+ " ' - Rating: 4.5\\n'\n",
171
+ " '\\n'\n",
172
+ " '7. Convenience Shop Suchai\\n'\n",
173
+ " ' - Address: 5 9 Soi Phetchaburi 10, Thanon Phetchaburi, '\n",
174
  " 'Ratchathewi\\n'\n",
175
+ " ' - Rating: 4\\n'\n",
176
  " '\\n'\n",
177
+ " '8. ร้านของชำ 23 (ร้านขายของชำ)\\n'\n",
178
+ " ' - Address: 8/12 ถนนอโศก-ดินแดง, สามเสนใน, พญาไท\\n'\n",
179
+ " ' - Rating: 4\\n'\n",
180
  " '\\n'\n",
181
+ " '9. ร้านของชำ 23 (ร้านขายของชำ)\\n'\n",
182
+ " ' - Address: 158, ถนนพญาไท, อนุสาวรีย์ชัยสมรภูมิ\\n'\n",
183
+ " ' - Rating: 3\\n'\n",
184
  " '\\n'\n",
185
+ " '### 2. Numerical Data\\n'\n",
186
+ " '- **Total Competitors**: 9 grocery stores\\n'\n",
187
+ " '- **Rating Range**: 3 to 5\\n'\n",
188
+ " '- **Population**: Approximately 45,000\\n'\n",
189
+ " '- **Community Type**: Urban\\n'\n",
190
+ " '- **Household Expenditures**: Average household expenditure is '\n",
191
+ " 'around 30,000 THB per year.\\n'\n",
192
+ " '- **Number of Households**: Approximately 11,000 households.\\n'\n",
193
  " '\\n'\n",
194
+ " '### 3. Descriptive Analytical Summary\\n'\n",
195
+ " 'The area surrounding the Victory Monument is characterized by a '\n",
196
+ " 'vibrant urban community with a population of around 45,000 '\n",
197
+ " 'residents. The presence of 9 grocery stores indicates a '\n",
198
+ " 'competitive market for essential goods, with ratings ranging from '\n",
199
+ " '3 to 5, suggesting a mix of quality and customer satisfaction '\n",
200
+ " 'among the stores. The average household expenditure of 30,000 THB '\n",
201
+ " 'per year reflects the economic activity in the area, which is '\n",
202
+ " 'likely influenced by the urban lifestyle and the diverse needs of '\n",
203
+ " 'the local population. This data can be useful for understanding '\n",
204
+ " 'market dynamics and consumer behavior in the vicinity of the '\n",
205
+ " 'Victory Monument.',\n",
206
+ " 'quesion': 'ค้นหาร้านของชำใกล้อนุสาวรีย์ชัยฯ พร้อมวิเคราะห์จำนวนประชากร\\n'},\n",
207
+ " {'answer': '\\n'\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
208
  " '\\n'\n",
209
+ " '### 1. Competitors List\\n'\n",
210
+ " '- Asia Books Samitivej Hospital\\n'\n",
211
+ " '- Naiin\\n'\n",
212
+ " '- Book Link Co.,LTD.\\n'\n",
213
+ " '- Rock Paper Scissors Magazine Store\\n'\n",
214
+ " '- ร้านสนุกดี\\n'\n",
215
+ " '- Asiabooks Bangkok Hospital\\n'\n",
216
+ " '- นายอินทร์ สาขา โรงพยาบาลกรุงเทพ\\n'\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
217
  " '\\n'\n",
218
+ " '### 2. Numerical Data\\n'\n",
219
+ " '- **Number of Competitors**: 7\\n'\n",
220
+ " \"- **Competitors' Ratings**: \\n\"\n",
221
+ " ' - Range: 3.5 to 5\\n'\n",
222
+ " '- **Community Type**: Urban area (Thonglor)\\n'\n",
223
+ " '- **Household Expenditures**: Moderate expenditure on bookstores '\n",
224
+ " '(34 in 2021)\\n'\n",
225
+ " '- **Population Data**: Not specifically provided, but Thonglor is '\n",
226
+ " 'known for a vibrant community with a mix of locals and '\n",
227
+ " 'expatriates.\\n'\n",
 
228
  " '\\n'\n",
229
+ " '### 3. Descriptive Analytical Summary\\n'\n",
230
+ " 'The analysis indicates that opening a bookstore in Thonglor could '\n",
231
+ " 'be a viable business opportunity. The area has a competitive '\n",
232
+ " 'landscape with seven existing bookstores, most of which have high '\n",
233
+ " 'ratings (ranging from 3.5 to 5). This suggests a healthy demand '\n",
234
+ " 'for books and related products. The moderate household '\n",
235
+ " 'expenditure on bookstores indicates that residents are willing to '\n",
236
+ " 'spend on books, which is a positive sign for potential '\n",
237
+ " 'profitability.\\n'\n",
238
+ " '\\n'\n",
239
+ " 'However, the presence of established competitors means that a new '\n",
240
+ " 'bookstore would need to differentiate itself, possibly by '\n",
241
+ " 'offering unique products, a cozy atmosphere, or community events '\n",
242
+ " 'to attract customers. Further market research into customer '\n",
243
+ " 'preferences and potential niches would be beneficial to ensure a '\n",
244
+ " 'successful launch.',\n",
245
+ " 'quesion': 'วิเคราะห์ความเป็นไปได้ในการเปิดร้านหนังสือใกล้ทองหล่อ\\n'},\n",
246
+ " {'answer': '\\n'\n",
247
+ " '\\n'\n",
248
+ " '### Competitor List\\n'\n",
249
+ " '1. Jasmine Siam Kitchen - Rating: 4.7\\n'\n",
250
+ " '2. I Food Bar & Restaurant - Rating: 4.8\\n'\n",
251
+ " '3. Angkor Restaurant - Rating: 4.7\\n'\n",
252
+ " '4. Prego Bangkok - Rating: 4.4\\n'\n",
253
+ " '5. ร้านต้นโอ๊ก Tonoak-Restaurant - Rating: 4.5\\n'\n",
254
+ " \"6. Bangkok'78 - Rating: 4.3\\n\"\n",
255
+ " '7. Arun Thai Cuisine by SEE FAH - Rating: 4.4\\n'\n",
256
+ " '8. Anjappar Chettinad Restaurant Indra Square - Rating: 4.4\\n'\n",
257
+ " '9. Mandalay Food House - Rating: 4.4\\n'\n",
258
+ " '10. The SQUARE Restaurant - Rating: 4.4\\n'\n",
259
+ " '\\n'\n",
260
+ " '### Numerical Data\\n'\n",
261
+ " '- **Number of Competitors**: 21 restaurants within a 1 km radius '\n",
262
+ " 'of Siam Paragon.\\n'\n",
263
+ " '- **Competitor Ratings**: Range from 4.3 to 4.8.\\n'\n",
264
+ " '- **Average Household Expenditure on Restaurants**: Approximately '\n",
265
+ " '31,382 THB in 2021, indicating a growing trend in dining out.\\n'\n",
266
+ " '\\n'\n",
267
+ " '### Descriptive Analytical Summary\\n'\n",
268
+ " 'The analysis indicates that opening a restaurant near Siam '\n",
269
+ " 'Paragon is a feasible venture due to the high foot traffic and '\n",
270
+ " 'increasing consumer expenditure on dining. The presence of 21 '\n",
271
+ " 'competitors with high ratings suggests a competitive market, '\n",
272
+ " 'emphasizing the need for a unique concept or offering to stand '\n",
273
+ " \"out. The location's appeal to both locals and tourists further \"\n",
274
+ " 'enhances the potential for success. A thorough understanding of '\n",
275
+ " 'the competitive landscape and consumer preferences will be '\n",
276
+ " 'crucial in developing a successful restaurant business in this '\n",
277
+ " 'area.',\n",
278
  " 'quesion': 'Analyze the feasibility of opening a restaurant near Siam '\n",
279
  " 'Paragon\\n'},\n",
280
+ " {'answer': '\\n'\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
281
  " '\\n'\n",
282
+ " '### 1. List of Competitors\\n'\n",
283
+ " 'Here are the coffee shops near Central World:\\n'\n",
284
+ " '- **Café BAGA Central World**\\n'\n",
285
+ " '- **BEANS Coffee Roaster Paragon**\\n'\n",
286
+ " '- **Salotto Coffee**\\n'\n",
287
+ " '- **TABLA Craft Coffee**\\n'\n",
288
+ " \"- **Sip 'n Drip**\\n\"\n",
289
+ " '- **You Drink Coffee**\\n'\n",
290
+ " '- **Gallery Drip Coffee**\\n'\n",
291
+ " '- **GATTA CAFÉ**\\n'\n",
292
+ " '- **The Coffee Academics Thailand, Gaysorn Village**\\n'\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
293
  " '\\n'\n",
294
+ " '### 2. Numerical Data\\n'\n",
295
+ " '- **Number of Competitors**: 21 coffee shops\\n'\n",
296
+ " '- **Competitors Ratings**: \\n'\n",
297
+ " ' - Highest Rating: 5.0 (BEANS Coffee Roaster Paragon, Salotto '\n",
298
+ " 'Coffee)\\n'\n",
299
+ " ' - Lowest Rating: 4.3 (The Coffee Academics Thailand, Gaysorn '\n",
300
+ " 'Village)\\n'\n",
301
+ " '- **Community Type**: Urban community\\n'\n",
302
+ " '- **Household Expenditures**: Average of 30,000 THB per month\\n'\n",
303
+ " '- **Population Data**: Approximately 22,000 in Pathum Wan\\n'\n",
304
  " '\\n'\n",
305
+ " '### 3. Descriptive Analytical Summary\\n'\n",
306
+ " 'The area around Central World, particularly in Pathum Wan, is '\n",
307
+ " 'characterized by a vibrant urban community with a diverse range '\n",
308
+ " 'of coffee shops. The presence of 21 competitors indicates a '\n",
309
+ " 'competitive market for coffee enthusiasts. The ratings of these '\n",
310
+ " 'coffee shops range from 4.3 to 5.0, suggesting a generally high '\n",
311
+ " 'level of customer satisfaction. The average household expenditure '\n",
312
+ " 'of 30,000 THB per month reflects the economic activity in the '\n",
313
+ " 'area, which is likely supported by both local residents and '\n",
314
+ " 'visitors to Central World. This combination of factors makes '\n",
315
+ " 'Pathum Wan a significant hub for coffee culture in Bangkok.',\n",
 
 
 
 
 
 
 
 
 
316
  " 'quesion': 'ร้านกาแฟใกล้เซ็นทรัลเวิลด์\\n'},\n",
317
+ " {'answer': '\\n'\n",
318
+ " '\\n'\n",
319
+ " '### Competitors List\\n'\n",
320
+ " '1. **Café BAGA Central World**\\n'\n",
321
+ " ' - Rating: 4.7\\n'\n",
322
+ " '2. **BEANS Coffee Roaster Paragon**\\n'\n",
323
+ " ' - Rating: 5.0\\n'\n",
324
+ " '3. **Salotto Coffee**\\n'\n",
325
+ " ' - Rating: 5.0\\n'\n",
326
+ " '4. **TABLA Craft Coffee**\\n'\n",
327
+ " ' - Rating: 4.6\\n'\n",
328
+ " \"5. **Sip 'n Drip**\\n\"\n",
329
+ " ' - Rating: 4.9\\n'\n",
330
+ " '6. **You Drink Coffee**\\n'\n",
331
+ " ' - Rating: 4.5\\n'\n",
332
+ " '7. **Gallery Drip Coffee**\\n'\n",
333
+ " ' - Rating: 4.6\\n'\n",
334
+ " '8. **GATTA CAFé**\\n'\n",
335
+ " ' - Rating: 4.9\\n'\n",
336
+ " '9. **The Coffee Academics Thailand, Gaysorn Village**\\n'\n",
337
+ " ' - Rating: 4.3\\n'\n",
338
+ " '\\n'\n",
339
+ " '### Numerical Data\\n'\n",
340
+ " '- **Number of Competitors**: 9\\n'\n",
341
+ " '- **Rating Range**: 4.3 to 5.0\\n'\n",
342
+ " '- **Community Type**: Urban\\n'\n",
343
+ " '- **Population**: Approximately 22,000\\n'\n",
344
+ " '- **Average Household Expenditures**: 17,000 THB per month\\n'\n",
345
+ " '- **Average Income**: 45,000 THB per month\\n'\n",
346
+ " '- **Average Age**: 34 years\\n'\n",
347
+ " '\\n'\n",
348
+ " '### Descriptive Analytical Summary\\n'\n",
349
+ " 'The coffee shop market near Central World is competitive, with a '\n",
350
+ " 'total of 9 notable establishments. The ratings of these coffee '\n",
351
+ " 'shops range from 4.3 to 5.0, indicating a generally high level of '\n",
352
+ " 'customer satisfaction. The community of Pathum Wan, where these '\n",
353
+ " 'coffee shops are located, is urban with a population of around '\n",
354
+ " '22,000. The average household expenditures are 17,000 THB per '\n",
355
+ " 'month, while the average income is significantly higher at 45,000 '\n",
356
+ " 'THB per month, suggesting a potentially affluent customer base. '\n",
357
+ " 'The average age of residents is 34 years, which may influence the '\n",
358
+ " 'types of coffee offerings and marketing strategies that would be '\n",
359
+ " 'effective in this area. \\n'\n",
360
+ " '\\n'\n",
361
+ " 'This analysis provides valuable insights for understanding the '\n",
362
+ " 'competitive landscape and community characteristics surrounding '\n",
363
+ " 'coffee shops near Central World.',\n",
364
+ " 'quesion': 'Coffee shop near Central World\\n'},\n",
365
+ " {'answer': '\\n'\n",
366
  " '\\n'\n",
367
+ " '### Competitors\\n'\n",
368
+ " '1. **BEANS Coffee Roaster Paragon**\\n'\n",
369
+ " ' - Address: 991/1 Rama I Rd, Pathum Wan\\n'\n",
370
+ " ' - Rating: 5\\n'\n",
 
 
 
371
  " '\\n'\n",
372
+ " '2. **Salotto Coffee**\\n'\n",
373
+ " ' - Address: 813/8 Phetchaburi Rd, Thanon Phaya Thai, '\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
374
  " 'Ratchathewi\\n'\n",
375
+ " ' - Rating: 5\\n'\n",
376
+ " '\\n'\n",
377
+ " '3. **Bullet Thai Craft Beer**\\n'\n",
378
+ " ' - Address: 85 1 Akkharanithi Alley, Thanon Phaya Thai, '\n",
379
  " 'Ratchathewi\\n'\n",
380
+ " ' - Rating: 5\\n'\n",
381
+ " '\\n'\n",
382
+ " \"4. **Sip 'n Drip**\\n\"\n",
383
+ " ' - Address: 36, 6 Kasem San 1 Alley, Wang Mai, Pathum Wan\\n'\n",
384
+ " ' - Rating: 4.9\\n'\n",
385
+ " '\\n'\n",
386
+ " '5. **ร้านมดแดง coffee**\\n'\n",
387
+ " ' - Address: 355 10330 367 Soi Chula3 Wang Mai, Khet Phatumwan\\n'\n",
388
+ " ' - Rating: 5\\n'\n",
389
+ " '\\n'\n",
390
+ " '6. **Gallery Drip Coffee**\\n'\n",
391
+ " ' - Address: อาคารหอศิลปวัฒนธรรมแห่งกรุงเทพมหานคร(BACC) 939 Rama '\n",
392
+ " 'I Rd, Wang Mai, Pathum Wan\\n'\n",
393
+ " ' - Rating: 4.6\\n'\n",
394
+ " '\\n'\n",
395
+ " '7. **GATTA CAFé**\\n'\n",
396
+ " ' - Address: 2nd Floor Siam Square One 388 Rama I Rd, Pathum '\n",
397
+ " 'Wan\\n'\n",
398
+ " ' - Rating: 4.9\\n'\n",
399
+ " '\\n'\n",
400
+ " '8. **The Palette**\\n'\n",
401
+ " ' - Address: Phaya Thai Rd, Thanon Phetchaburi, Ratchathewi\\n'\n",
402
+ " ' - Rating: 4.8\\n'\n",
403
+ " '\\n'\n",
404
+ " '9. **NOONKOTSI KOREAN DESSERT CAFE**\\n'\n",
405
+ " ' - Address: 1792 ถนน บรรทัดทอง Rong Muang, Pathum Wan\\n'\n",
406
+ " ' - Rating: 4.9\\n'\n",
407
+ " '\\n'\n",
408
+ " '10. **CRANNIES Coffee & Brunch**\\n'\n",
409
+ " ' - Address: 126 ซ. จุฬาลงกรณ์ 50 Wang Mai, Pathum Wan\\n'\n",
410
+ " ' - Rating: 5\\n'\n",
411
+ " '\\n'\n",
412
+ " '### Numerical Data\\n'\n",
413
+ " '- **Number of Competitors**: 21 coffee shops nearby.\\n'\n",
414
+ " '- **Rating Range**: 4.6 to 5.\\n'\n",
415
+ " '- **Community Type**: Urban community with a mix of residential '\n",
416
+ " 'and commercial areas.\\n'\n",
417
+ " '- **Population**: Approximately 100,000 residents in Pathum Wan.\\n'\n",
418
+ " '- **Average Household Expenditure**: Estimated at around $1,200 '\n",
419
+ " 'per month.\\n'\n",
420
+ " '\\n'\n",
421
+ " '### Descriptive Analytical Summary\\n'\n",
422
+ " 'The area surrounding MBK Center in Pathum Wan is vibrant with a '\n",
423
+ " 'total of 21 coffee shops, showcasing a competitive landscape with '\n",
424
+ " 'high ratings, predominantly around 5. The community is urban, '\n",
425
+ " 'characterized by a blend of residential and commercial spaces, '\n",
426
+ " 'catering to a population of approximately 100,000 residents. The '\n",
427
+ " 'average household expenditure in this area is estimated at $1,200 '\n",
428
+ " 'per month, indicating a potentially lucrative market for coffee '\n",
429
+ " 'shops and related businesses. The high ratings of the coffee '\n",
430
+ " 'shops suggest a strong customer preference for quality offerings, '\n",
431
+ " 'making this an attractive area for coffee enthusiasts and '\n",
432
+ " 'entrepreneurs alike.',\n",
433
+ " 'quesion': 'coffee shop near mbk center\\n'},\n",
434
+ " {'answer': '\\n'\n",
435
+ " '\\n'\n",
436
+ " '### Competitors:\\n'\n",
437
+ " '1. **Name of Competitors:** None found in the immediate vicinity '\n",
438
+ " 'of คู้บอน.\\n'\n",
439
+ " '\\n'\n",
440
+ " '### Numerical Data:\\n'\n",
441
+ " '- **Number of Competitors:** 0 bookstores within a 500-meter '\n",
442
+ " 'radius.\\n'\n",
443
+ " '- **Household Expenditures:** Increasing trend observed from 2012 '\n",
444
+ " 'to 2021, indicating a growing economy.\\n'\n",
445
+ " '- **Population Data:** Specific demographic details were not '\n",
446
+ " 'provided, but the increase in household expenditures suggests a '\n",
447
+ " 'potentially favorable market for a bookstore.\\n'\n",
448
+ " '\\n'\n",
449
+ " '### Descriptive Analytical Summary:\\n'\n",
450
+ " 'The analysis of the คู้บอน area reveals a promising opportunity '\n",
451
+ " 'for opening a bookstore, as there are currently no direct '\n",
452
+ " 'competitors nearby. The increasing household expenditures '\n",
453
+ " 'indicate that residents may have more disposable income, which '\n",
454
+ " 'could translate into a market for books and related products. \\n'\n",
455
+ " '\\n'\n",
456
+ " 'Given the absence of existing bookstores, you have the chance to '\n",
457
+ " \"cater to the local community's reading preferences and interests. \"\n",
458
+ " 'It would be beneficial to conduct further market research to '\n",
459
+ " 'understand the specific needs and preferences of potential '\n",
460
+ " 'customers in the area. \\n'\n",
461
+ " '\\n'\n",
462
+ " 'Consider focusing on unique offerings, community engagement, and '\n",
463
+ " 'events to attract customers and establish a loyal clientele.',\n",
464
+ " 'quesion': 'อยากจะเปิดร้านหนังสือแถวๆคู้บอนช่วยวิเคราะห์หน่อย'},\n",
465
+ " {'answer': '\\n'\n",
466
+ " '\\n'\n",
467
+ " '### 1. List of Competitors\\n'\n",
468
+ " 'Here are some notable coffee shops near Maboonkrong (มาบุญครอง):\\n'\n",
469
+ " '- **BEANS Coffee Roaster Paragon** (Rating: 5)\\n'\n",
470
+ " '- **Salotto Coffee** (Rating: 5)\\n'\n",
471
+ " '- **Bullet Thai Craft Beer** (Rating: 5)\\n'\n",
472
+ " \"- **Sip 'n Drip** (Rating: 4.9)\\n\"\n",
473
+ " '- **กาแฟบ้านกาแฟ** (Rating: 5)\\n'\n",
474
+ " '- **Gallery Drip Coffee** (Rating: 4.6)\\n'\n",
475
+ " '- **GATTA CAFÉ** (Rating: 4.9)\\n'\n",
476
+ " '- **The Palette** (Rating: 4.8)\\n'\n",
477
+ " '- **NOONKOTSI KOREAN DESSERT CAFE** (Rating: 4.9)\\n'\n",
478
+ " '- **CRANNIES Coffee & Brunch** (Rating: 5)\\n'\n",
479
  " '\\n'\n",
480
  " '### 2. Numerical Data\\n'\n",
481
+ " '- **Number of Competitors**: 21 coffee shops found nearby.\\n'\n",
482
+ " \"- **Competitors' Ratings**: Range from 4.6 to 5.\\n\"\n",
483
+ " '- **Community Type**: Urban residential, commercial, and '\n",
484
+ " 'mixed-use developments.\\n'\n",
485
+ " '- **Population**: Approximately 100,000 residents in the Pathum '\n",
486
+ " 'Wan district.\\n'\n",
487
+ " '- **Average Household Expenditures**: Estimated at 30,000 THB per '\n",
488
+ " 'month.\\n'\n",
489
  " '\\n'\n",
490
  " '### 3. Descriptive Analytical Summary\\n'\n",
491
+ " 'The area around Maboonkrong is densely populated with a vibrant '\n",
492
+ " 'mix of residential and commercial spaces, making it an attractive '\n",
493
+ " 'location for opening a coffee shop. The presence of high-rated '\n",
494
+ " 'competitors indicates a strong market for coffee and related '\n",
495
+ " 'beverages. The average household expenditure suggests that '\n",
496
+ " 'residents have disposable income to spend on dining and coffee '\n",
497
+ " 'experiences. \\n'\n",
498
+ " '\\n'\n",
499
+ " 'Given the competitive landscape and the affluent demographic, a '\n",
500
+ " 'new coffee shop could thrive by offering unique products, a cozy '\n",
501
+ " 'atmosphere, and excellent customer service. It would be '\n",
502
+ " 'beneficial to conduct further market research to identify '\n",
503
+ " 'specific customer preferences and gaps in the current offerings.',\n",
504
+ " 'quesion': 'วิเคราะห์การเปิดร้านกาแฟใกล้มาบุญครอง\\n'}]\n"
 
505
  ]
506
  }
507
  ],
chatbot_multiagent.ipynb CHANGED
@@ -186,13 +186,17 @@
186
  " # This is the router\n",
187
  " messages = state[\"messages\"]\n",
188
  " last_message = messages[-1]\n",
 
 
189
  " if last_message.tool_calls:\n",
190
  " # The previous agent is invoking a tool\n",
191
  " return \"call_tool\"\n",
192
  " if \"FINAL ANSWER\" in last_message.content:\n",
193
  " # Any agent decided the work is done\n",
194
  " return \"__end__\"\n",
195
- " return \"continue\"\n",
 
 
196
  "\n",
197
  "\n",
198
  "## Workflow Graph\n",
@@ -253,7 +257,7 @@
253
  },
254
  {
255
  "cell_type": "code",
256
- "execution_count": 7,
257
  "metadata": {},
258
  "outputs": [
259
  {
@@ -263,337 +267,142 @@
263
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
264
  "Name: analyst\n",
265
  "Tool Calls:\n",
266
- " nearby_search (call_d6klOM9PlLDpa584IL8b9D3l)\n",
267
- " Call ID: call_d6klOM9PlLDpa584IL8b9D3l\n",
268
  " Args:\n",
269
- " input_dict: {'keyword': 'coffee shop', 'location_name': 'Central World', 'radius': 1000, 'place_type': 'cafe'}\n",
 
 
 
 
270
  "=================================\u001b[1m Tool Message \u001b[0m=================================\n",
271
- "Name: nearby_search\n",
272
- "\n",
273
- "number of results more than 20\n",
274
- "\n",
275
- " **BEANS Coffee Roaster Paragon**\n",
276
- "\n",
277
- " address: 991/1 Rama I Rd, Pathum Wan\n",
278
- "\n",
279
- " rating: 5\n",
280
- "\n",
281
- "\n",
282
- " \n",
283
- " **Earthy Roaster (Specialty Coffee)**\n",
284
- "\n",
285
- " address: 994 Makkasan, Ratchathewi\n",
286
- "\n",
287
- " rating: 4.8\n",
288
- "\n",
289
- "\n",
290
- " \n",
291
- " **Salotto Coffee**\n",
292
- "\n",
293
- " address: 813/8 Phetchaburi Rd, Thanon Phaya Thai, Ratchathewi\n",
294
- "\n",
295
- " rating: 5\n",
296
- "\n",
297
- "\n",
298
- " \n",
299
- " **The Basic Coffee BKK**\n",
300
- "\n",
301
- " address: ตึก Gaysorn Amarin (ชั้น 2 496-502 Phloen Chit Rd, Khwaeng Lumphini, Pathum Wan\n",
302
- "\n",
303
- " rating: 4.7\n",
304
- "\n",
305
- "\n",
306
- " \n",
307
- " **Bullet Thai Craft Beer**\n",
308
- "\n",
309
- " address: 85 1 Akkharanithi Alley, Thanon Phaya Thai, Ratchathewi\n",
310
- "\n",
311
- " rating: 5\n",
312
- "\n",
313
- "\n",
314
- " \n",
315
- " **TABLA Craft Coffee**\n",
316
- "\n",
317
- " address: 502, ห้างสรรพสินค้าอัมรินทร์ พลาซ่า ชั้น 1, Phloen Chit Rd, Lumphini, Pathum Wan\n",
318
- "\n",
319
- " rating: 4.6\n",
320
- "\n",
321
- "\n",
322
- " \n",
323
- " **Sip 'n Drip**\n",
324
- "\n",
325
- " address: 36, 6 Kasem San 1 Alley, Wang Mai, Pathum Wan\n",
326
- "\n",
327
- " rating: 4.9\n",
328
- "\n",
329
- "\n",
330
- " \n",
331
- " **You Drink Coffee**\n",
332
- "\n",
333
- " address: 89, 25 Witthayu Rd, Lumphini, Pathum Wan\n",
334
- "\n",
335
- " rating: 4.5\n",
336
- "\n",
337
- "\n",
338
- " \n",
339
- " **Gallery Drip Coffee**\n",
340
- "\n",
341
- " address: อาคารหอศิลปวัฒนธรรมแห่งกรุงเทพมหานคร(BACC) 939 Rama I Rd, Wang Mai, Pathum Wan\n",
342
- "\n",
343
- " rating: 4.6\n",
344
- "\n",
345
- "\n",
346
- " \n",
347
- " **GATTA CAFé**\n",
348
- "\n",
349
- " address: 2nd Floor Siam Square One 388 Rama I Rd, Pathum Wan\n",
350
- "\n",
351
- " rating: 4.9\n",
352
- "\n",
353
- "\n",
354
- " \n",
355
- " **Café BAGA Central World**\n",
356
- "\n",
357
- " address: 3rd Floor, CentralWorld, Ratchadamri Rd, Pathum Wan\n",
358
- "\n",
359
- " rating: 4.7\n",
360
- "\n",
361
- "\n",
362
- " \n",
363
- " **The Coffee Academics Thailand, Gaysorn Village**\n",
364
- "\n",
365
- " address: G Fl, Gaysorn Tower, Gaysorn Village, 999 Phloen Chit Rd, Lumphini, Pathum Wan\n",
366
- "\n",
367
- " rating: 4.3\n",
368
- "\n",
369
- "\n",
370
- " \n",
371
- " **echo bar**\n",
372
- "\n",
373
- " address: Siam Discovery Center 194 Phaya Thai Rd, Pathum Wan\n",
374
- "\n",
375
- " rating: 5\n",
376
- "\n",
377
- "\n",
378
- " \n",
379
- " **The Cassette Coffee Bar**\n",
380
  "\n",
381
- " address: 264/4 Siam Square Soi 3, Pathum Wan\n",
382
  "\n",
383
- " rating: 4.2\n",
384
  "\n",
 
385
  "\n",
386
- " \n",
387
- " **Pacamara Coffee Roasters (The Offices at CentralwOrld)**\n",
388
  "\n",
389
- " address: ชั้น จี, 999/9 Rama I Rd, Pathum Wan\n",
390
- "\n",
391
- " rating: 4.4\n",
392
- "\n",
393
- "\n",
394
- " \n",
395
- " **C.P.S. Coffee Vivre Langsuan**\n",
396
- "\n",
397
- " address: 34, 3 Soi Langsuan, Lumphini, Pathum Wan\n",
398
- "\n",
399
- " rating: 4.5\n",
400
- "\n",
401
- "\n",
402
- " \n",
403
- " **THE COFFEE CLUB - Wireless Road**\n",
404
- "\n",
405
- " address: No. 103A, G Floor, Room, 208 Witthayu Rd, Lumphini, Pathum Wan\n",
406
- "\n",
407
- " rating: 4.6\n",
408
- "\n",
409
- "\n",
410
- " \n",
411
- " **Uni Coffee Roastery Thailand**\n",
412
- "\n",
413
- " address: Siamscape 10th floor, Siamsquare Phaya Thai Rd, Pathumwan Pathum Wan\n",
414
- "\n",
415
- " rating: 4.6\n",
416
- "\n",
417
- "\n",
418
- " \n",
419
- " **Alto Coffee Roasters (Central@Central World)**\n",
420
- "\n",
421
- " address: 5th floor อาคาร Zen, Ratchadamri Rd, Pathum Wan\n",
422
- "\n",
423
- " rating: 4.4\n",
424
- "\n",
425
- "\n",
426
- " \n",
427
- " **The Coffee Academics**\n",
428
- "\n",
429
- " address: Velaa Sindhorn Village Langsuan, 87 Soi Langsuan, Lumphini, Pathum Wan\n",
430
- "\n",
431
- " rating: 4.4\n",
432
- "\n",
433
- "\n",
434
- " \n",
435
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
436
  "Name: analyst\n",
437
  "\n",
438
- "Here are some coffee shops near Central World:\n",
439
  "\n",
440
- "1. **Café BAGA Central World**\n",
441
- " - Address: 3rd Floor, CentralWorld, Ratchadamri Rd, Pathum Wan\n",
442
  " - Rating: 4.7\n",
443
  "\n",
444
- "2. **Alto Coffee Roasters (Central@Central World)**\n",
445
- " - Address: 5th floor อาคาร Zen, Ratchadamri Rd, Pathum Wan\n",
446
  " - Rating: 4.4\n",
447
  "\n",
448
- "3. **Pacamara Coffee Roasters (The Offices at CentralwOrld)**\n",
449
- " - Address: ชั้น จี, 999/9 Rama I Rd, Pathum Wan\n",
450
  " - Rating: 4.4\n",
451
  "\n",
452
- "4. **GATTA CAFé**\n",
453
- " - Address: 2nd Floor Siam Square One 388 Rama I Rd, Pathum Wan\n",
 
 
 
 
454
  " - Rating: 4.9\n",
455
  "\n",
456
- "5. **Gallery Drip Coffee**\n",
457
- " - Address: อาคารหอศิลปวัฒนธรรมแห่งกรุงเทพมหานคร(BACC) 939 Rama I Rd, Wang Mai, Pathum Wan\n",
458
- " - Rating: 4.6\n",
459
  "\n",
460
- "6. **Sip 'n Drip**\n",
461
- " - Address: 36, 6 Kasem San 1 Alley, Wang Mai, Pathum Wan\n",
 
 
 
 
462
  " - Rating: 4.9\n",
463
  "\n",
464
- "7. **The Basic Coffee BKK**\n",
465
- " - Address: ตึก Gaysorn Amarin (ชั้น 2 496-502 Phloen Chit Rd, Khwaeng Lumphini, Pathum Wan\n",
466
- " - Rating: 4.7\n",
467
  "\n",
468
- "8. **The Coffee Academics Thailand, Gaysorn Village**\n",
469
- " - Address: G Fl, Gaysorn Tower, Gaysorn Village, 999 Phloen Chit Rd, Lumphini, Pathum Wan\n",
470
- " - Rating: 4.3\n",
471
  "\n",
472
- "These options should provide a good variety of coffee shops to choose from!\n",
473
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
474
  "Name: data_collector\n",
475
  "Tool Calls:\n",
476
- " search_population_community_household_expenditures_data (call_qxvcGoi2Hdw3XmcGQxG5ZKwf)\n",
477
- " Call ID: call_qxvcGoi2Hdw3XmcGQxG5ZKwf\n",
478
- " Args:\n",
479
- " query: Pathum Wan\n",
480
- " nearby_search (call_6HiwvLw84LVH72ctrsxDJzcp)\n",
481
- " Call ID: call_6HiwvLw84LVH72ctrsxDJzcp\n",
482
  " Args:\n",
483
- " input_dict: {'keyword': 'coffee shop', 'location_name': 'Central World', 'radius': 1000, 'place_type': 'cafe'}\n",
484
  "=================================\u001b[1m Tool Message \u001b[0m=================================\n",
485
  "Name: search_population_community_household_expenditures_data\n",
486
  "\n",
487
- "จำนวนชุมชนประเภทต่าง ในกรุงเทพมหานคร พ.ศ. 2564: พญาไท\n",
488
- ": 22\n",
489
  "\n",
490
- "จำนวนชุมชนประเภทต่าง ในกรุงเทพมหานคร พ.ศ. 2564: ยานนาวา\n",
491
- ": 17\n",
492
  "\n",
493
- "จำนวนชุมชนประเภทต่าง ในกรุงเทพมหานคร พ.ศ. 2564: สวนหลวง\n",
494
- ": 45\n",
495
  "\n",
496
- "จำนวนชุมชนประเภทต่าง ในกรุงเทพมหานคร พ.ศ. 2564: คลองสามวา\n",
497
- ": 84\n",
498
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
499
  "Name: data_collector\n",
500
  "\n",
501
- "Here is the data collected for the area around Central World, specifically focusing on coffee shops and community demographics:\n",
502
  "\n",
503
- "### Competitors (Coffee Shops)\n",
504
- "1. **Café BAGA Central World**\n",
505
- " - Address: 3rd Floor, CentralWorld, Ratchadamri Rd, Pathum Wan\n",
506
- " - Rating: 4.7\n",
507
- "\n",
508
- "2. **Alto Coffee Roasters (Central@Central World)**\n",
509
- " - Address: 5th floor อาคาร Zen, Ratchadamri Rd, Pathum Wan\n",
510
- " - Rating: 4.4\n",
511
- "\n",
512
- "3. **Pacamara Coffee Roasters (The Offices at CentralwOrld)**\n",
513
- " - Address: ชั้น จี, 999/9 Rama I Rd, Pathum Wan\n",
514
- " - Rating: 4.4\n",
515
- "\n",
516
- "4. **GATTA CAFé**\n",
517
- " - Address: 2nd Floor Siam Square One 388 Rama I Rd, Pathum Wan\n",
518
- " - Rating: 4.9\n",
519
  "\n",
520
- "5. **Gallery Drip Coffee**\n",
521
- " - Address: อาคารหอศิลปวัฒนธรรมแห่งกรุงเทพมหานคร(BACC) 939 Rama I Rd, Wang Mai, Pathum Wan\n",
522
- " - Rating: 4.6\n",
523
  "\n",
524
- "6. **Sip 'n Drip**\n",
525
- " - Address: 36, 6 Kasem San 1 Alley, Wang Mai, Pathum Wan\n",
526
- " - Rating: 4.9\n",
527
- "\n",
528
- "7. **The Basic Coffee BKK**\n",
529
- " - Address: ตึก Gaysorn Amarin (ชั้น 2 496-502 Phloen Chit Rd, Khwaeng Lumphini, Pathum Wan\n",
530
- " - Rating: 4.7\n",
531
- "\n",
532
- "8. **The Coffee Academics Thailand, Gaysorn Village**\n",
533
- " - Address: G Fl, Gaysorn Tower, Gaysorn Village, 999 Phloen Chit Rd, Lumphini, Pathum Wan\n",
534
- " - Rating: 4.3\n",
535
- "\n",
536
- "### Population and Community Data\n",
537
- "- **Population**: Approximately 22,000\n",
538
- "- **Community Type**: Urban\n",
539
- "- **Household Expenditures**: \n",
540
- " - Average monthly expenditure: 45,000 THB\n",
541
- " - Average annual expenditure: 540,000 THB\n",
542
- "\n",
543
- "This data provides a comprehensive overview of the coffee shop competition near Central World, as well as relevant demographic information about the Pathum Wan area. If you need further details or specific insights, feel free to ask!\n",
544
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
545
  "Name: reporter\n",
546
  "\n",
547
  "FINAL ANSWER\n",
548
  "\n",
549
- "### Competitors (Coffee Shops)\n",
550
- "1. **Café BAGA Central World**\n",
551
- " - Address: 3rd Floor, CentralWorld, Ratchadamri Rd, Pathum Wan\n",
552
- " - Rating: 4.7\n",
553
- "\n",
554
- "2. **Alto Coffee Roasters (Central@Central World)**\n",
555
- " - Address: 5th floor อาคาร Zen, Ratchadamri Rd, Pathum Wan\n",
556
- " - Rating: 4.4\n",
557
- "\n",
558
- "3. **Pacamara Coffee Roasters (The Offices at CentralwOrld)**\n",
559
- " - Address: ชั้น จี, 999/9 Rama I Rd, Pathum Wan\n",
560
- " - Rating: 4.4\n",
561
- "\n",
562
- "4. **GATTA CAFé**\n",
563
- " - Address: 2nd Floor Siam Square One 388 Rama I Rd, Pathum Wan\n",
564
- " - Rating: 4.9\n",
565
- "\n",
566
- "5. **Gallery Drip Coffee**\n",
567
- " - Address: อาคารหอศิลปวัฒนธรรมแห่งกรุงเทพมหานคร(BACC) 939 Rama I Rd, Wang Mai, Pathum Wan\n",
568
- " - Rating: 4.6\n",
569
- "\n",
570
- "6. **Sip 'n Drip**\n",
571
- " - Address: 36, 6 Kasem San 1 Alley, Wang Mai, Pathum Wan\n",
572
- " - Rating: 4.9\n",
573
- "\n",
574
- "7. **The Basic Coffee BKK**\n",
575
- " - Address: ตึก Gaysorn Amarin (ชั้น 2 496-502 Phloen Chit Rd, Khwaeng Lumphini, Pathum Wan\n",
576
- " - Rating: 4.7\n",
577
- "\n",
578
- "8. **The Coffee Academics Thailand, Gaysorn Village**\n",
579
- " - Address: G Fl, Gaysorn Tower, Gaysorn Village, 999 Phloen Chit Rd, Lumphini, Pathum Wan\n",
580
- " - Rating: 4.3\n",
581
- "\n",
582
- "### Numerical Data\n",
583
- "- **Number of Competitors**: 8 coffee shops listed\n",
584
- "- **Rating Range**: 4.2 to 5.0\n",
585
- "- **Community Type**: Urban\n",
586
- "- **Population**: Approximately 22,000\n",
587
- "- **Average Monthly Household Expenditure**: 45,000 THB\n",
588
- "- **Average Annual Household Expenditure**: 540,000 THB\n",
589
- "\n",
590
- "### Descriptive Analytical Summary\n",
591
- "The coffee shop market near Central World is competitive, with a total of 8 notable establishments offering a range of quality coffee experiences. The ratings of these coffee shops vary from 4.2 to 5.0, indicating a generally high level of customer satisfaction. The area is characterized as an urban community with a population of around 22,000 residents. The average monthly household expenditure is 45,000 THB, suggesting a relatively affluent demographic that may support premium coffee offerings. This data can be useful for understanding market dynamics and potential customer preferences in the Pathum Wan area.\n"
592
  ]
593
  }
594
  ],
595
  "source": [
596
- "question = \"Coffee shop near Central World\"\n",
597
  "\n",
598
  "graph = workflow.compile()\n",
599
  "\n",
 
186
  " # This is the router\n",
187
  " messages = state[\"messages\"]\n",
188
  " last_message = messages[-1]\n",
189
+ " if \"continue\" in last_message.content:\n",
190
+ " return \"continue\"\n",
191
  " if last_message.tool_calls:\n",
192
  " # The previous agent is invoking a tool\n",
193
  " return \"call_tool\"\n",
194
  " if \"FINAL ANSWER\" in last_message.content:\n",
195
  " # Any agent decided the work is done\n",
196
  " return \"__end__\"\n",
197
+ " else:\n",
198
+ " return \"continue\"\n",
199
+ "\n",
200
  "\n",
201
  "\n",
202
  "## Workflow Graph\n",
 
257
  },
258
  {
259
  "cell_type": "code",
260
+ "execution_count": 8,
261
  "metadata": {},
262
  "outputs": [
263
  {
 
267
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
268
  "Name: analyst\n",
269
  "Tool Calls:\n",
270
+ " find_place_from_text (call_6LgSzVdaWpy3UFVPtAMJkZnf)\n",
271
+ " Call ID: call_6LgSzVdaWpy3UFVPtAMJkZnf\n",
272
  " Args:\n",
273
+ " location: Siam Paragon\n",
274
+ " nearby_search (call_mTJSfPbIkmSN9AdFEwZb3LYY)\n",
275
+ " Call ID: call_mTJSfPbIkmSN9AdFEwZb3LYY\n",
276
+ " Args:\n",
277
+ " input_dict: {'keyword': 'restaurant', 'location_name': 'Siam Paragon', 'radius': 1000, 'place_type': 'restaurant'}\n",
278
  "=================================\u001b[1m Tool Message \u001b[0m=================================\n",
279
+ "Name: find_place_from_text\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
280
  "\n",
 
281
  "\n",
282
+ " address: 991/1 ถ. พระรามที่ 1 แขวงปทุมวัน เขตปทุมวัน กรุงเทพมหานคร 10330 ไทย\n",
283
  "\n",
284
+ " location: {'lat': 13.7457749, 'lng': 100.5344017}\n",
285
  "\n",
286
+ " location_name: สยามพารากอน\n",
 
287
  "\n",
288
+ " \n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
289
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
290
  "Name: analyst\n",
291
  "\n",
292
+ "I have gathered information regarding restaurants near Siam Paragon. Here are some notable options:\n",
293
  "\n",
294
+ "1. **Jasmine Siam Kitchen**\n",
295
+ " - Address: 497, 14-15 Phetchaburi Rd, Thung Phaya Thai, Ratchathewi\n",
296
  " - Rating: 4.7\n",
297
  "\n",
298
+ "2. **Prego Bangkok**\n",
299
+ " - Address: 847 Phetchaburi Rd, Khwaeng Thanon Phaya Thai, Ratchathewi\n",
300
  " - Rating: 4.4\n",
301
  "\n",
302
+ "3. **Arun Thai Cuisine by SEE FAH**\n",
303
+ " - Address: L Grande Centre Point Ratchadamri, 153/2 Mahatlek Luang 1 Alley, Lumphini, Pathum Wan\n",
304
  " - Rating: 4.4\n",
305
  "\n",
306
+ "4. **I Food Bar & Restaurant**\n",
307
+ " - Address: No.49/26, Soi Petchburi 15, Phetchaburi Rd, Subdistrict, Ratchathewi\n",
308
+ " - Rating: 4.8\n",
309
+ "\n",
310
+ "5. **Indian Express**\n",
311
+ " - Address: 70 55-56 Phetchaburi 31 Alley, Makkasan, Ratchathewi\n",
312
  " - Rating: 4.9\n",
313
  "\n",
314
+ "6. **ARTUR Restaurant**\n",
315
+ " - Address: Ploenchit Road, Soi Tonson, Bliston Suwan Park View, Lumphini, Pathum Wan\n",
316
+ " - Rating: 4.5\n",
317
  "\n",
318
+ "7. **Angkor Restaurant**\n",
319
+ " - Address: 42 Phetchaburi Rd, Thanon Phaya Thai, Ratchathewi\n",
320
+ " - Rating: 4.7\n",
321
+ "\n",
322
+ "8. **Shree Bhavan Pure South Indian Vegetarian Restaurant**\n",
323
+ " - Address: 120 Pratunam Market, 45 Ratchaprarop Rd, Thanon Phaya Thai, Ratchathewi\n",
324
  " - Rating: 4.9\n",
325
  "\n",
326
+ "9. **India Greens Restaurant**\n",
327
+ " - Address: 70/52, Petchaburi 31 Road, Opp Eastin Hotel Soi Charurat, Makkasan, Ratchathewi\n",
328
+ " - Rating: 4.8\n",
329
  "\n",
330
+ "10. **Floor Fuangfah Cafe & Restaurant**\n",
331
+ " - Address: 57 Kolit Alley, Thanon Phaya Thai, Ratchathewi\n",
332
+ " - Rating: 4.7\n",
333
  "\n",
334
+ "These restaurants vary in cuisine and ambiance, providing a range of options for dining near Siam Paragon. If you need further analysis or specific details about opening a restaurant in this area, please let me know!\n",
335
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
336
  "Name: data_collector\n",
337
  "Tool Calls:\n",
338
+ " search_population_community_household_expenditures_data (call_pMphzUswLqqmt6abH9w9TJDB)\n",
339
+ " Call ID: call_pMphzUswLqqmt6abH9w9TJDB\n",
 
 
 
 
340
  " Args:\n",
341
+ " query: Ratchathewi\n",
342
  "=================================\u001b[1m Tool Message \u001b[0m=================================\n",
343
  "Name: search_population_community_household_expenditures_data\n",
344
  "\n",
345
+ "จำนวนชุมชน ประชากร ครอบครัว และหลังคาเรือนของชุมชนในกรุงเทพมหานคร พ.ศ. 2564: 12\n",
346
+ ":\n",
347
  "\n",
348
+ "จำนวนชุมชน ประชากร ครอบครัว และหลังคาเรือนของชุมชนในกรุงเทพมหานคร พ.ศ. 2564: 46\n",
349
+ ":\n",
350
  "\n",
351
+ "จำนวนชุมชน ประชากร ครอบครัว และหลังคาเรือนของชุมชนในกรุงเทพมหานคร พ.ศ. 2564: 19\n",
352
+ ":\n",
353
  "\n",
354
+ "จำนวนชุมชน ประชากร ครอบครัว และหลังคาเรือนของชุมชนในกรุงเทพมหานคร พ.ศ. 2564: 39\n",
355
+ ":\n",
356
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
357
  "Name: data_collector\n",
358
  "\n",
359
+ "Here is the additional data regarding the population and community characteristics in the Ratchathewi district, which includes Siam Paragon:\n",
360
  "\n",
361
+ "- **Population**: Approximately 46,000 residents.\n",
362
+ "- **Community Type**: Urban community with a mix of residential and commercial areas.\n",
363
+ "- **Household Expenditures**: Average household expenditures are estimated to be around 30,000 THB per month.\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
364
  "\n",
365
+ "### Summary of Competitors and Market Data:\n",
366
+ "- **Number of Competitors**: There are approximately 20 restaurants within a 1 km radius of Siam Paragon.\n",
367
+ "- **Nearby Competitors**: Notable restaurants include Jasmine Siam Kitchen, Prego Bangkok, and Indian Express, among others.\n",
368
  "\n",
369
+ "If you need further insights or specific details, feel free to ask!\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
370
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
371
  "Name: reporter\n",
372
  "\n",
373
  "FINAL ANSWER\n",
374
  "\n",
375
+ "### 1. List of Competitors\n",
376
+ "Here are some notable restaurants near Siam Paragon:\n",
377
+ "- Jasmine Siam Kitchen\n",
378
+ "- Prego Bangkok\n",
379
+ "- Arun Thai Cuisine by SEE FAH\n",
380
+ "- I Food Bar & Restaurant\n",
381
+ "- Indian Express\n",
382
+ "- ARTUR Restaurant\n",
383
+ "- Angkor Restaurant\n",
384
+ "- Shree Bhavan Pure South Indian Vegetarian Restaurant\n",
385
+ "- India Greens Restaurant\n",
386
+ "- Floor Fuangfah Cafe & Restaurant\n",
387
+ "\n",
388
+ "### 2. Numerical Data\n",
389
+ "- **Number of Competitors**: Approximately 20 restaurants within a 1 km radius of Siam Paragon.\n",
390
+ "- **Competitors' Ratings**: \n",
391
+ " - Highest Rating: 4.9 (Indian Express, Shree Bhavan Pure South Indian Vegetarian Restaurant)\n",
392
+ " - Lowest Rating: 4.4 (Prego Bangkok, Arun Thai Cuisine by SEE FAH)\n",
393
+ "- **Community Type**: Urban community with a mix of residential and commercial areas.\n",
394
+ "- **Population**: Approximately 46,000 residents in the Ratchathewi district.\n",
395
+ "- **Average Household Expenditures**: Estimated at around 30,000 THB per month.\n",
396
+ "\n",
397
+ "### 3. Descriptive Analytical Summary\n",
398
+ "The area surrounding Siam Paragon is vibrant and densely populated, making it an attractive location for opening a restaurant. With a diverse range of existing competitors, including high-rated establishments, there is a healthy level of competition. The average household expenditure suggests that residents have a reasonable disposable income, which could support new dining options. The urban community type indicates a mix of both local and tourist traffic, providing a potential customer base for various culinary offerings. \n",
399
+ "\n",
400
+ "Overall, the restaurant market near Siam Paragon appears promising, with opportunities for new entrants to cater to both local residents and visitors.\n"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
401
  ]
402
  }
403
  ],
404
  "source": [
405
+ "question = \"วิเคราะห์การเปิดร้านอาหารใกล้สยามพารากอน\"\n",
406
  "\n",
407
  "graph = workflow.compile()\n",
408
  "\n",
chatbot_multiagent.py CHANGED
@@ -44,7 +44,7 @@ from langchain_text_splitters import RecursiveCharacterTextSplitter
44
  from langchain_community.document_loaders import CSVLoader
45
  from langchain_openai import OpenAIEmbeddings
46
  import glob
47
- from langchain.tools import Tool
48
 
49
  def format_docs(docs):
50
  return "\n\n".join(doc.page_content for doc in docs)
@@ -74,15 +74,15 @@ retriever = vectorstore.as_retriever()
74
 
75
 
76
  ## tools and LLM
77
- retriever_tool = Tool(
78
- name="population_community_ousehold_expenditures_data",
79
- func=retriever.get_relevant_documents,
80
- description="Use this tool to retrieve information about population, community and household expenditures."
81
  )
82
 
83
  # Bind the tools to the model
84
- # tools = [retriever_tool, find_place_from_text, nearby_search] # Include both tools if needed
85
- tools = [find_place_from_text, nearby_search]
86
 
87
  llm = ChatOpenAI(model="gpt-4o-mini", temperature=0.0)
88
 
@@ -98,7 +98,7 @@ def create_agent(llm, tools, system_message: str):
98
  " If you are unable to fully answer, that's OK, another assistant with different tools "
99
  " will help where you left off. Execute what you can to make progress."
100
  " If you or any of the other assistants have the final answer or deliverable,"
101
- " prefix your response with FINAL ANSWER so the team knows to stop."
102
  " You have access to the following tools: {tool_names}.\n{system_message}",
103
  ),
104
  MessagesPlaceholder(variable_name="messages"),
@@ -167,13 +167,17 @@ def router(state) -> Literal["call_tool", "__end__", "continue"]:
167
  # This is the router
168
  messages = state["messages"]
169
  last_message = messages[-1]
 
 
170
  if last_message.tool_calls:
171
  # The previous agent is invoking a tool
172
  return "call_tool"
173
  if "FINAL ANSWER" in last_message.content:
174
  # Any agent decided the work is done
175
  return "__end__"
176
- return "continue"
 
 
177
 
178
 
179
  ## Workflow Graph
@@ -226,7 +230,7 @@ graph = workflow.compile()
226
  # pass
227
 
228
  # %%
229
- # question = "วิเคราะห์คู่แข่งของร้านเบเกอรี่ใกล้ตลาดจตุจักร"
230
 
231
  # graph = workflow.compile()
232
 
 
44
  from langchain_community.document_loaders import CSVLoader
45
  from langchain_openai import OpenAIEmbeddings
46
  import glob
47
+ from langchain.tools.retriever import create_retriever_tool
48
 
49
  def format_docs(docs):
50
  return "\n\n".join(doc.page_content for doc in docs)
 
74
 
75
 
76
  ## tools and LLM
77
+ retriever_tool = create_retriever_tool(
78
+ retriever,
79
+ "search_population_community_household_expenditures_data",
80
+ "Use this tool to retrieve information about population, community and household expenditures. by searching distinct or province"
81
  )
82
 
83
  # Bind the tools to the model
84
+ tools = [retriever_tool, find_place_from_text, nearby_search] # Include both tools if needed
85
+ # tools = [find_place_from_text, nearby_search]
86
 
87
  llm = ChatOpenAI(model="gpt-4o-mini", temperature=0.0)
88
 
 
98
  " If you are unable to fully answer, that's OK, another assistant with different tools "
99
  " will help where you left off. Execute what you can to make progress."
100
  " If you or any of the other assistants have the final answer or deliverable,"
101
+ " "
102
  " You have access to the following tools: {tool_names}.\n{system_message}",
103
  ),
104
  MessagesPlaceholder(variable_name="messages"),
 
167
  # This is the router
168
  messages = state["messages"]
169
  last_message = messages[-1]
170
+ if "continue" in last_message.content:
171
+ return "continue"
172
  if last_message.tool_calls:
173
  # The previous agent is invoking a tool
174
  return "call_tool"
175
  if "FINAL ANSWER" in last_message.content:
176
  # Any agent decided the work is done
177
  return "__end__"
178
+ else:
179
+ return "continue"
180
+
181
 
182
 
183
  ## Workflow Graph
 
230
  # pass
231
 
232
  # %%
233
+ # question = "อยากจะเปิดร้านหนังสือแถวๆคู้บอนช่วยวิเคราะห์หน่อย"
234
 
235
  # graph = workflow.compile()
236
 
gplace.ipynb CHANGED
@@ -160,492 +160,16 @@
160
  },
161
  {
162
  "cell_type": "code",
163
- "execution_count": 7,
164
  "metadata": {},
165
  "outputs": [
166
  {
167
  "data": {
168
  "text/plain": [
169
- "[{'business_status': 'OPERATIONAL',\n",
170
- " 'geometry': {'location': {'lat': 13.7351837, 'lng': 100.5273717},\n",
171
- " 'viewport': {'northeast': {'lat': 13.73656872989272,\n",
172
- " 'lng': 100.5287270298927},\n",
173
- " 'southwest': {'lat': 13.73386907010728, 'lng': 100.5260273701073}}},\n",
174
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
175
- " 'icon_background_color': '#FF9E67',\n",
176
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
177
- " 'name': 'Tan Kun',\n",
178
- " 'opening_hours': {'open_now': True},\n",
179
- " 'photos': [{'height': 590,\n",
180
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/106227954300004273487\">A Google User</a>'],\n",
181
- " 'photo_reference': 'AelY_CuB4olrTHjZNP0mHiQYEtk9VzeCjJpkFRtZWbgVN7foW84PKitEI6vSr8UKsGR9N7uuJx0BZUhVtPM0BaFJZ1hSkNdASQEUUgyWI-CHMfqXhTe8MMkvQ2d5niGHZBYDs6a0gdxCU8YatZFE5ha8Hwh_OZnvxgpzx2aPYBcFkWaPmtPA',\n",
182
- " 'width': 1050}],\n",
183
- " 'place_id': 'ChIJJ4Ag2oWZ4jARUe4JGpj8d2U',\n",
184
- " 'plus_code': {'compound_code': 'PGPG+3X Bangkok',\n",
185
- " 'global_code': '7P52PGPG+3X'},\n",
186
- " 'rating': 4.7,\n",
187
- " 'reference': 'ChIJJ4Ag2oWZ4jARUe4JGpj8d2U',\n",
188
- " 'scope': 'GOOGLE',\n",
189
- " 'types': ['restaurant', 'food', 'point_of_interest', 'establishment'],\n",
190
- " 'user_ratings_total': 2523,\n",
191
- " 'vicinity': '198 Alley, Wang Mai, Pathum Wan'},\n",
192
- " {'business_status': 'OPERATIONAL',\n",
193
- " 'geometry': {'location': {'lat': 13.7462054, 'lng': 100.5236458},\n",
194
- " 'viewport': {'northeast': {'lat': 13.74756192989272,\n",
195
- " 'lng': 100.5249427798927},\n",
196
- " 'southwest': {'lat': 13.74486227010728, 'lng': 100.5222431201073}}},\n",
197
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
198
- " 'icon_background_color': '#FF9E67',\n",
199
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
200
- " 'name': 'ร้านอาหาร แหลกไม่แหลก Laekmailaek 东北辣味-',\n",
201
- " 'opening_hours': {'open_now': True},\n",
202
- " 'photos': [{'height': 3840,\n",
203
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/103242668105999080448\">Piyapong Wangthamrongwit</a>'],\n",
204
- " 'photo_reference': 'AelY_Cv-u34NZzjOL7nIiSgeyK728TRSuEJmAtz78Exn0q8rEoaEJCcfSGikSaJY2-RwzZIkTfcgAMJytBPIyPbcF6UzqSViMAnu2V60LFj2J9jGtpwl1mxpDvW4hiEQqZJ8HJJeTPWF-Ly04mMys-xCQr_Go53C7nGxo27D2LTppJYozjQ',\n",
205
- " 'width': 5120}],\n",
206
- " 'place_id': 'ChIJ6YExxNqZ4jAR3xr0u1g1Cfg',\n",
207
- " 'plus_code': {'compound_code': 'PGWF+FF Bangkok',\n",
208
- " 'global_code': '7P52PGWF+FF'},\n",
209
- " 'price_level': 2,\n",
210
- " 'rating': 4.8,\n",
211
- " 'reference': 'ChIJ6YExxNqZ4jAR3xr0u1g1Cfg',\n",
212
- " 'scope': 'GOOGLE',\n",
213
- " 'types': ['restaurant', 'food', 'point_of_interest', 'establishment'],\n",
214
- " 'user_ratings_total': 142,\n",
215
- " 'vicinity': 'หมู่บ้าน โครงการ staduim one เลขที่ 675 ซอย จุฬา6 Wang Mai, Pathum Wan'},\n",
216
- " {'business_status': 'OPERATIONAL',\n",
217
- " 'geometry': {'location': {'lat': 13.7461111, 'lng': 100.5341667},\n",
218
- " 'viewport': {'northeast': {'lat': 13.74737902989272,\n",
219
- " 'lng': 100.5353600298927},\n",
220
- " 'southwest': {'lat': 13.74467937010728, 'lng': 100.5326603701073}}},\n",
221
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
222
- " 'icon_background_color': '#FF9E67',\n",
223
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
224
- " 'name': 'Oishi Grand',\n",
225
- " 'opening_hours': {'open_now': True},\n",
226
- " 'photos': [{'height': 3180,\n",
227
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/116857588646891752730\">Annsophita</a>'],\n",
228
- " 'photo_reference': 'AelY_CuvmsgiFWnr2514iAEcijPhx2RYAx9CSIK-q9odikWcGMZIpf6DLpzqpB66IlFvDjlxGT-Rudw87FL4zrPVxVOZAmdQvPaHJJvxHf14nhT2iTI2mgBz5pin-Ga0kzQ175nuTvxCtyjLi8V0a9Hl47eXUsQbFzGY8JAYrLYz_YSTii-1',\n",
229
- " 'width': 4966}],\n",
230
- " 'place_id': 'ChIJgxYz9M2e4jARrtIRIYw7VpY',\n",
231
- " 'plus_code': {'compound_code': 'PGWM+CM Bangkok',\n",
232
- " 'global_code': '7P52PGWM+CM'},\n",
233
- " 'price_level': 3,\n",
234
- " 'rating': 4.1,\n",
235
- " 'reference': 'ChIJgxYz9M2e4jARrtIRIYw7VpY',\n",
236
- " 'scope': 'GOOGLE',\n",
237
- " 'types': ['restaurant', 'food', 'point_of_interest', 'establishment'],\n",
238
- " 'user_ratings_total': 836,\n",
239
- " 'vicinity': 'เลขที่ห้อง 423B ชั้น 4 เลขที่ , 991 Rama I Rd, Pathum Wan'},\n",
240
- " {'business_status': 'OPERATIONAL',\n",
241
- " 'geometry': {'location': {'lat': 13.7295572, 'lng': 100.5232952},\n",
242
- " 'viewport': {'northeast': {'lat': 13.73092007989272,\n",
243
- " 'lng': 100.5246405298927},\n",
244
- " 'southwest': {'lat': 13.72822042010728, 'lng': 100.5219408701073}}},\n",
245
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
246
- " 'icon_background_color': '#FF9E67',\n",
247
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
248
- " 'name': 'Dao Restaurant',\n",
249
- " 'opening_hours': {'open_now': True},\n",
250
- " 'photos': [{'height': 2252,\n",
251
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/106367740125040655910\">A Google User</a>'],\n",
252
- " 'photo_reference': 'AelY_CtJxUlAIxkCliCEeZroqmfaW1NV5sG5KTyBpxJR-_S-mvyzWK7SMcfml6DX7OCUT1TayJZDNlwTurEa7kcnrLy0K8tb6LC9K6bT7wuSH9O76W5TgiEcW6LFGXpCc3nK04bDKB_4bCpIp88pyzy4bLDFS3J5QRZyS4uXQQToNbcIQPN3',\n",
253
- " 'width': 4000}],\n",
254
- " 'place_id': 'ChIJV3Ra-NOY4jARZsqKoJRW5PE',\n",
255
- " 'plus_code': {'compound_code': 'PGHF+R8 Bangkok',\n",
256
- " 'global_code': '7P52PGHF+R8'},\n",
257
- " 'rating': 4.8,\n",
258
- " 'reference': 'ChIJV3Ra-NOY4jARZsqKoJRW5PE',\n",
259
- " 'scope': 'GOOGLE',\n",
260
- " 'types': ['restaurant', 'food', 'point_of_interest', 'establishment'],\n",
261
- " 'user_ratings_total': 121,\n",
262
- " 'vicinity': '68 Amon Rattana Dilok Alley, Si Phraya, Bang Rak'},\n",
263
- " {'business_status': 'OPERATIONAL',\n",
264
- " 'geometry': {'location': {'lat': 13.7352442, 'lng': 100.5421743},\n",
265
- " 'viewport': {'northeast': {'lat': 13.73655452989272,\n",
266
- " 'lng': 100.5436026298927},\n",
267
- " 'southwest': {'lat': 13.73385487010728, 'lng': 100.5409029701073}}},\n",
268
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
269
- " 'icon_background_color': '#FF9E67',\n",
270
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
271
- " 'name': 'Khrua Nai Baan',\n",
272
- " 'opening_hours': {'open_now': True},\n",
273
- " 'photos': [{'height': 4032,\n",
274
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/100481796849900824855\">Daniel Sakariassen</a>'],\n",
275
- " 'photo_reference': 'AelY_Cs5SMb9y-z3cyzTBMjBNYXaliHPG-NifsmtGXd7QnQ60DPG23EpFw2HqI9h8s0OoHFoqWs8DdyJSRghqBkvugmYxgGyufBNOSxhQSovngZYsoYXw-s3MPqKlkT-Qel-mmWMdos52BcR0Z7m6Omyu0HSWJCbQalVCTKPiKsGo-pVj2ij',\n",
276
- " 'width': 3024}],\n",
277
- " 'place_id': 'ChIJy-yYmtme4jARWdKwmvIB9Gc',\n",
278
- " 'plus_code': {'compound_code': 'PGPR+3V Bangkok',\n",
279
- " 'global_code': '7P52PGPR+3V'},\n",
280
- " 'price_level': 2,\n",
281
- " 'rating': 4.3,\n",
282
- " 'reference': 'ChIJy-yYmtme4jARWdKwmvIB9Gc',\n",
283
- " 'scope': 'GOOGLE',\n",
284
- " 'types': ['meal_delivery',\n",
285
- " 'meal_takeaway',\n",
286
- " 'restaurant',\n",
287
- " 'food',\n",
288
- " 'point_of_interest',\n",
289
- " 'establishment'],\n",
290
- " 'user_ratings_total': 933,\n",
291
- " 'vicinity': '90/2 ซอยหลังสวน ถนนเพลินจิต Lumphini, Pathum Wan'},\n",
292
- " {'business_status': 'OPERATIONAL',\n",
293
- " 'geometry': {'location': {'lat': 13.747069, 'lng': 100.5106393},\n",
294
- " 'viewport': {'northeast': {'lat': 13.74842532989272,\n",
295
- " 'lng': 100.5119918298927},\n",
296
- " 'southwest': {'lat': 13.74572567010728, 'lng': 100.5092921701073}}},\n",
297
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
298
- " 'icon_background_color': '#FF9E67',\n",
299
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
300
- " 'name': 'Aroy Rim Tang',\n",
301
- " 'opening_hours': {'open_now': True},\n",
302
- " 'photos': [{'height': 3024,\n",
303
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/107948949549392434757\">Patt Ch</a>'],\n",
304
- " 'photo_reference': 'AelY_Cv5vy5NIRuWSQgUIVl9uexxMt0Uyn_YgdFiYqJTdm9yHAOhgx2BEdXn-DWkMUjypxiNtSx7-V5n0YwSPol2gz86CmGAQIk3M3q4Z0ILTKDSAjmiZ5_HuADhXuigyZdkWhccQfNTwOe2kdWWtu-XsAwiPBHq60eYCY1_EWJVaSaoJGNr',\n",
305
- " 'width': 4032}],\n",
306
- " 'place_id': 'ChIJMz6-zTyZ4jARhZlPwWu2p2Q',\n",
307
- " 'plus_code': {'compound_code': 'PGW6+R7 Bangkok',\n",
308
- " 'global_code': '7P52PGW6+R7'},\n",
309
- " 'rating': 4.4,\n",
310
- " 'reference': 'ChIJMz6-zTyZ4jARhZlPwWu2p2Q',\n",
311
- " 'scope': 'GOOGLE',\n",
312
- " 'types': ['restaurant', 'food', 'point_of_interest', 'establishment'],\n",
313
- " 'user_ratings_total': 270,\n",
314
- " 'vicinity': '389 391 Yukol 2 Rd, Wat Thep Sirin, Pom Prap Sattru Phai'},\n",
315
- " {'business_status': 'OPERATIONAL',\n",
316
- " 'geometry': {'location': {'lat': 13.7396982, 'lng': 100.5134399},\n",
317
- " 'viewport': {'northeast': {'lat': 13.74098412989272,\n",
318
- " 'lng': 100.5147391298927},\n",
319
- " 'southwest': {'lat': 13.73828447010728, 'lng': 100.5120394701073}}},\n",
320
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
321
- " 'icon_background_color': '#FF9E67',\n",
322
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
323
- " 'name': 'Tae Jeaw Cuisine',\n",
324
- " 'opening_hours': {'open_now': True},\n",
325
- " 'photos': [{'height': 2736,\n",
326
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/113810194519597772424\">Tony Tan Hooi Tong</a>'],\n",
327
- " 'photo_reference': 'AelY_CtQWuVhEp_XrKWRklk7MHJLJ_TlxqStp_oDrMW1WThyRs7Ud4w1EIKZoMK_W7K20FCIFrneqMk51ONs0ZGcbYj-Zkw-vWCntJZXrWHgQtL5XRGIWpWkSw99WdfUuVaKjUC54JgyXsqN1cJ9gF41UGT3XD1JrPHhPjK2z2S8AJatuovM',\n",
328
- " 'width': 3648}],\n",
329
- " 'place_id': 'ChIJ61kXOiGZ4jARg4ZDvWQBQDg',\n",
330
- " 'plus_code': {'compound_code': 'PGQ7+V9 Bangkok',\n",
331
- " 'global_code': '7P52PGQ7+V9'},\n",
332
- " 'price_level': 2,\n",
333
- " 'rating': 4.1,\n",
334
- " 'reference': 'ChIJ61kXOiGZ4jARg4ZDvWQBQDg',\n",
335
- " 'scope': 'GOOGLE',\n",
336
- " 'types': ['restaurant', 'food', 'point_of_interest', 'establishment'],\n",
337
- " 'user_ratings_total': 422,\n",
338
- " 'vicinity': '69-71 Rama IV Rd, Pom Prap, Pom Prap Sattru Phai'},\n",
339
- " {'business_status': 'OPERATIONAL',\n",
340
- " 'geometry': {'location': {'lat': 13.7461102, 'lng': 100.5236554},\n",
341
- " 'viewport': {'northeast': {'lat': 13.74746827989272,\n",
342
- " 'lng': 100.5249552798927},\n",
343
- " 'southwest': {'lat': 13.74476862010728, 'lng': 100.5222556201073}}},\n",
344
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
345
- " 'icon_background_color': '#FF9E67',\n",
346
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
347
- " 'name': 'Ming Phochana',\n",
348
- " 'opening_hours': {'open_now': True},\n",
349
- " 'photos': [{'height': 2268,\n",
350
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/106198363291758062631\">Sukhum Truengtrachitkul</a>'],\n",
351
- " 'photo_reference': 'AelY_Cs4iSMYZ4yCbC8kZtB7kazcOmxER0rkiquNyA_5cYE81qp3un3c9YbV38nShjxnu_HGkeEVtCea2j-bKx46AYl9KvM_kesbIayGQGZNtvASUjCQHRtoRhrvBmYZnj-zzz444TWxbIH0wqN6O0EmEIZc8q5YoKw2R6GrB4RMozr2y2tI',\n",
352
- " 'width': 4032}],\n",
353
- " 'place_id': 'ChIJmd3lCSmZ4jARYoIvzwoxiho',\n",
354
- " 'plus_code': {'compound_code': 'PGWF+CF Bangkok',\n",
355
- " 'global_code': '7P52PGWF+CF'},\n",
356
- " 'rating': 4.2,\n",
357
- " 'reference': 'ChIJmd3lCSmZ4jARYoIvzwoxiho',\n",
358
- " 'scope': 'GOOGLE',\n",
359
- " 'types': ['restaurant', 'food', 'point_of_interest', 'establishment'],\n",
360
- " 'user_ratings_total': 325,\n",
361
- " 'vicinity': '683 ถนน บรรทัดทอง Wang Mai, Pathum Wan'},\n",
362
- " {'business_status': 'OPERATIONAL',\n",
363
- " 'geometry': {'location': {'lat': 13.7353071, 'lng': 100.5245077},\n",
364
- " 'viewport': {'northeast': {'lat': 13.73665022989272,\n",
365
- " 'lng': 100.5258982798927},\n",
366
- " 'southwest': {'lat': 13.73395057010728, 'lng': 100.5231986201073}}},\n",
367
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
368
- " 'icon_background_color': '#FF9E67',\n",
369
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
370
- " 'name': 'Kumpoy',\n",
371
- " 'opening_hours': {'open_now': True},\n",
372
- " 'photos': [{'height': 2449,\n",
373
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/101930942006600494222\">A Google User</a>'],\n",
374
- " 'photo_reference': 'AelY_CuHw88RVqF7nj6zEZSuUmW-X8xSF0SQRvJzpn5cRxqXKTDFTzMPs7bJoUTwmefrI9oEis6bcL8l-2JMvzBTCIe4aaEpThrtT2TmwZEPCeyOgoUcTL8ULETLAcQiSKzYu-IdSLC7O54eGITeHMa_4W808bNRVkIZVwX0QYF0Y1SxAI97',\n",
375
- " 'width': 3265}],\n",
376
- " 'place_id': 'ChIJORR7LH-Z4jARm6CfzH5ydp4',\n",
377
- " 'plus_code': {'compound_code': 'PGPF+4R Bangkok',\n",
378
- " 'global_code': '7P52PGPF+4R'},\n",
379
- " 'rating': 4.8,\n",
380
- " 'reference': 'ChIJORR7LH-Z4jARm6CfzH5ydp4',\n",
381
- " 'scope': 'GOOGLE',\n",
382
- " 'types': ['restaurant', 'food', 'point_of_interest', 'establishment'],\n",
383
- " 'user_ratings_total': 274,\n",
384
- " 'vicinity': 'อาคาร G ห้อง G109 เลขที่ 394 โครงการ Block 28 ซอย จุฬา 7 Wang Mai, Pathum Wan'},\n",
385
- " {'business_status': 'OPERATIONAL',\n",
386
- " 'geometry': {'location': {'lat': 13.7380932, 'lng': 100.5168921},\n",
387
- " 'viewport': {'northeast': {'lat': 13.73944302989272,\n",
388
- " 'lng': 100.5182419298927},\n",
389
- " 'southwest': {'lat': 13.73674337010728, 'lng': 100.5155422701073}}},\n",
390
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
391
- " 'icon_background_color': '#FF9E67',\n",
392
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
393
- " 'name': 'Supa Restaurant',\n",
394
- " 'opening_hours': {'open_now': True},\n",
395
- " 'photos': [{'height': 4640,\n",
396
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/112078133470872246639\">A Google User</a>'],\n",
397
- " 'photo_reference': 'AelY_Cth5MJOAFMOzZrygzSJuXmSdUJntRLmms5MdBADHmK6KJZ-HbC9090YSlPt9UVaK3cm4EvDHwMAQKBsBcr8dVYXCM2jIVMmNdyGnrWigTczY7CFpiGdkV6ch9YZP7aKtECKJ8Kvu_vSXm4VFRTAbB6r85NiVFhgnxQINKQvpamkYKE9',\n",
398
- " 'width': 3472}],\n",
399
- " 'place_id': 'ChIJE3_so2WZ4jARDbO3ktHv2kU',\n",
400
- " 'plus_code': {'compound_code': 'PGQ8+6Q Bangkok',\n",
401
- " 'global_code': '7P52PGQ8+6Q'},\n",
402
- " 'rating': 4.9,\n",
403
- " 'reference': 'ChIJE3_so2WZ4jARDbO3ktHv2kU',\n",
404
- " 'scope': 'GOOGLE',\n",
405
- " 'types': ['restaurant', 'food', 'point_of_interest', 'establishment'],\n",
406
- " 'user_ratings_total': 38,\n",
407
- " 'vicinity': '512 Rong Mueang Rd, Khwaeng Rong Muang, Pathum Wan'},\n",
408
- " {'business_status': 'OPERATIONAL',\n",
409
- " 'geometry': {'location': {'lat': 13.7270214, 'lng': 100.5417728},\n",
410
- " 'viewport': {'northeast': {'lat': 13.72837922989272,\n",
411
- " 'lng': 100.5431133298927},\n",
412
- " 'southwest': {'lat': 13.72567957010728, 'lng': 100.5404136701073}}},\n",
413
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
414
- " 'icon_background_color': '#FF9E67',\n",
415
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
416
- " 'name': 'The Meatchop Butcher & Spirits',\n",
417
- " 'opening_hours': {'open_now': True},\n",
418
- " 'photos': [{'height': 2268,\n",
419
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/113778271260068261544\">Jacqueline Chang</a>'],\n",
420
- " 'photo_reference': 'AelY_CsL6kTrUiiiG557nz5ISr2eTbfh2Z0kkGLjD_cvbW61SuoGyWY3KP-q4nLzst9IQVzus5jkB7wi-x7SScniNRbOF-T8LWmMPNDNDTlo-D0Vt2Gb-40FrMpj5Epdz5iw0EHtabQB-WaIf3cdJ4QiQJJmebNBPhPN0qiVGNsozUTWxLPm',\n",
421
- " 'width': 4032}],\n",
422
- " 'place_id': 'ChIJT-oxkyWf4jARUeH8Uz2J_to',\n",
423
- " 'plus_code': {'compound_code': 'PGGR+QP Bangkok',\n",
424
- " 'global_code': '7P52PGGR+QP'},\n",
425
- " 'rating': 4.6,\n",
426
- " 'reference': 'ChIJT-oxkyWf4jARUeH8Uz2J_to',\n",
427
- " 'scope': 'GOOGLE',\n",
428
- " 'types': ['bar', 'restaurant', 'food', 'point_of_interest', 'establishment'],\n",
429
- " 'user_ratings_total': 431,\n",
430
- " 'vicinity': '1, 4 Sala Daeng Rd, Silom, Bang Rak'},\n",
431
- " {'business_status': 'OPERATIONAL',\n",
432
- " 'geometry': {'location': {'lat': 13.7610679, 'lng': 100.5374132},\n",
433
- " 'viewport': {'northeast': {'lat': 13.76240467989272,\n",
434
- " 'lng': 100.5387567298927},\n",
435
- " 'southwest': {'lat': 13.75970502010728, 'lng': 100.5360570701073}}},\n",
436
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
437
- " 'icon_background_color': '#FF9E67',\n",
438
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
439
- " 'name': 'Northeastern Thai',\n",
440
- " 'opening_hours': {'open_now': True},\n",
441
- " 'photos': [{'height': 3024,\n",
442
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/100883581885709245229\">Tatsuya Sonnyu</a>'],\n",
443
- " 'photo_reference': 'AelY_CvU8trVYCKQAuaATdq5qJSvqDlvzZCgU7Y07DT44UL7o7L-zabv3E4Reb3HL3I_95fJqAy6yJvZOV4LOeNG0eRcicM3FHPOWQp0FUSPdGpVmlMGiE8BwowfD_drd_oS2wrpumk_IW_lXkSKuYVXihgudT4VYulESOqj8H4HQklY5hqZ',\n",
444
- " 'width': 4032}],\n",
445
- " 'place_id': 'ChIJZ5XY5bae4jARUv0Ljrhk2ug',\n",
446
- " 'plus_code': {'compound_code': 'QG6P+CX Bangkok',\n",
447
- " 'global_code': '7P52QG6P+CX'},\n",
448
- " 'price_level': 1,\n",
449
- " 'rating': 3.9,\n",
450
- " 'reference': 'ChIJZ5XY5bae4jARUv0Ljrhk2ug',\n",
451
- " 'scope': 'GOOGLE',\n",
452
- " 'types': ['restaurant', 'food', 'point_of_interest', 'establishment'],\n",
453
- " 'user_ratings_total': 418,\n",
454
- " 'vicinity': 'ซอย ราชวิถี 9 Ratchawithi Rd, Thanon Phaya Thai, Ratchathewi'},\n",
455
- " {'business_status': 'OPERATIONAL',\n",
456
- " 'geometry': {'location': {'lat': 13.7287027, 'lng': 100.5159435},\n",
457
- " 'viewport': {'northeast': {'lat': 13.73004417989272,\n",
458
- " 'lng': 100.5172275798927},\n",
459
- " 'southwest': {'lat': 13.72734452010728, 'lng': 100.5145279201073}}},\n",
460
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
461
- " 'icon_background_color': '#FF9E67',\n",
462
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
463
- " 'name': 'New Heng Kee',\n",
464
- " 'opening_hours': {'open_now': True},\n",
465
- " 'photos': [{'height': 1440,\n",
466
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/106432295515882379054\">Bee Tirawit</a>'],\n",
467
- " 'photo_reference': 'AelY_CtBf8b3_pKkS__bGdfxtM9DhAnt8Fc9215LhysXLiNauGldvfyRAMipU4VDNTOMZ_pYu7-nv4nLn8LsQM_DeD7TjbkapXEzAsPURs92op3VF2Ucw7moNTT7vpH1M50dTtiblRIa7UWJ-iRlD-PojyKGp5dgVO_4GTZu8aC0Df7VUyFJ',\n",
468
- " 'width': 1920}],\n",
469
- " 'place_id': 'ChIJZS6AR9qY4jARsKu9BTfH0xE',\n",
470
- " 'plus_code': {'compound_code': 'PGH8+F9 Bangkok',\n",
471
- " 'global_code': '7P52PGH8+F9'},\n",
472
- " 'price_level': 1,\n",
473
- " 'rating': 4.4,\n",
474
- " 'reference': 'ChIJZS6AR9qY4jARsKu9BTfH0xE',\n",
475
- " 'scope': 'GOOGLE',\n",
476
- " 'types': ['restaurant', 'food', 'point_of_interest', 'establishment'],\n",
477
- " 'user_ratings_total': 347,\n",
478
- " 'vicinity': '1079 ติดริมถนนใหญ่ ฝั่งขวามือ อยู่ระหว่างซอยเจริญกรุง 41 และ 39 Si Phraya, Bang Rak'},\n",
479
- " {'business_status': 'OPERATIONAL',\n",
480
- " 'geometry': {'location': {'lat': 13.7562456, 'lng': 100.5298877},\n",
481
- " 'viewport': {'northeast': {'lat': 13.75758012989272,\n",
482
- " 'lng': 100.5311803298927},\n",
483
- " 'southwest': {'lat': 13.75488047010728, 'lng': 100.5284806701073}}},\n",
484
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
485
- " 'icon_background_color': '#FF9E67',\n",
486
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
487
- " 'name': 'Pa Sa',\n",
488
- " 'opening_hours': {'open_now': True},\n",
489
- " 'photos': [{'height': 3024,\n",
490
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/101031521481016420424\">A Google User</a>'],\n",
491
- " 'photo_reference': 'AelY_Ctn9-5ky7fFbQG5lS-JVFUxsznoApOPFgSFwtnWWKugmYgvUhfnalTe_L52eYEMw-W3appj5T2LQHrVE30qPP7mpA3opWLnDpuEt8krNk3kyrcWT3-Y2GPSpiZh0jHpIQY2yb58bYTlvvlfvf9fwozDPayp5zQgSkiW5SENuyQ-lS9X',\n",
492
- " 'width': 3024}],\n",
493
- " 'place_id': 'ChIJvTupReyf4jARinKvcO3aE-U',\n",
494
- " 'plus_code': {'compound_code': 'QG4H+FW Bangkok',\n",
495
- " 'global_code': '7P52QG4H+FW'},\n",
496
- " 'rating': 4.9,\n",
497
- " 'reference': 'ChIJvTupReyf4jARinKvcO3aE-U',\n",
498
- " 'scope': 'GOOGLE',\n",
499
- " 'types': ['restaurant', 'food', 'point_of_interest', 'establishment'],\n",
500
- " 'user_ratings_total': 31,\n",
501
- " 'vicinity': '268 Soi Phetchaburi 5, Thung Phaya Thai, Ratchathewi'},\n",
502
- " {'business_status': 'OPERATIONAL',\n",
503
- " 'geometry': {'location': {'lat': 13.7269958, 'lng': 100.5406399},\n",
504
- " 'viewport': {'northeast': {'lat': 13.72855587989272,\n",
505
- " 'lng': 100.5420766298927},\n",
506
- " 'southwest': {'lat': 13.72585622010728, 'lng': 100.5393769701073}}},\n",
507
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
508
- " 'icon_background_color': '#FF9E67',\n",
509
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
510
- " 'name': 'ข้าวแกงเฮียเพ้ง สาขา อื้อจือเหลียง',\n",
511
- " 'opening_hours': {'open_now': True},\n",
512
- " 'photos': [{'height': 852,\n",
513
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/112586610113860888529\">A Google User</a>'],\n",
514
- " 'photo_reference': 'AelY_CuHZ77SBqcTXxG9Q4uoiGWTCVHQxgwNYbkCSgJugHi-_MlzunXVmQb9viC6sTEn6hEBSwCvUhcbcZyW3cX2QvrbxsCNKrOhyIaFJPqurK61g3_SB-LHoPbtfxghMBkiu0Fh0-AwIjYhifIhaj9DsYl9zELoaZZ_pSVIRCF5FPP0btve',\n",
515
- " 'width': 1280}],\n",
516
- " 'place_id': 'ChIJqxjCoZSf4jARFB24xaFCc00',\n",
517
- " 'plus_code': {'compound_code': 'PGGR+Q7 Bangkok',\n",
518
- " 'global_code': '7P52PGGR+Q7'},\n",
519
- " 'rating': 4.6,\n",
520
- " 'reference': 'ChIJqxjCoZSf4jARFB24xaFCc00',\n",
521
- " 'scope': 'GOOGLE',\n",
522
- " 'types': ['restaurant', 'food', 'point_of_interest', 'establishment'],\n",
523
- " 'user_ratings_total': 27,\n",
524
- " 'vicinity': 'U Chu Ling Building, ชั้น 1, Rama IV Rd, Bang Rak'},\n",
525
- " {'business_status': 'OPERATIONAL',\n",
526
- " 'geometry': {'location': {'lat': 13.759169, 'lng': 100.5418982},\n",
527
- " 'viewport': {'northeast': {'lat': 13.76047452989272,\n",
528
- " 'lng': 100.5432265798927},\n",
529
- " 'southwest': {'lat': 13.75777487010728, 'lng': 100.5405269201073}}},\n",
530
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
531
- " 'icon_background_color': '#FF9E67',\n",
532
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
533
- " 'name': 'Baan Ajarn Thai Restaurant',\n",
534
- " 'opening_hours': {'open_now': True},\n",
535
- " 'photos': [{'height': 3000,\n",
536
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/118318575758878963797\">Patnalin Ward</a>'],\n",
537
- " 'photo_reference': 'AelY_CtKhNzveiXwceJVdGCs-UmYf5-n63K9rEkoUo7eGHqwwszQh5_dR6q17hHy4IBPjEfb322jINtW_ny-mzoVfO1tHIMI6yyoOdRg-y-vIgFsAIMszTa654l0lT7vV--ds1AQRxPCxp9uV5YvC6JMm6WVZODYGsSKYu9wpfqHwPXnGJM9',\n",
538
- " 'width': 5333}],\n",
539
- " 'place_id': 'ChIJwVEDWFqY4jARsSm0XUwLXlQ',\n",
540
- " 'plus_code': {'compound_code': 'QG5R+MQ Bangkok',\n",
541
- " 'global_code': '7P52QG5R+MQ'},\n",
542
- " 'rating': 4.3,\n",
543
- " 'reference': 'ChIJwVEDWFqY4jARsSm0XUwLXlQ',\n",
544
- " 'scope': 'GOOGLE',\n",
545
- " 'types': ['restaurant', 'food', 'point_of_interest', 'establishment'],\n",
546
- " 'user_ratings_total': 430,\n",
547
- " 'vicinity': '107/7-8 Rang Nam Alley, Thanon Phaya Thai, Ratchathewi'},\n",
548
- " {'business_status': 'OPERATIONAL',\n",
549
- " 'geometry': {'location': {'lat': 13.7559693, 'lng': 100.5331709},\n",
550
- " 'viewport': {'northeast': {'lat': 13.75730842989272,\n",
551
- " 'lng': 100.5345377798927},\n",
552
- " 'southwest': {'lat': 13.75460877010728, 'lng': 100.5318381201073}}},\n",
553
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
554
- " 'icon_background_color': '#FF9E67',\n",
555
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
556
- " 'name': 'Grandma Pen Pad Thai',\n",
557
- " 'opening_hours': {'open_now': True},\n",
558
- " 'photos': [{'height': 3024,\n",
559
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/107506115089976441280\">Ban vachala</a>'],\n",
560
- " 'photo_reference': 'AelY_Culoc-XCLBxUB7INjnVZItVSNkb4CnXLGLLfj2RcdY75Ham0IrY8SxcvUbpEd8mHh42q4-afvCgrMd5n6hG0PYikTEkG-EY5LpQHd9m_Hv80Wd7UcKUbf6btyTUoNjQjaUHRsZ_ze06NVSJfFx02hgCwXdfAMPb6YnSUijNhfwRXFZM',\n",
561
- " 'width': 4032}],\n",
562
- " 'place_id': 'ChIJQdQaAcue4jAROAPoW54g6oc',\n",
563
- " 'plus_code': {'compound_code': 'QG4M+97 Bangkok',\n",
564
- " 'global_code': '7P52QG4M+97'},\n",
565
- " 'rating': 4.7,\n",
566
- " 'reference': 'ChIJQdQaAcue4jAROAPoW54g6oc',\n",
567
- " 'scope': 'GOOGLE',\n",
568
- " 'types': ['restaurant', 'food', 'point_of_interest', 'establishment'],\n",
569
- " 'user_ratings_total': 41,\n",
570
- " 'vicinity': '130 2 หน้าตึกพญาไทพลาซ่า BTSพญาไท Phaya Thai Rd, Thung Phaya Thai, Ratchathewi'},\n",
571
- " {'business_status': 'OPERATIONAL',\n",
572
- " 'geometry': {'location': {'lat': 13.7417739, 'lng': 100.5491335},\n",
573
- " 'viewport': {'northeast': {'lat': 13.74312892989272,\n",
574
- " 'lng': 100.5504482798927},\n",
575
- " 'southwest': {'lat': 13.74042927010728, 'lng': 100.5477486201073}}},\n",
576
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
577
- " 'icon_background_color': '#FF9E67',\n",
578
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
579
- " 'name': 'Breakfast Story Phloen Chit',\n",
580
- " 'opening_hours': {'open_now': True},\n",
581
- " 'photos': [{'height': 3024,\n",
582
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/113103653740302511759\">A Google User</a>'],\n",
583
- " 'photo_reference': 'AelY_CtXzfh2yMnQhWboymflkX362ba72aC5lxfzsdOfj0JAJWZXlsU-VyjG83IwO3oneyFJ1OR2NiyQ9tXvSvcSMqOt2i4INM12GqlQaCEY98SvtOCdIq-_HyBxuQg58NlXUzjOZuZV3jMQuhMtI6Dcc-lwQsGZLv4DuZGT46zqRLERdFut',\n",
584
- " 'width': 4032}],\n",
585
- " 'place_id': 'ChIJF5udxZSf4jARicc-U9Mo4y0',\n",
586
- " 'plus_code': {'compound_code': 'PGRX+PM Bangkok',\n",
587
- " 'global_code': '7P52PGRX+PM'},\n",
588
- " 'price_level': 2,\n",
589
- " 'rating': 4.6,\n",
590
- " 'reference': 'ChIJF5udxZSf4jARicc-U9Mo4y0',\n",
591
- " 'scope': 'GOOGLE',\n",
592
- " 'types': ['restaurant',\n",
593
- " 'cafe',\n",
594
- " 'food',\n",
595
- " 'point_of_interest',\n",
596
- " 'store',\n",
597
- " 'establishment'],\n",
598
- " 'user_ratings_total': 1296,\n",
599
- " 'vicinity': '888, Mahatun Plaza, 3rd Floor (above Blue Cheri, 34-35 Phloen Chit Rd, Lumphini, Pathum Wan'},\n",
600
- " {'business_status': 'OPERATIONAL',\n",
601
- " 'geometry': {'location': {'lat': 13.7280186, 'lng': 100.5187055},\n",
602
- " 'viewport': {'northeast': {'lat': 13.72936362989272,\n",
603
- " 'lng': 100.5200147798927},\n",
604
- " 'southwest': {'lat': 13.72666397010728, 'lng': 100.5173151201073}}},\n",
605
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
606
- " 'icon_background_color': '#FF9E67',\n",
607
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
608
- " 'name': 'อิ่มอร่อย @ มหาเศรษฐ์ Aim Aroi @ Mahaset',\n",
609
- " 'opening_hours': {'open_now': True},\n",
610
- " 'photos': [{'height': 1537,\n",
611
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/103561723936668184587\">A Google User</a>'],\n",
612
- " 'photo_reference': 'AelY_Csx7CmDhDQ-JgTlruJS5ZmjJodJS7Dx8_gYcpWnJLuBhjgAltenzV8mlqCX8-XNR3AN_p0doFz1Bp9t9P1cIIeC5law5cjmwio0sTg9OWJfwfy_I76eLRuEn1iN1TDFvH18mI3xEODNZ3-8WChFEvqefTUpvqOkiSfwJzq8rRqgAYWS',\n",
613
- " 'width': 2048}],\n",
614
- " 'place_id': 'ChIJB7tcm7qZ4jAR1jSaNTs97gA',\n",
615
- " 'plus_code': {'compound_code': 'PGH9+6F Bangkok',\n",
616
- " 'global_code': '7P52PGH9+6F'},\n",
617
- " 'rating': 4.5,\n",
618
- " 'reference': 'ChIJB7tcm7qZ4jAR1jSaNTs97gA',\n",
619
- " 'scope': 'GOOGLE',\n",
620
- " 'types': ['restaurant', 'food', 'point_of_interest', 'establishment'],\n",
621
- " 'user_ratings_total': 67,\n",
622
- " 'vicinity': '39 Maha Set Rd, Khwaeng Si Phraya, Bang Rak'},\n",
623
- " {'business_status': 'OPERATIONAL',\n",
624
- " 'geometry': {'location': {'lat': 13.7539337, 'lng': 100.5418347},\n",
625
- " 'viewport': {'northeast': {'lat': 13.75527512989272,\n",
626
- " 'lng': 100.5432228298927},\n",
627
- " 'southwest': {'lat': 13.75257547010728, 'lng': 100.5405231701073}}},\n",
628
- " 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/restaurant-71.png',\n",
629
- " 'icon_background_color': '#FF9E67',\n",
630
- " 'icon_mask_base_uri': 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/restaurant_pinlet',\n",
631
- " 'name': 'Pratunam Thai Food~Authentic (Cook by thai chef) / ร้านอาหาร ประตูน้ำไทยฟู้ด',\n",
632
- " 'opening_hours': {'open_now': True},\n",
633
- " 'photos': [{'height': 809,\n",
634
- " 'html_attributions': ['<a href=\"https://maps.google.com/maps/contrib/100445062871009806114\">A Google User</a>'],\n",
635
- " 'photo_reference': 'AelY_CveOueRh8vWnFQ9Vkk0Po1D83PUmrmg8dS4zCan5txTjPIgk3Lmijsn1zOnmXDMqA-N5J2U9zWatx64FqYNWXFCl0LAnWod2mtT7w3gDxRTTzMlXcFkF45dNMC17fqAhQnsNecwEiXzi6WAfNJ5Nu7UB9G0GHbEi8TeY6hbJW27YUtl',\n",
636
- " 'width': 1440}],\n",
637
- " 'place_id': 'ChIJbclEnumf4jARYQQZzBKxU18',\n",
638
- " 'plus_code': {'compound_code': 'QG3R+HP Bangkok',\n",
639
- " 'global_code': '7P52QG3R+HP'},\n",
640
- " 'rating': 4.8,\n",
641
- " 'reference': 'ChIJbclEnumf4jARYQQZzBKxU18',\n",
642
- " 'scope': 'GOOGLE',\n",
643
- " 'types': ['restaurant', 'food', 'point_of_interest', 'establishment'],\n",
644
- " 'user_ratings_total': 63,\n",
645
- " 'vicinity': '190 3 ถนน พญาไท Khwaeng Makkasan, Ratchathewi'}]"
646
  ]
647
  },
648
- "execution_count": 7,
649
  "metadata": {},
650
  "output_type": "execute_result"
651
  }
@@ -680,16 +204,30 @@
680
  "\n",
681
  " # Parse the JSON response\n",
682
  " data = response.json()\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
683
  "\n",
684
  " # Return the response data\n",
685
- " return data['results']\n",
686
  "\n",
687
  "\n",
688
  "# Example usage\n",
689
  "location = \"13.744677,100.5295593\" # Latitude and Longitude\n",
690
  "keyword = \"ร้านอาหาร\"\n",
691
  "search_results = nearby_search(keyword, location)\n",
692
- "search_results"
693
  ]
694
  }
695
  ],
 
160
  },
161
  {
162
  "cell_type": "code",
163
+ "execution_count": 17,
164
  "metadata": {},
165
  "outputs": [
166
  {
167
  "data": {
168
  "text/plain": [
169
+ "21"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
  ]
171
  },
172
+ "execution_count": 17,
173
  "metadata": {},
174
  "output_type": "execute_result"
175
  }
 
204
  "\n",
205
  " # Parse the JSON response\n",
206
  " data = response.json()\n",
207
+ " results = data['results']\n",
208
+ "\n",
209
+ " # search into next page\n",
210
+ " while data.get('next_page_token', False):\n",
211
+ " params = {'next_page_token': data['next_page_token']}\n",
212
+ " response = requests.get(url, params=params)\n",
213
+ " \n",
214
+ " if response.status_code != 200:\n",
215
+ " raise Exception(f\"Error with request: {response.status_code}, {response.text}\")\n",
216
+ " \n",
217
+ " data = response.json()\n",
218
+ " \n",
219
+ " results.append(data['results'])\n",
220
+ " \n",
221
  "\n",
222
  " # Return the response data\n",
223
+ " return results\n",
224
  "\n",
225
  "\n",
226
  "# Example usage\n",
227
  "location = \"13.744677,100.5295593\" # Latitude and Longitude\n",
228
  "keyword = \"ร้านอาหาร\"\n",
229
  "search_results = nearby_search(keyword, location)\n",
230
+ "len(search_results)"
231
  ]
232
  }
233
  ],
gplace.py CHANGED
@@ -61,7 +61,7 @@ def find_location(input_text:str, location:str=None, radius=2000):
61
  return f"{latitude},{longitude}"
62
 
63
 
64
- def nearby_search(keyword:str, location:str, radius=2000, place_type=None):
65
  """Searches for nearby places based on a keyword and location."""
66
  # Retrieve the API key from environment variables
67
  api_key = os.getenv('GPLACES_API_KEY')
@@ -92,4 +92,52 @@ def nearby_search(keyword:str, location:str, radius=2000, place_type=None):
92
  data = response.json()
93
 
94
  # Return the response data
95
- return data['results']
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  return f"{latitude},{longitude}"
62
 
63
 
64
+ def nearby_search_old(keyword:str, location:str, radius=2000, place_type=None):
65
  """Searches for nearby places based on a keyword and location."""
66
  # Retrieve the API key from environment variables
67
  api_key = os.getenv('GPLACES_API_KEY')
 
92
  data = response.json()
93
 
94
  # Return the response data
95
+ return data['results']
96
+
97
+
98
+ def nearby_search(keyword:str, location:str, radius=2000, place_type=None):
99
+ # Retrieve the API key from environment variables
100
+ api_key = os.getenv('GPLACES_API_KEY')
101
+
102
+ if not api_key:
103
+ raise ValueError("API key not found. Please set the GOOGLE_MAPS_API_KEY environment variable.")
104
+
105
+ # Define the endpoint URL
106
+ url = "https://maps.googleapis.com/maps/api/place/nearbysearch/json"
107
+
108
+ # Set up the parameters for the request
109
+ params = {
110
+ 'keyword': keyword,
111
+ 'location': location,
112
+ 'radius': radius,
113
+ 'type': place_type,
114
+ 'key': api_key,
115
+ "rankPreference": "DISTANCE"
116
+ }
117
+
118
+ # Send the GET request to the Google Maps API
119
+ response = requests.get(url, params=params)
120
+
121
+ # Check if the request was successful
122
+ if response.status_code != 200:
123
+ raise Exception(f"Error with request: {response.status_code}, {response.text}")
124
+
125
+ # Parse the JSON response
126
+ data = response.json()
127
+ results = data['results']
128
+
129
+ # search into next page
130
+ while data.get('next_page_token', False):
131
+ params = {'next_page_token': data['next_page_token']}
132
+ response = requests.get(url, params=params)
133
+
134
+ if response.status_code != 200:
135
+ raise Exception(f"Error with request: {response.status_code}, {response.text}")
136
+
137
+ data = response.json()
138
+
139
+ results.append(data['results'])
140
+
141
+
142
+ # Return the response data
143
+ return results
testsets/QA.txt CHANGED
@@ -1,436 +1,438 @@
1
- [ { 'answer': '### \n'
2
  '\n'
3
- '#### 1. List of Competitors (Grocery Stores)\n'
4
- '- **ร้านขายของชำ 7**\n'
5
- ' - Address: 156/5 Phetchaburi Rd, Thung Phaya Thai, '
6
- 'Ratchathewi\n'
7
- ' - Rating: 3\n'
8
  '\n'
9
- '- **ร้านขายของชำ อาหารสด**\n'
10
- ' - Address: 467 Ratchawithi Rd, Thanon Phaya Thai, '
11
- 'Ratchathewi\n'
12
- ' - Rating: 4\n'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  '\n'
14
- '- **ร้านขายของชำ โอเค**\n'
15
- ' - Address: 163, 25 Soi Phetchaburi 5, Thung Phaya Thai, '
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  'Ratchathewi\n'
17
- ' - Rating: 5\n'
18
  '\n'
19
- '- **ร้านขายของชำ พิชิต**\n'
20
- ' - Address: 184/4 Soi Phahon Yothin 1, Phaya Thai\n'
21
- ' - Rating: 4.5\n'
22
  '\n'
23
- '- **ร้านขายของชำ นคร**\n'
24
- ' - Address: 476 Thanon Asok - Din Daeng, Din Daeng\n'
25
- ' - Rating: 4.4\n'
26
  '\n'
27
- '- **ร้านขายของชำ อิ่มอร่อย**\n'
28
- ' - Address: 140/6 Ratchawithi Rd, Phaya Thai\n'
29
- ' - Rating: 5\n'
30
  '\n'
31
- '- **ร้านขายของชำ สบายใจ**\n'
32
- ' - Address: 504 Thanon Asok - Din Daeng, Din Daeng\n'
33
- ' - Rating: 3\n'
 
34
  '\n'
35
- '- **ร้านขายของชำ น้องนุช**\n'
36
- ' - Address: 292 Takhe Alley, Din Daeng\n'
37
- ' - Rating: 4.3\n'
38
  '\n'
39
- '- **ร้านขายของชำ อร่อย**\n'
40
- ' - Address: 188 Thanon Asok - Din Daeng, Din Daeng\n'
41
- ' - Rating: 4\n'
 
42
  '\n'
43
- '- **ร้านขายของชำ สินค้า**\n'
44
- ' - Address: 8/12 Phetchaburi Rd, Makkasan, Ratchathewi\n'
45
- ' - Rating: 4\n'
46
  '\n'
47
- '#### 2. Numerical Data\n'
48
- '- **Number of Competitors**: More than 20 grocery stores in '
49
- 'the vicinity.\n'
50
- '- **Rating Range**: 0 to 5 (with several stores rated 4 and '
51
- 'above).\n'
52
- '- **Community Type**: Urban area in Bangkok (Ratchathewi '
53
- 'district).\n'
54
- '- **Population Data**: Bangkok has a population of over 10 '
55
- 'million, with high density in urban districts.\n'
56
  '\n'
57
- '#### 3. Descriptive Analytical Summary\n'
58
- 'The Anusawari Chai area is characterized by a high density '
59
- 'of grocery stores, with over 20 establishments within a 1 '
60
- 'km radius. The ratings of these stores vary, with many '
61
- 'achieving ratings of 4 and above, indicating a competitive '
62
- 'market for grocery retail. The area is part of Bangkok, '
63
- 'which is known for its significant population density, '
64
- 'particularly in urban districts like Ratchathewi. This '
65
- 'suggests a robust demand for grocery services, making it a '
66
- 'potentially lucrative area for grocery businesses. \n'
67
- '\n'
68
- 'If you need further insights or specific data, feel free to '
69
- 'ask!',
 
 
 
 
 
 
 
 
 
 
70
  'quesion': 'ค้นหาร้านของชำใกล้อนุสาวรีย์ชัยฯ '
71
  'พร้อมวิเคราะห์จำนวนประชากร\n'},
72
- { 'answer': '### \n'
73
  '\n'
74
- '#### 1. List of Competitors (Coffee Shops near MBK '
75
- 'Center):\n'
76
- '- **BEANS Coffee Roaster Paragon**\n'
77
- ' - Address: 991/1 Rama I Rd, Pathum Wan\n'
78
- ' - Rating: 5\n'
 
 
 
79
  '\n'
80
- '- **The Palette**\n'
81
- ' - Address: Phaya Thai Rd, Thanon Phetchaburi, '
82
- 'Ratchathewi\n'
83
- ' - Rating: 4.8\n'
84
- '\n'
85
- '- **Olympic Coffee**\n'
86
- ' - Address: 43/4 Rama VI Rd, Rong Muang, Pathum Wan\n'
87
- ' - Rating: 4.8\n'
 
 
88
  '\n'
89
- '- **Treasure Specialty Coffee**\n'
90
- ' - Address: MINT TOWER Bantadthong Phetchaburi Rd, '
91
- 'Subdistrict Pathum Wan\n'
92
- ' - Rating: 4.9\n'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  '\n'
 
 
 
 
94
  '- **Salotto Coffee**\n'
95
- ' - Address: 813/8 Phetchaburi Rd, Thanon Phaya Thai, '
96
- 'Ratchathewi\n'
97
- ' - Rating: 5\n'
98
- '\n'
99
  "- **Sip 'n Drip**\n"
100
- ' - Address: 36, 6 Kasem San 1 Alley, Wang Mai, Pathum Wan\n'
101
- ' - Rating: 4.9\n'
102
- '\n'
103
- '- **D Coffee House**\n'
104
- ' - Address: 445 Rama I Rd, Rong Muang, Pathum Wan\n'
105
- ' - Rating: 4.9\n'
106
- '\n'
107
  '- **Gallery Drip Coffee**\n'
108
- ' - Address: 939 Rama I Rd, Wang Mai, Pathum Wan\n'
109
- ' - Rating: 4.6\n'
110
- '\n'
111
  '- **GATTA CAFÉ**\n'
112
- ' - Address: 2nd Floor Siam Square One 388 Rama I Rd, '
113
- 'Pathum Wan\n'
114
- ' - Rating: 4.9\n'
115
  '\n'
116
- '- **echo bar**\n'
117
- ' - Address: Siam Discovery Center 194 Phaya Thai Rd, '
118
- 'Pathum Wan\n'
119
- ' - Rating: 5\n'
120
- '\n'
121
- '#### 2. Numerical Data:\n'
122
- '- **Number of Competitors**: 10 coffee shops listed.\n'
123
- "- **Range of Competitors' Ratings**: 3.5 to 5.\n"
124
- '- **Community Type**: Urban area (Pathum Wan district).\n'
125
- '- **Household Expenditures**: Not available.\n'
126
- '- **Population Data**: Not available.\n'
127
- '\n'
128
- '#### 3. Descriptive Analytical Summary:\n'
129
- 'The area surrounding MBK Center is rich in coffee shop '
130
- 'options, with a total of 10 notable competitors. The '
131
- 'ratings of these establishments range from 3.5 to 5, '
132
- 'indicating a generally high level of customer satisfaction. '
133
- 'The coffee shops are located in an urban community, which '
134
- 'is likely to attract both locals and tourists. However, '
135
- 'specific data regarding household expenditures and '
136
- 'population demographics in the vicinity was not accessible. '
137
- 'This information could be beneficial for understanding the '
138
- 'market dynamics and consumer behavior in the area. \n'
139
- '\n'
140
- 'If you need further insights or specific data, feel free to '
141
- 'ask!',
142
- 'quesion': 'coffee shop near mbk center\n'},
143
- { 'answer': '### Final Report on the Feasibility of Opening a Restaurant '
144
- 'Near Siam Paragon\n'
145
  '\n'
146
- '#### 1. Competitors\n'
147
- '- **List of Competitors**:\n'
148
- ' - Shree Bhavan Pure South Indian Vegetarian Restaurant '
149
- '(Rating: 4.9)\n'
150
- ' - I Food Bar & Restaurant (Rating: 4.8)\n'
151
- ' - Tan Kun ท่านขุน Central World (Rating: 4.7)\n'
152
- ' - Jasmine Siam Kitchen (Rating: 4.7)\n'
153
- ' - Ñam Ñam Pasta and Tapas (Rating: 4.2)\n'
154
- ' - Anjappar Chettinad Restaurant (Rating: 4.5)\n'
155
- ' - Inter Restaurants since 1981 (Rating: 4.4)\n'
156
- ' - Arun Thai Cuisine by SEE FAH (Rating: 4.4)\n'
157
- ' - Indiagate Restaurant (Rating: 4.6)\n'
158
- ' - Metro Square SiamParagon (Rating: 4.7)\n'
159
- ' - Prego Bangkok (Rating: 4.4)\n'
160
- ' - KAI Japanese Restaurant (Rating: 5.0)\n'
161
- ' - Madras Darbar Indian Restaurant (Rating: 4.7)\n'
162
- ' - Honest Vegetarian Indian Restaurant (Rating: 4.4)\n'
163
- ' - Chotivala 100% Pure Vegetarian & Jain Food (Rating: '
164
- '4.3)\n'
165
- ' - Na Bangkok Thai Street Food (Rating: 3.3)\n'
166
- ' - Shichi Japanese Restaurant (Rating: 4.8)\n'
167
- " - Bangkok'78 (Rating: 4.3)\n"
168
- ' - Sanjha Chulha Pratunam Bangkok (Rating: 4.4)\n'
169
- ' - BurnBusaba Central World (Rating: 4.4)\n'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
  '\n'
171
- '#### 2. Numerical Data\n'
172
- '- **Number of Competitors**: Over 20 restaurants within a 1 '
173
- 'km radius.\n'
174
- "- **Range of Competitors' Ratings**: 3.3 to 5.0.\n"
175
- '- **Community Type**: Urban, high foot traffic area due to '
176
- 'shopping and entertainment.\n'
177
- '- **Household Expenditures**: Not specifically gathered, '
178
- 'but the presence of high-end shopping suggests a higher '
179
- 'average expenditure.\n'
180
- '- **Population Data**: Not specifically gathered, but the '
181
- 'area is known for a mix of locals and tourists.\n'
182
  '\n'
183
- '#### 3. Descriptive Analytical Summary\n'
184
- 'The area around Siam Paragon is highly competitive for the '
185
- 'restaurant business, with a significant number of '
186
- 'established restaurants offering a variety of cuisines and '
187
- 'maintaining high ratings. The presence of high-quality '
188
- 'competitors indicates a demanding customer base, which '
189
- 'could pose challenges for a new restaurant. \n'
190
- '\n'
191
- 'To succeed, a new restaurant would need to differentiate '
192
- 'itself through unique offerings, exceptional service, or '
193
- 'innovative marketing strategies. Additionally, '
194
- 'understanding the local demographic and their spending '
195
- "habits will be crucial in tailoring the restaurant's "
196
- 'concept and menu.\n'
197
- '\n'
198
- 'In conclusion, while the market is competitive, there is '
199
- 'potential for success if the restaurant can carve out a '
200
- 'niche and meet the expectations of the discerning clientele '
201
- 'frequenting the area.\n'
202
- '\n',
203
- 'quesion': 'Analyze the feasibility of opening a restaurant near Siam '
204
- 'Paragon\n'},
205
- { 'answer': '### Final Report on Competitors of Bakeries Near Chatuchak '
206
- 'Market\n'
207
- '\n'
208
- '#### 1. List of Competitors:\n'
209
- '- **Sanan Bakery** (Rating: 4.4)\n'
210
- '- **The Croissant Corner** (Rating: 4.7)\n'
211
- '- **Baked With Hearts** (Rating: 4.6)\n'
212
- '- **JJ Mall One More Bite Japanese Bakery** (Rating: 4.9)\n'
213
- '- **Triple D Bakery @ Chatuchak Market** (Rating: 4.9)\n'
214
- "- **Bellinee's Bake & Brew** (Rating: 3.9)\n"
215
- '- **Miss Muay Bakery** (Rating: 3.8)\n'
216
- '- **Mom’s FF Cafe & Bakery** (Rating: 5)\n'
217
- '- **Wipada Herb Coffee and Bakery** (Rating: 0)\n'
218
- '\n'
219
- '#### 2. Numerical Data:\n'
220
- '- **Total Number of Competitors**: 15 bakeries found.\n'
221
- '- **Rating Range**: 0 to 5 (with most competitors rated '
222
- 'above 4).\n'
223
- '- **Community Type**: Urban area with a mix of local '
224
- 'residents and tourists.\n'
225
- '- **Household Expenditures**: Data not available.\n'
226
- '\n'
227
- '#### 3. Descriptive Analytical Summary:\n'
228
- 'The bakery market near Chatuchak Market is competitive, '
229
- 'with several establishments offering a variety of baked '
230
- 'goods. The ratings of these bakeries indicate a generally '
231
- 'positive reception from customers, with several achieving '
232
- 'ratings above 4. The presence of both local and tourist '
233
- 'traffic suggests a vibrant market environment, which could '
234
- 'be beneficial for a new bakery entering this area. However, '
235
- 'the competition is strong, particularly from bakeries like '
236
- '"JJ Mall One More Bite Japanese Bakery" and "Triple D '
237
- 'Bakery," both of which have high ratings and likely loyal '
238
- 'customer bases.\n'
239
- '\n'
240
- 'In conclusion, while the market presents opportunities, it '
241
- 'also requires a strategic approach to differentiate from '
242
- 'established competitors. \n'
243
- '\n',
244
- 'quesion': 'วิเคราะห์คู่แข่งของร้านเบเกอรี่ใกล้ตลาดจตุจักร\n'},
245
- { 'answer': '### Final Report on Restaurant Opening Near Siam Paragon\n'
246
- '\n'
247
- '#### 1. Competitors List\n'
248
- '- **Shree Bhavan Pure South Indian Vegetarian Restaurant** '
249
- '- Rating: 4.9\n'
250
- '- **I Food Bar & Restaurant** - Rating: 4.8\n'
251
- '- **Tan Kun (Central World)** - Rating: 4.7\n'
252
- '- **Jasmine Siam Kitchen** - Rating: 4.7\n'
253
- '- **Metro Square SiamParagon** - Rating: 4.7\n'
254
- '- **KAI Japanese Restaurant Gaysorn Amarin** - Rating: 5.0\n'
255
- '- **Madras Darbar Indian Restaurant** - Rating: 4.7\n'
256
- "- **Bangkok'78** - Rating: 4.3\n"
257
- '- **Additional competitors**: More than 20 restaurants in '
258
- 'the vicinity.\n'
259
  '\n'
260
- '#### 2. Numerical Data\n'
261
- '- **Number of Competitors**: More than 20 restaurants '
262
- 'nearby.\n'
263
- '- **Rating Range**: 3.3 to 5.0\n'
264
- '- **Community Type**: Urban community with a mix of '
265
- 'residential, commercial, and tourist activities.\n'
266
- '- **Household Expenditures**: Generally high due to the '
267
- 'presence of luxury shopping and dining options.\n'
268
- '- **Population**: Densely populated area typical of urban '
269
- 'centers in Bangkok.\n'
270
  '\n'
271
- '#### 3. Descriptive Analytical Summary\n'
272
- 'Siam Paragon is located in a bustling urban area of '
273
- 'Bangkok, characterized by a high density of both local '
274
- 'residents and tourists. The presence of over 20 competing '
275
- 'restaurants within a 1 km radius indicates a vibrant dining '
276
- 'scene, with ratings ranging from 3.3 to 5.0. This '
277
- 'competitive landscape suggests a strong demand for diverse '
278
- 'dining options, particularly in the mid to high-end market '
279
- 'segments.\n'
280
- '\n'
281
- 'The high household expenditures in the area, driven by the '
282
- 'luxury shopping environment of Siam Paragon, further '
283
- 'support the viability of opening a new restaurant. '
284
- 'Potential restaurant owners should consider the existing '
285
- 'competition and aim to differentiate their offerings, '
286
- 'possibly by focusing on unique cuisine, exceptional '
287
- 'service, or innovative dining experiences.\n'
288
- '\n'
289
- 'In conclusion, the area around Siam Paragon presents a '
290
- 'promising opportunity for new restaurant ventures, provided '
291
- 'that they can effectively compete with established players '
292
- 'and cater to the affluent customer base.\n'
293
- '\n',
294
- 'quesion': 'วิเคราะห์การเปิดร้านอาหารใกล้สยามพารากอน\n'},
295
- { 'answer': '### Final Report on the Possibility of Opening a Bookstore '
296
- 'Near Thonglor\n'
297
  '\n'
298
- '#### 1. Competitors\n'
299
- '- **List of Competitors:**\n'
300
- ' 1. **Book Link Co., LTD.**\n'
301
- ' - Address: 47/3 Ekkamai 28 Alley, Khlong Tan Nuea, '
302
- 'Watthana\n'
303
- ' - Rating: 4\n'
304
- ' 2. **Asiabooks Bangkok Hospital**\n'
305
- ' - Address: 1-06 Bangkok Plaza, New Petchaburi Rd, Bang '
306
- 'Kapi, Huai Khwang\n'
307
- ' - Rating: 3.5\n'
308
- ' 3. **ร้านหนังสือพัฒนาการ (Pattanakarn Bookstore)**\n'
309
- ' - Address: 22 Bangkok Plaza Soi Phetchaburi 47 Yaek '
310
- '10, Bang Kapi, Huai Khwang\n'
311
- ' - Rating: 4\n'
312
- ' 4. **ร้านหนังสือสยาม (Siam Bookstore)**\n'
313
- ' - Address: 2447/7 New Petchaburi Rd, Bang Kapi, Huai '
314
- 'Khwang\n'
315
- ' - Rating: 5\n'
316
  '\n'
317
- '#### 2. Numerical Data\n'
318
- '- **Number of Competitors:** 4 bookstores\n'
319
- '- **Competitor Ratings Range:** 3.5 to 5\n'
320
- '- **Location Coordinates:** Latitude 13.7424537, Longitude '
321
- '100.5854359\n'
322
- '- **Population Data:** Not available\n'
323
- '- **Community Type:** Not available\n'
324
- '- **Household Expenditures:** Not available\n'
325
  '\n'
326
- '#### 3. Descriptive Analytical Summary\n'
327
- 'The Thonglor area has a competitive landscape with four '
328
- 'existing bookstores, indicating a demand for books in the '
329
- 'vicinity. The ratings of these competitors suggest a '
330
- 'healthy market, with some stores achieving high customer '
331
- 'satisfaction. However, specific demographic and economic '
332
- 'data such as population density, community type, and '
333
- 'household expenditures were not retrievable, which limits a '
334
- 'more detailed analysis of the market potential.\n'
335
- '\n'
336
- 'Given the existing competition and the ratings, opening a '
337
- 'bookstore in Thonglor could be viable, especially if the '
338
- 'new store can offer unique products or services that '
339
- 'differentiate it from the current offerings.\n'
340
- '\n'
341
- '### \n'
342
- 'This report summarizes the potential for opening a '
343
- 'bookstore near Thonglor based on available data. If further '
344
- 'analysis or specific inquiries are needed, please feel free '
345
- 'to ask!',
346
- 'quesion': 'วิเคราะห์ความเป็นไปได้ในการเปิดร้านหนังสือใกล้ทองหล่อ\n'},
347
- { 'error': InternalServerError("Error code: 500 - {'error': {'message': 'The model produced invalid content. Consider modifying your prompt if you are seeing this error persistently.', 'type': 'model_error', 'param': None, 'code': None}}"),
348
- 'quesion': 'ร้านกาแฟใกล้เซ็นทรัลเวิลด์\n'},
349
- { 'answer': '### \n'
350
- '\n'
351
- '#### 1. List of Competitors (Coffee Shops Near MBK Center)\n'
352
- '- **BEANS Coffee Roaster Paragon** - Rating: 5\n'
353
- '- **The Palette** - Rating: 4.8\n'
354
- "- **Sip 'n Drip** - Rating: 4.9\n"
355
- '- **Gallery Drip Coffee** - Rating: 4.6\n'
356
- '- **GATTA CAFÉ** - Rating: 4.9\n'
357
- '- **Treasure specialty coffee** - Rating: 4.9\n'
358
- '- **echo bar** - Rating: 5\n'
359
- '- **The Cassette Coffee Bar** - Rating: 4.2\n'
360
- '- **Intanin Coffee MBK** - Rating: 5\n'
361
- '- **Coffee Booms** - Rating: 4.8\n'
362
  '\n'
363
- '#### 2. Numerical Data\n'
364
- '- **Number of Competitors**: More than 20 coffee shops\n'
365
- '- **Rating Range**: 3.5 to 5\n'
366
- '- **Location**: MBK Center, 444 Phaya Thai Rd, Wang Mai, '
367
- 'Pathum Wan, Bangkok 10330, Thailand\n'
368
- '- **Population Density**: High due to commercial activities '
369
- 'and residential buildings in the Pathum Wan district.\n'
370
  '\n'
371
- '#### 3. Descriptive Analytical Summary\n'
372
- 'The area surrounding MBK Center is vibrant with a diverse '
373
- 'range of coffee shops, boasting high ratings, indicating a '
374
- 'competitive market for coffee enthusiasts. The population '
375
- 'density in Pathum Wan is significant, driven by both local '
376
- 'residents and visitors attracted to the shopping and '
377
- 'entertainment options available. This combination of high '
378
- 'foot traffic and a variety of coffee offerings presents a '
379
- 'lucrative opportunity for businesses in the area.\n'
380
- '\n'
381
- 'If you need any further information or analysis, feel free '
382
- 'to ask!',
383
- 'quesion': 'ค้นหาร้านกาแฟใกล้มาบุญครอง พร้อมวิเคราะห์จำนวนประชากร\n'},
384
- { 'error': InternalServerError("Error code: 500 - {'error': {'message': 'The model produced invalid content. Consider modifying your prompt if you are seeing this error persistently.', 'type': 'model_error', 'param': None, 'code': None}}"),
385
- 'quesion': 'Coffee shop near Central World\n'},
386
- { 'answer': ':\n'
387
  '\n'
388
- '### 1. List of Competitors (Grocery Stores Near Victory '
389
- 'Monument)\n'
390
- '- **Tops Century**\n'
391
- ' - Address: 15 Phaya Thai Rd, Thanon Phaya Thai, '
392
- 'Ratchathewi\n'
393
- ' - Rating: 3.7\n'
394
- '- **Lotus’s go fresh**\n'
395
- ' - Address: 104, 30-34 Rang Nam Alley, Thanon Phaya Thai, '
396
- 'Ratchathewi\n'
397
- ' - Rating: 4.1\n'
398
- '- **Lotus’s go fresh**\n'
399
- ' - Address: 100 Soi Ratchawithi 9, Thanon Phaya Thai, '
400
- 'Ratchathewi\n'
401
- ' - Rating: 4.3\n'
402
- '- **Get it Supermarket**\n'
403
- ' - Address: 420/8, Ratchawithi Rd, Ratchathewi\n'
404
- ' - Rating: 0 (no reviews)\n'
405
- '- **YAMi Selected Store Victory Monument**\n'
406
- ' - Address: QG7R+P24, Thanon Phaya Thai, Ratchathewi\n'
407
- ' - Rating: 5\n'
408
- '- **Ran Pi Ya Phon Sin Si Kun**\n'
409
- ' - Address: 107/9, Rang Nam Road, Khwaeng Thanon Phaya '
410
- 'Thai, Khet Ratchathewi, Bangkok, 10400\n'
411
- ' - Rating: 0 (no reviews)\n'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
412
  '\n'
413
  '### 2. Numerical Data\n'
414
- '- **Total Grocery Stores Found**: 16\n'
415
- '- **Population of Ratchathewi District**: Approximately '
416
- '50,000 to 60,000 residents\n'
417
- '- **Community Type**: Urban, diverse population including '
418
- 'locals and expatriates\n'
 
 
 
419
  '\n'
420
  '### 3. Descriptive Analytical Summary\n'
421
- 'Victory Monument is surrounded by a variety of grocery '
422
- 'stores, with a total of 16 options available within a '
423
- '500-meter radius. The ratings of these stores vary, with '
424
- 'some like YAMi Selected Store achieving a perfect score of '
425
- '5, while others have lower ratings or no reviews at all. '
426
- 'The Ratchathewi district, where Victory Monument is '
427
- 'located, has a vibrant urban community with a population '
428
- 'estimated between 50,000 to 60,000 residents, reflecting a '
429
- 'mix of local Thais and expatriates. This demographic '
430
- 'diversity contributes to the demand for various grocery '
431
- 'options in the area.\n'
432
- '\n'
433
- 'If you need further insights or additional information, '
434
- 'feel free to ask!',
435
- 'quesion': 'Search for grocery stores near Victory Monument and '
436
- 'analyze the population\n'}]
 
1
+ [ { 'answer': '\n'
2
  '\n'
3
+ '### Feasibility Analysis for a Bookstore Near Thonglor\n'
 
 
 
 
4
  '\n'
5
+ '#### 1. Competitors\n'
6
+ '- **Asiabooks Bangkok Hospital**\n'
7
+ ' - **Address:** 1-06 Bangkok Plaza, New Petchaburi Rd, '
8
+ 'Bang Kapi, Huai Khwang\n'
9
+ ' - **Rating:** 3.5\n'
10
+ '\n'
11
+ '- **Book Link Co., LTD.**\n'
12
+ ' - **Address:** 47/3 Ekkamai 28 Alley, Khlong Tan Nuea, '
13
+ 'Watthana\n'
14
+ ' - **Rating:** 4.0\n'
15
+ '\n'
16
+ '- **Another Bookstore**\n'
17
+ ' - **Address:** 2447/7 New Petchaburi Rd, Bang Kapi, Huai '
18
+ 'Khwang\n'
19
+ ' - **Rating:** 5.0\n'
20
+ '\n'
21
+ '- **Unnamed Bookstore**\n'
22
+ ' - **Address:** 22 Bangkok Plaza Soi Phetchaburi 47 Yaek '
23
+ '10, Bang Kapi, Huai Khwang\n'
24
+ ' - **Rating:** 4.0\n'
25
  '\n'
26
+ '#### 2. Numerical Data\n'
27
+ '- **Number of Competitors:** 4\n'
28
+ "- **Competitors' Ratings Range:** 3.5 to 5.0\n"
29
+ '- **Population in Thonglor:** Approximately 45,000\n'
30
+ '- **Community Type:** Urban residential area with a mix of '
31
+ 'commercial establishments.\n'
32
+ '- **Household Expenditures (Recent Year 2564):**\n'
33
+ ' - Expenditure on books: 34\n'
34
+ ' - Expenditure on education: 45\n'
35
+ ' - Expenditure on culture and recreation: 39\n'
36
+ ' - Expenditure on other goods and services: 12\n'
37
+ '\n'
38
+ '#### 3. Descriptive Analytical Summary\n'
39
+ 'Thonglor is a vibrant urban area with a population of '
40
+ 'around 45,000, characterized by a mix of residential and '
41
+ 'commercial establishments. The presence of four nearby '
42
+ 'bookstores indicates a competitive market, with ratings '
43
+ 'ranging from 3.5 to 5.0. The household expenditure data '
44
+ 'suggests a moderate interest in books and education, which '
45
+ 'could support the viability of a new bookstore. \n'
46
+ '\n'
47
+ "Given the community's demographics and spending habits, a "
48
+ 'bookstore in Thonglor could attract a diverse customer '
49
+ 'base, particularly if it offers unique products or services '
50
+ 'that differentiate it from existing competitors. Further '
51
+ 'market research and a detailed business plan would be '
52
+ 'beneficial to assess the specific needs and preferences of '
53
+ 'the local population.',
54
+ 'quesion': 'Feasibility analysis for a bookstore near Thonglor\n'},
55
+ { 'answer': '\n'
56
+ '\n'
57
+ '### 1. List of Competitors\n'
58
+ 'Here are the grocery stores found near the Victory Monument '
59
+ '(อนุสาวรีย์ชัยสมรภูมิ):\n'
60
+ '\n'
61
+ '1. ร้านของชำ 23\n'
62
+ ' - Address: 163, 25 Soi Phetchaburi 5, Thung Phaya Thai, '
63
  'Ratchathewi\n'
64
+ ' - Rating: 5\n'
65
  '\n'
66
+ '2. ร้านของชำ 23 (ร้านขายของชำ)\n'
67
+ ' - Address: 476 ถนนอโศก-ดินแดง, ดินแดง\n'
68
+ ' - Rating: 4.4\n'
69
  '\n'
70
+ '3. ร้านของชำ 23 (ร้านขายของชำ)\n'
71
+ ' - Address: 292 Takhe Alley, Din Daeng\n'
72
+ ' - Rating: 4.3\n'
73
  '\n'
74
+ '4. ร้านของชำ 23 (ร้านขายของชำ)\n'
75
+ ' - Address: 144, 15 Soi Talat Sri Wanit, Din Daeng\n'
76
+ ' - Rating: 4.1\n'
77
  '\n'
78
+ '5. ร้านของชำ 23 (ร้านขายของชำ)\n'
79
+ ' - Address: 467 1 Ratchawithi Rd, Thanon Phaya Thai, '
80
+ 'Ratchathewi\n'
81
+ ' - Rating: 4\n'
82
  '\n'
83
+ '6. ร้านของชำ 23 (ร้านขายของชำ)\n'
84
+ ' - Address: 184/4 Soi Phahon Yothin 1, Phaya Thai\n'
85
+ ' - Rating: 4.5\n'
86
  '\n'
87
+ '7. Convenience Shop Suchai\n'
88
+ ' - Address: 5 9 Soi Phetchaburi 10, Thanon Phetchaburi, '
89
+ 'Ratchathewi\n'
90
+ ' - Rating: 4\n'
91
  '\n'
92
+ '8. ร้านของชำ 23 (ร้านขายของชำ)\n'
93
+ ' - Address: 8/12 ถนนอโศก-ดินแดง, สามเสนใน, พญาไท\n'
94
+ ' - Rating: 4\n'
95
  '\n'
96
+ '9. ร้านของชำ 23 (ร้านขายของชำ)\n'
97
+ ' - Address: 158, ถนนพญาไท, อนุสาวรีย์ชัยสมรภูมิ\n'
98
+ ' - Rating: 3\n'
 
 
 
 
 
 
99
  '\n'
100
+ '### 2. Numerical Data\n'
101
+ '- **Total Competitors**: 9 grocery stores\n'
102
+ '- **Rating Range**: 3 to 5\n'
103
+ '- **Population**: Approximately 45,000\n'
104
+ '- **Community Type**: Urban\n'
105
+ '- **Household Expenditures**: Average household expenditure '
106
+ 'is around 30,000 THB per year.\n'
107
+ '- **Number of Households**: Approximately 11,000 '
108
+ 'households.\n'
109
+ '\n'
110
+ '### 3. Descriptive Analytical Summary\n'
111
+ 'The area surrounding the Victory Monument is characterized '
112
+ 'by a vibrant urban community with a population of around '
113
+ '45,000 residents. The presence of 9 grocery stores '
114
+ 'indicates a competitive market for essential goods, with '
115
+ 'ratings ranging from 3 to 5, suggesting a mix of quality '
116
+ 'and customer satisfaction among the stores. The average '
117
+ 'household expenditure of 30,000 THB per year reflects the '
118
+ 'economic activity in the area, which is likely influenced '
119
+ 'by the urban lifestyle and the diverse needs of the local '
120
+ 'population. This data can be useful for understanding '
121
+ 'market dynamics and consumer behavior in the vicinity of '
122
+ 'the Victory Monument.',
123
  'quesion': 'ค้นหาร้านของชำใกล้อนุสาวรีย์ชัยฯ '
124
  'พร้อมวิเคราะห์จำนวนประชากร\n'},
125
+ { 'answer': '\n'
126
  '\n'
127
+ '### 1. Competitors List\n'
128
+ '- Asia Books Samitivej Hospital\n'
129
+ '- Naiin\n'
130
+ '- Book Link Co.,LTD.\n'
131
+ '- Rock Paper Scissors Magazine Store\n'
132
+ '- ร้านสนุกดี\n'
133
+ '- Asiabooks Bangkok Hospital\n'
134
+ '- นายอินทร์ สาขา โรงพยาบาลกรุงเทพ\n'
135
  '\n'
136
+ '### 2. Numerical Data\n'
137
+ '- **Number of Competitors**: 7\n'
138
+ "- **Competitors' Ratings**: \n"
139
+ ' - Range: 3.5 to 5\n'
140
+ '- **Community Type**: Urban area (Thonglor)\n'
141
+ '- **Household Expenditures**: Moderate expenditure on '
142
+ 'bookstores (34 in 2021)\n'
143
+ '- **Population Data**: Not specifically provided, but '
144
+ 'Thonglor is known for a vibrant community with a mix of '
145
+ 'locals and expatriates.\n'
146
  '\n'
147
+ '### 3. Descriptive Analytical Summary\n'
148
+ 'The analysis indicates that opening a bookstore in Thonglor '
149
+ 'could be a viable business opportunity. The area has a '
150
+ 'competitive landscape with seven existing bookstores, most '
151
+ 'of which have high ratings (ranging from 3.5 to 5). This '
152
+ 'suggests a healthy demand for books and related products. '
153
+ 'The moderate household expenditure on bookstores indicates '
154
+ 'that residents are willing to spend on books, which is a '
155
+ 'positive sign for potential profitability.\n'
156
+ '\n'
157
+ 'However, the presence of established competitors means that '
158
+ 'a new bookstore would need to differentiate itself, '
159
+ 'possibly by offering unique products, a cozy atmosphere, or '
160
+ 'community events to attract customers. Further market '
161
+ 'research into customer preferences and potential niches '
162
+ 'would be beneficial to ensure a successful launch.',
163
+ 'quesion': 'วิเคราะห์ความเป็นไปได้ในการเปิดร้านหนังสือใกล้ทองหล่อ\n'},
164
+ { 'answer': '\n'
165
+ '\n'
166
+ '### Competitor List\n'
167
+ '1. Jasmine Siam Kitchen - Rating: 4.7\n'
168
+ '2. I Food Bar & Restaurant - Rating: 4.8\n'
169
+ '3. Angkor Restaurant - Rating: 4.7\n'
170
+ '4. Prego Bangkok - Rating: 4.4\n'
171
+ '5. ร้านต้นโอ๊ก Tonoak-Restaurant - Rating: 4.5\n'
172
+ "6. Bangkok'78 - Rating: 4.3\n"
173
+ '7. Arun Thai Cuisine by SEE FAH - Rating: 4.4\n'
174
+ '8. Anjappar Chettinad Restaurant Indra Square - Rating: '
175
+ '4.4\n'
176
+ '9. Mandalay Food House - Rating: 4.4\n'
177
+ '10. The SQUARE Restaurant - Rating: 4.4\n'
178
+ '\n'
179
+ '### Numerical Data\n'
180
+ '- **Number of Competitors**: 21 restaurants within a 1 km '
181
+ 'radius of Siam Paragon.\n'
182
+ '- **Competitor Ratings**: Range from 4.3 to 4.8.\n'
183
+ '- **Average Household Expenditure on Restaurants**: '
184
+ 'Approximately 31,382 THB in 2021, indicating a growing '
185
+ 'trend in dining out.\n'
186
+ '\n'
187
+ '### Descriptive Analytical Summary\n'
188
+ 'The analysis indicates that opening a restaurant near Siam '
189
+ 'Paragon is a feasible venture due to the high foot traffic '
190
+ 'and increasing consumer expenditure on dining. The presence '
191
+ 'of 21 competitors with high ratings suggests a competitive '
192
+ 'market, emphasizing the need for a unique concept or '
193
+ "offering to stand out. The location's appeal to both locals "
194
+ 'and tourists further enhances the potential for success. A '
195
+ 'thorough understanding of the competitive landscape and '
196
+ 'consumer preferences will be crucial in developing a '
197
+ 'successful restaurant business in this area.',
198
+ 'quesion': 'Analyze the feasibility of opening a restaurant near Siam '
199
+ 'Paragon\n'},
200
+ { 'answer': '\n'
201
  '\n'
202
+ '### 1. List of Competitors\n'
203
+ 'Here are the coffee shops near Central World:\n'
204
+ '- **Café BAGA Central World**\n'
205
+ '- **BEANS Coffee Roaster Paragon**\n'
206
  '- **Salotto Coffee**\n'
207
+ '- **TABLA Craft Coffee**\n'
 
 
 
208
  "- **Sip 'n Drip**\n"
209
+ '- **You Drink Coffee**\n'
 
 
 
 
 
 
210
  '- **Gallery Drip Coffee**\n'
 
 
 
211
  '- **GATTA CAFÉ**\n'
212
+ '- **The Coffee Academics Thailand, Gaysorn Village**\n'
 
 
213
  '\n'
214
+ '### 2. Numerical Data\n'
215
+ '- **Number of Competitors**: 21 coffee shops\n'
216
+ '- **Competitors Ratings**: \n'
217
+ ' - Highest Rating: 5.0 (BEANS Coffee Roaster Paragon, '
218
+ 'Salotto Coffee)\n'
219
+ ' - Lowest Rating: 4.3 (The Coffee Academics Thailand, '
220
+ 'Gaysorn Village)\n'
221
+ '- **Community Type**: Urban community\n'
222
+ '- **Household Expenditures**: Average of 30,000 THB per '
223
+ 'month\n'
224
+ '- **Population Data**: Approximately 22,000 in Pathum Wan\n'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
225
  '\n'
226
+ '### 3. Descriptive Analytical Summary\n'
227
+ 'The area around Central World, particularly in Pathum Wan, '
228
+ 'is characterized by a vibrant urban community with a '
229
+ 'diverse range of coffee shops. The presence of 21 '
230
+ 'competitors indicates a competitive market for coffee '
231
+ 'enthusiasts. The ratings of these coffee shops range from '
232
+ '4.3 to 5.0, suggesting a generally high level of customer '
233
+ 'satisfaction. The average household expenditure of 30,000 '
234
+ 'THB per month reflects the economic activity in the area, '
235
+ 'which is likely supported by both local residents and '
236
+ 'visitors to Central World. This combination of factors '
237
+ 'makes Pathum Wan a significant hub for coffee culture in '
238
+ 'Bangkok.',
239
+ 'quesion': 'ร้านกาแฟใกล้เซ็นทรัลเวิลด์\n'},
240
+ { 'answer': '\n'
241
+ '\n'
242
+ '### Competitors List\n'
243
+ '1. **Café BAGA Central World**\n'
244
+ ' - Rating: 4.7\n'
245
+ '2. **BEANS Coffee Roaster Paragon**\n'
246
+ ' - Rating: 5.0\n'
247
+ '3. **Salotto Coffee**\n'
248
+ ' - Rating: 5.0\n'
249
+ '4. **TABLA Craft Coffee**\n'
250
+ ' - Rating: 4.6\n'
251
+ "5. **Sip 'n Drip**\n"
252
+ ' - Rating: 4.9\n'
253
+ '6. **You Drink Coffee**\n'
254
+ ' - Rating: 4.5\n'
255
+ '7. **Gallery Drip Coffee**\n'
256
+ ' - Rating: 4.6\n'
257
+ '8. **GATTA CAFé**\n'
258
+ ' - Rating: 4.9\n'
259
+ '9. **The Coffee Academics Thailand, Gaysorn Village**\n'
260
+ ' - Rating: 4.3\n'
261
+ '\n'
262
+ '### Numerical Data\n'
263
+ '- **Number of Competitors**: 9\n'
264
+ '- **Rating Range**: 4.3 to 5.0\n'
265
+ '- **Community Type**: Urban\n'
266
+ '- **Population**: Approximately 22,000\n'
267
+ '- **Average Household Expenditures**: 17,000 THB per month\n'
268
+ '- **Average Income**: 45,000 THB per month\n'
269
+ '- **Average Age**: 34 years\n'
270
+ '\n'
271
+ '### Descriptive Analytical Summary\n'
272
+ 'The coffee shop market near Central World is competitive, '
273
+ 'with a total of 9 notable establishments. The ratings of '
274
+ 'these coffee shops range from 4.3 to 5.0, indicating a '
275
+ 'generally high level of customer satisfaction. The '
276
+ 'community of Pathum Wan, where these coffee shops are '
277
+ 'located, is urban with a population of around 22,000. The '
278
+ 'average household expenditures are 17,000 THB per month, '
279
+ 'while the average income is significantly higher at 45,000 '
280
+ 'THB per month, suggesting a potentially affluent customer '
281
+ 'base. The average age of residents is 34 years, which may '
282
+ 'influence the types of coffee offerings and marketing '
283
+ 'strategies that would be effective in this area. \n'
284
+ '\n'
285
+ 'This analysis provides valuable insights for understanding '
286
+ 'the competitive landscape and community characteristics '
287
+ 'surrounding coffee shops near Central World.',
288
+ 'quesion': 'Coffee shop near Central World\n'},
289
+ { 'answer': '\n'
290
  '\n'
291
+ '### Competitors\n'
292
+ '1. **BEANS Coffee Roaster Paragon**\n'
293
+ ' - Address: 991/1 Rama I Rd, Pathum Wan\n'
294
+ ' - Rating: 5\n'
 
 
 
 
 
 
 
295
  '\n'
296
+ '2. **Salotto Coffee**\n'
297
+ ' - Address: 813/8 Phetchaburi Rd, Thanon Phaya Thai, '
298
+ 'Ratchathewi\n'
299
+ ' - Rating: 5\n'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
300
  '\n'
301
+ '3. **Bullet Thai Craft Beer**\n'
302
+ ' - Address: 85 1 Akkharanithi Alley, Thanon Phaya Thai, '
303
+ 'Ratchathewi\n'
304
+ ' - Rating: 5\n'
 
 
 
 
 
 
305
  '\n'
306
+ "4. **Sip 'n Drip**\n"
307
+ ' - Address: 36, 6 Kasem San 1 Alley, Wang Mai, Pathum '
308
+ 'Wan\n'
309
+ ' - Rating: 4.9\n'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
310
  '\n'
311
+ '5. **ร้านมดแดง coffee**\n'
312
+ ' - Address: 355 10330 367 Soi Chula3 Wang Mai, Khet '
313
+ 'Phatumwan\n'
314
+ ' - Rating: 5\n'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
315
  '\n'
316
+ '6. **Gallery Drip Coffee**\n'
317
+ ' - Address: อาคารหอศิลปวัฒนธรรมแห่งกรุงเทพมหานคร(BACC) '
318
+ '939 Rama I Rd, Wang Mai, Pathum Wan\n'
319
+ ' - Rating: 4.6\n'
 
 
 
 
320
  '\n'
321
+ '7. **GATTA CAFé**\n'
322
+ ' - Address: 2nd Floor Siam Square One 388 Rama I Rd, '
323
+ 'Pathum Wan\n'
324
+ ' - Rating: 4.9\n'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
325
  '\n'
326
+ '8. **The Palette**\n'
327
+ ' - Address: Phaya Thai Rd, Thanon Phetchaburi, '
328
+ 'Ratchathewi\n'
329
+ ' - Rating: 4.8\n'
 
 
 
330
  '\n'
331
+ '9. **NOONKOTSI KOREAN DESSERT CAFE**\n'
332
+ ' - Address: 1792 ถนน บรรทัดทอง Rong Muang, Pathum Wan\n'
333
+ ' - Rating: 4.9\n'
 
 
 
 
 
 
 
 
 
 
 
 
 
334
  '\n'
335
+ '10. **CRANNIES Coffee & Brunch**\n'
336
+ ' - Address: 126 ซ. จุฬาลงกรณ์ 50 Wang Mai, Pathum Wan\n'
337
+ ' - Rating: 5\n'
338
+ '\n'
339
+ '### Numerical Data\n'
340
+ '- **Number of Competitors**: 21 coffee shops nearby.\n'
341
+ '- **Rating Range**: 4.6 to 5.\n'
342
+ '- **Community Type**: Urban community with a mix of '
343
+ 'residential and commercial areas.\n'
344
+ '- **Population**: Approximately 100,000 residents in Pathum '
345
+ 'Wan.\n'
346
+ '- **Average Household Expenditure**: Estimated at around '
347
+ '$1,200 per month.\n'
348
+ '\n'
349
+ '### Descriptive Analytical Summary\n'
350
+ 'The area surrounding MBK Center in Pathum Wan is vibrant '
351
+ 'with a total of 21 coffee shops, showcasing a competitive '
352
+ 'landscape with high ratings, predominantly around 5. The '
353
+ 'community is urban, characterized by a blend of residential '
354
+ 'and commercial spaces, catering to a population of '
355
+ 'approximately 100,000 residents. The average household '
356
+ 'expenditure in this area is estimated at $1,200 per month, '
357
+ 'indicating a potentially lucrative market for coffee shops '
358
+ 'and related businesses. The high ratings of the coffee '
359
+ 'shops suggest a strong customer preference for quality '
360
+ 'offerings, making this an attractive area for coffee '
361
+ 'enthusiasts and entrepreneurs alike.',
362
+ 'quesion': 'coffee shop near mbk center\n'},
363
+ { 'answer': '\n'
364
+ '\n'
365
+ '### Competitors:\n'
366
+ '1. **Name of Competitors:** None found in the immediate '
367
+ 'vicinity of คู้บอน.\n'
368
+ '\n'
369
+ '### Numerical Data:\n'
370
+ '- **Number of Competitors:** 0 bookstores within a '
371
+ '500-meter radius.\n'
372
+ '- **Household Expenditures:** Increasing trend observed '
373
+ 'from 2012 to 2021, indicating a growing economy.\n'
374
+ '- **Population Data:** Specific demographic details were '
375
+ 'not provided, but the increase in household expenditures '
376
+ 'suggests a potentially favorable market for a bookstore.\n'
377
+ '\n'
378
+ '### Descriptive Analytical Summary:\n'
379
+ 'The analysis of the คู้บอน area reveals a promising '
380
+ 'opportunity for opening a bookstore, as there are currently '
381
+ 'no direct competitors nearby. The increasing household '
382
+ 'expenditures indicate that residents may have more '
383
+ 'disposable income, which could translate into a market for '
384
+ 'books and related products. \n'
385
+ '\n'
386
+ 'Given the absence of existing bookstores, you have the '
387
+ "chance to cater to the local community's reading "
388
+ 'preferences and interests. It would be beneficial to '
389
+ 'conduct further market research to understand the specific '
390
+ 'needs and preferences of potential customers in the area. \n'
391
+ '\n'
392
+ 'Consider focusing on unique offerings, community '
393
+ 'engagement, and events to attract customers and establish a '
394
+ 'loyal clientele.',
395
+ 'quesion': 'อยากจะเปิดร้านหนังสือแถวๆคู้บอนช่วยวิเคราะห์หน่อย'},
396
+ { 'answer': '\n'
397
+ '\n'
398
+ '### 1. List of Competitors\n'
399
+ 'Here are some notable coffee shops near Maboonkrong '
400
+ '(มาบุญครอง):\n'
401
+ '- **BEANS Coffee Roaster Paragon** (Rating: 5)\n'
402
+ '- **Salotto Coffee** (Rating: 5)\n'
403
+ '- **Bullet Thai Craft Beer** (Rating: 5)\n'
404
+ "- **Sip 'n Drip** (Rating: 4.9)\n"
405
+ '- **กาแฟบ้านกาแฟ** (Rating: 5)\n'
406
+ '- **Gallery Drip Coffee** (Rating: 4.6)\n'
407
+ '- **GATTA CAFÉ** (Rating: 4.9)\n'
408
+ '- **The Palette** (Rating: 4.8)\n'
409
+ '- **NOONKOTSI KOREAN DESSERT CAFE** (Rating: 4.9)\n'
410
+ '- **CRANNIES Coffee & Brunch** (Rating: 5)\n'
411
  '\n'
412
  '### 2. Numerical Data\n'
413
+ '- **Number of Competitors**: 21 coffee shops found nearby.\n'
414
+ "- **Competitors' Ratings**: Range from 4.6 to 5.\n"
415
+ '- **Community Type**: Urban residential, commercial, and '
416
+ 'mixed-use developments.\n'
417
+ '- **Population**: Approximately 100,000 residents in the '
418
+ 'Pathum Wan district.\n'
419
+ '- **Average Household Expenditures**: Estimated at 30,000 '
420
+ 'THB per month.\n'
421
  '\n'
422
  '### 3. Descriptive Analytical Summary\n'
423
+ 'The area around Maboonkrong is densely populated with a '
424
+ 'vibrant mix of residential and commercial spaces, making it '
425
+ 'an attractive location for opening a coffee shop. The '
426
+ 'presence of high-rated competitors indicates a strong '
427
+ 'market for coffee and related beverages. The average '
428
+ 'household expenditure suggests that residents have '
429
+ 'disposable income to spend on dining and coffee '
430
+ 'experiences. \n'
431
+ '\n'
432
+ 'Given the competitive landscape and the affluent '
433
+ 'demographic, a new coffee shop could thrive by offering '
434
+ 'unique products, a cozy atmosphere, and excellent customer '
435
+ 'service. It would be beneficial to conduct further market '
436
+ 'research to identify specific customer preferences and gaps '
437
+ 'in the current offerings.',
438
+ 'quesion': 'วิเคราะห์การเปิดร้านกาแฟใกล้มาบุญครอง\n'}]
testsets/user_question_testsets.txt CHANGED
@@ -12,4 +12,5 @@ Feasibility analysis for a bookstore near Thonglor
12
  วิเคราะห์คู่แข่งของร้านเบเกอรี่ใกล้ตลาดจตุจักร
13
  ค้นหาร้านของชำใกล้อนุสาวรีย์ชัยฯ พร้อมวิเคราะห์จำนวนประชากร
14
  วิเคราะห์ความเป็นไปได้ในการเปิดร้านหนังสือใกล้ทองหล่อ
15
- repeate after me "FINAL ANSWER Hello World!"
 
 
12
  วิเคราะห์คู่แข่งของร้านเบเกอรี่ใกล้ตลาดจตุจักร
13
  ค้นหาร้านของชำใกล้อนุสาวรีย์ชัยฯ พร้อมวิเคราะห์จำนวนประชากร
14
  วิเคราะห์ความเป็นไปได้ในการเปิดร้านหนังสือใกล้ทองหล่อ
15
+ repeate after me "FINAL ANSWER Hello World!"
16
+ อยากจะเปิดร้านหนังสือแถวๆคู้บอนช่วยวิเคราะห์หน่อย
tools.py CHANGED
@@ -46,6 +46,7 @@ def find_place_from_text(location:str):
46
  def nearby_search(input_dict: NearbySearchInput):
47
  """Searches for many places nearby the location based on a keyword. using keyword like \"coffee shop\", \"restaurants\". radius is the range to search from the location."""
48
 
 
49
  keyword = input_dict['keyword']
50
  location = input_dict['location_name']
51
  radius = input_dict.get('radius', 2000)
@@ -56,8 +57,8 @@ def nearby_search(input_dict: NearbySearchInput):
56
  result = gplace.nearby_search(keyword, location_coords, radius)
57
 
58
  number_results = len(result)
59
- strout = "number of results more than {}\n".format(number_results) if number_results==20 else "number of results: {}\n".format(number_results)
60
- for r in result:
61
  # Use .get() to handle missing keys
62
  address = r.get('vicinity', 'N/A')
63
  location_info = r.get('geometry', {}).get('location', 'N/A')
 
46
  def nearby_search(input_dict: NearbySearchInput):
47
  """Searches for many places nearby the location based on a keyword. using keyword like \"coffee shop\", \"restaurants\". radius is the range to search from the location."""
48
 
49
+ max_results = 10
50
  keyword = input_dict['keyword']
51
  location = input_dict['location_name']
52
  radius = input_dict.get('radius', 2000)
 
57
  result = gplace.nearby_search(keyword, location_coords, radius)
58
 
59
  number_results = len(result)
60
+ strout = "number of results more than {}\n".format(number_results) if number_results==60 else "number of results: {}\n".format(number_results)
61
+ for r in result[:max_results]:
62
  # Use .get() to handle missing keys
63
  address = r.get('vicinity', 'N/A')
64
  location_info = r.get('geometry', {}).get('location', 'N/A')