DylanonWic commited on
Commit
4d50781
1 Parent(s): 3a6ff6b

Upload 18 files

Browse files
QA_sample.ipynb ADDED
@@ -0,0 +1,665 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": 1,
6
+ "metadata": {},
7
+ "outputs": [
8
+ {
9
+ "name": "stderr",
10
+ "output_type": "stream",
11
+ "text": [
12
+ "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain_core/_api/deprecation.py:141: LangChainDeprecationWarning: The class `GooglePlacesTool` was deprecated in LangChain 0.0.33 and will be removed in 0.3.0. An updated version of the class exists in the langchain-google-community package and should be used instead. To use it run `pip install -U langchain-google-community` and import as `from langchain_google_community import GooglePlacesTool`.\n",
13
+ " warn_deprecated(\n",
14
+ "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain_core/_api/deprecation.py:141: LangChainDeprecationWarning: The class `GooglePlacesAPIWrapper` was deprecated in LangChain 0.0.33 and will be removed in 0.3.0. An updated version of the class exists in the langchain-google-community package and should be used instead. To use it run `pip install -U langchain-google-community` and import as `from langchain_google_community import GooglePlacesAPIWrapper`.\n",
15
+ " warn_deprecated(\n"
16
+ ]
17
+ }
18
+ ],
19
+ "source": [
20
+ "from chatbot_multiagent import submitUserMessage\n",
21
+ "import random\n",
22
+ "from math import inf\n",
23
+ "\n",
24
+ "def QA_sample_test(quesion_test:list[str], num_samples:int=inf):\n",
25
+ " \n",
26
+ " # Ensure there are at least 5 lines in the list\n",
27
+ " num_samples = min(10, len(quesion_test))\n",
28
+ " sample_quesion = random.sample(quesion_test, num_samples)\n",
29
+ " \n",
30
+ " result = []\n",
31
+ " for quesion in sample_quesion:\n",
32
+ " try:\n",
33
+ " answer = submitUserMessage(quesion)\n",
34
+ " result.append({'quesion': quesion, 'answer': answer}) \n",
35
+ " except Exception as e:\n",
36
+ " result.append({'quesion': quesion, 'error': e}) \n",
37
+ " \n",
38
+ " return result "
39
+ ]
40
+ },
41
+ {
42
+ "cell_type": "code",
43
+ "execution_count": 2,
44
+ "metadata": {},
45
+ "outputs": [],
46
+ "source": [
47
+ "with open('./testsets/user_question_testsets.txt', 'r') as file:\n",
48
+ " quesion_test = file.readlines() \n",
49
+ "\n",
50
+ "results = QA_sample_test(quesion_test, num_samples=15)"
51
+ ]
52
+ },
53
+ {
54
+ "cell_type": "code",
55
+ "execution_count": 3,
56
+ "metadata": {},
57
+ "outputs": [
58
+ {
59
+ "name": "stdout",
60
+ "output_type": "stream",
61
+ "text": [
62
+ "Results saved to testsets/QA.txt\n"
63
+ ]
64
+ }
65
+ ],
66
+ "source": [
67
+ "import pprint \n",
68
+ "\n",
69
+ "# Create a PrettyPrinter instance with a desired indentation level\n",
70
+ "pp = pprint.PrettyPrinter(indent=4)\n",
71
+ "\n",
72
+ "# Convert the list of dictionaries to a pretty-printed string\n",
73
+ "results_str = pp.pformat(results)\n",
74
+ "\n",
75
+ "# Specify the file path where you want to save the string\n",
76
+ "file_path = 'testsets/QA.txt'\n",
77
+ "\n",
78
+ "# Save the pretty-printed string to a .txt file\n",
79
+ "with open(file_path, 'w') as file:\n",
80
+ " file.write(results_str)\n",
81
+ "\n",
82
+ "print(f\"Results saved to {file_path}\")"
83
+ ]
84
+ },
85
+ {
86
+ "cell_type": "code",
87
+ "execution_count": 4,
88
+ "metadata": {},
89
+ "outputs": [
90
+ {
91
+ "name": "stdout",
92
+ "output_type": "stream",
93
+ "text": [
94
+ "[{'answer': 'FINAL ANSWER\\n'\n",
95
+ " '\\n'\n",
96
+ " '### Coffee Shops Near Central World, Pathum Wan, Bangkok\\n'\n",
97
+ " '\\n'\n",
98
+ " '#### Overview\\n'\n",
99
+ " 'Central World is a major shopping complex located in Pathum Wan, '\n",
100
+ " 'Bangkok. The area is bustling with various coffee shops, offering '\n",
101
+ " 'a range of options for coffee lovers. Below is a list of notable '\n",
102
+ " 'coffee shops in the vicinity, including their ratings and '\n",
103
+ " 'operational status.\\n'\n",
104
+ " '\\n'\n",
105
+ " '#### Coffee Shop Listings\\n'\n",
106
+ " '\\n'\n",
107
+ " '1. **BEANS Coffee Roaster Paragon**\\n'\n",
108
+ " ' - **Address:** 991/1 Rama I Rd, Pathum Wan\\n'\n",
109
+ " ' - **Rating:** 5\\n'\n",
110
+ " ' - **Open Now:** Yes\\n'\n",
111
+ " '\\n'\n",
112
+ " '2. **Fellas.coffee @soi tonson**\\n'\n",
113
+ " ' - **Address:** ตรงป้อมยามเก่า ตึกปิยะเพลส 34/1 Soi Ton Son, '\n",
114
+ " 'ลุมพินี Pathum Wan\\n'\n",
115
+ " ' - **Rating:** 4.9\\n'\n",
116
+ " ' - **Open Now:** Yes\\n'\n",
117
+ " '\\n'\n",
118
+ " '3. **Earthy Roaster (Specialty Coffee)**\\n'\n",
119
+ " ' - **Address:** 994 Makkasan, Ratchathewi\\n'\n",
120
+ " ' - **Rating:** 4.8\\n'\n",
121
+ " ' - **Open Now:** Yes\\n'\n",
122
+ " '\\n'\n",
123
+ " '4. **Salotto Coffee**\\n'\n",
124
+ " ' - **Address:** 813/8 Phetchaburi Rd, Thanon Phaya Thai, '\n",
125
+ " 'Ratchathewi\\n'\n",
126
+ " ' - **Rating:** 5\\n'\n",
127
+ " ' - **Open Now:** N/A\\n'\n",
128
+ " '\\n'\n",
129
+ " '5. **The Basic Coffee BKK**\\n'\n",
130
+ " ' - **Address:** ตึก Gaysorn Amarin (ชั้น 2 496-502 Phloen Chit '\n",
131
+ " 'Rd, Khwaeng Lumphini, Pathum Wan)\\n'\n",
132
+ " ' - **Rating:** 4.7\\n'\n",
133
+ " ' - **Open Now:** Yes\\n'\n",
134
+ " '\\n'\n",
135
+ " '6. **Gallery Drip Coffee**\\n'\n",
136
+ " ' - **Address:** อาคารหอศิลปวัฒนธรรมแห่งกรุงเทพมหานคร(BACC) 939 '\n",
137
+ " 'Rama I Rd, Wang Mai, Pathum Wan\\n'\n",
138
+ " ' - **Rating:** 4.6\\n'\n",
139
+ " ' - **Open Now:** Yes\\n'\n",
140
+ " '\\n'\n",
141
+ " '7. **Café BAGA Central World**\\n'\n",
142
+ " ' - **Address:** 3rd Floor, CentralWorld, Ratchadamri Rd, Pathum '\n",
143
+ " 'Wan\\n'\n",
144
+ " ' - **Rating:** 4.7\\n'\n",
145
+ " ' - **Open Now:** Yes\\n'\n",
146
+ " '\\n'\n",
147
+ " '8. **The Coffee Academics**\\n'\n",
148
+ " ' - **Address:** Velaa Sindhorn Village Langsuan, 87 Soi '\n",
149
+ " 'Langsuan, Lumphini, Pathum Wan\\n'\n",
150
+ " ' - **Rating:** 4.4\\n'\n",
151
+ " ' - **Open Now:** Yes\\n'\n",
152
+ " '\\n'\n",
153
+ " '9. **Mongkol COFFEE**\\n'\n",
154
+ " ' - **Address:** 266/15 Rama I Rd, Pathum Wan\\n'\n",
155
+ " ' - **Rating:** 4.6\\n'\n",
156
+ " ' - **Open Now:** Yes\\n'\n",
157
+ " '\\n'\n",
158
+ " '10. **echo bar**\\n'\n",
159
+ " ' - **Address:** Siam Discovery Center 194 Phaya Thai Rd, '\n",
160
+ " 'Pathum Wan\\n'\n",
161
+ " ' - **Rating:** 5\\n'\n",
162
+ " ' - **Open Now:** Yes\\n'\n",
163
+ " '\\n'\n",
164
+ " '#### Analytical Summary\\n'\n",
165
+ " 'The coffee shop scene around Central World is vibrant, with many '\n",
166
+ " 'establishments boasting high ratings (4.5 and above). Most of '\n",
167
+ " 'these coffee shops are currently open, catering to both locals '\n",
168
+ " 'and tourists. The area is characterized by a mix of specialty '\n",
169
+ " 'coffee shops and casual cafes, providing a variety of atmospheres '\n",
170
+ " 'and offerings. This presents a significant market opportunity for '\n",
171
+ " 'coffee-related businesses, especially those focusing on quality '\n",
172
+ " 'and unique experiences.\\n'\n",
173
+ " '\\n'\n",
174
+ " 'The high ratings indicate a strong customer satisfaction level, '\n",
175
+ " 'suggesting that these establishments are effectively meeting '\n",
176
+ " 'consumer expectations. The proximity to a major shopping center '\n",
177
+ " 'like Central World further enhances foot traffic, making it an '\n",
178
+ " 'attractive location for coffee shops.\\n'\n",
179
+ " '\\n'\n",
180
+ " 'If you need further insights or specific data, feel free to ask!',\n",
181
+ " 'quesion': 'ร้านกาแฟใกล้เซ็นทรัลเวิลด์\\n'},\n",
182
+ " {'answer': 'FINAL ANSWER:\\n'\n",
183
+ " '\\n'\n",
184
+ " '### Bakery Competitors Analysis Near Chatuchak Market\\n'\n",
185
+ " '\\n'\n",
186
+ " '#### Competitors Overview\\n'\n",
187
+ " '1. **Sanan Bakery**\\n'\n",
188
+ " ' - **Address:** 101 Phahonyothin Rd, Lat Yao, Chatuchak\\n'\n",
189
+ " ' - **Rating:** 4.4\\n'\n",
190
+ " ' - **Open Now:** Yes\\n'\n",
191
+ " '\\n'\n",
192
+ " '2. **The Croissant Corner**\\n'\n",
193
+ " ' - **Address:** Phahon Yothin 15 Alley, Samsen Nai, Phaya Thai, '\n",
194
+ " 'Chatuchak\\n'\n",
195
+ " ' - **Rating:** 4.7\\n'\n",
196
+ " ' - **Open Now:** Yes\\n'\n",
197
+ " '\\n'\n",
198
+ " '3. **Baked With Hearts**\\n'\n",
199
+ " ' - **Address:** 485 Phahon Yothin 18/1 Alley, Lane 1, Chom '\n",
200
+ " 'Phon, Chatuchak\\n'\n",
201
+ " ' - **Rating:** 4.6\\n'\n",
202
+ " ' - **Open Now:** Yes\\n'\n",
203
+ " '\\n'\n",
204
+ " '4. **JJ Mall One More Bite Japanese Bakery**\\n'\n",
205
+ " ' - **Address:** 588 Kamphaeng Phet 2 Rd, Chatuchak\\n'\n",
206
+ " ' - **Rating:** 4.9\\n'\n",
207
+ " ' - **Open Now:** Yes\\n'\n",
208
+ " '\\n'\n",
209
+ " '5. **Triple D Bakery @ Chatuchak Market**\\n'\n",
210
+ " ' - **Address:** 47 Section 4, Khwaeng Chatuchak, Khet '\n",
211
+ " 'Chatuchak\\n'\n",
212
+ " ' - **Rating:** 4.9\\n'\n",
213
+ " ' - **Open Now:** No\\n'\n",
214
+ " '\\n'\n",
215
+ " \"6. **Bellinee's Bake & Brew**\\n\"\n",
216
+ " ' - **Address:** Chatuchak Weekend Market, Khwaeng Chatuchak, '\n",
217
+ " 'Khet Chatuchak\\n'\n",
218
+ " ' - **Rating:** 3.9\\n'\n",
219
+ " ' - **Open Now:** Yes\\n'\n",
220
+ " '\\n'\n",
221
+ " '7. **Miss Muay Bakery**\\n'\n",
222
+ " ' - **Address:** Kamphaeng Phet Rd, Chatuchak\\n'\n",
223
+ " ' - **Rating:** 3.8\\n'\n",
224
+ " ' - **Open Now:** Yes\\n'\n",
225
+ " '\\n'\n",
226
+ " '8. **3meebakery**\\n'\n",
227
+ " ' - **Address:** Project 4, Soi 48/3, Chatuchak\\n'\n",
228
+ " ' - **Rating:** 5\\n'\n",
229
+ " ' - **Open Now:** No\\n'\n",
230
+ " '\\n'\n",
231
+ " '9. **Mom’s FF Cafe & Bakery**\\n'\n",
232
+ " ' - **Address:** 356-357, Chatuchak\\n'\n",
233
+ " ' - **Rating:** 5\\n'\n",
234
+ " ' - **Open Now:** N/A\\n'\n",
235
+ " '\\n'\n",
236
+ " '10. **Makarong**\\n'\n",
237
+ " ' - **Address:** Project 4, Soi 49/2, Chatuchak\\n'\n",
238
+ " ' - **Rating:** 4.9\\n'\n",
239
+ " ' - **Open Now:** No\\n'\n",
240
+ " '\\n'\n",
241
+ " '11. **Wipada Herb Coffee and Bakery**\\n'\n",
242
+ " ' - **Address:** 2 Kamphaeng Phet Rd, Chatuchak\\n'\n",
243
+ " ' - **Rating:** 0\\n'\n",
244
+ " ' - **Open Now:** Yes\\n'\n",
245
+ " '\\n'\n",
246
+ " '### Summary\\n'\n",
247
+ " '- **Total Competitors Found:** 15 bakeries\\n'\n",
248
+ " '- **Average Rating:** Approximately 4.4 (based on available '\n",
249
+ " 'ratings)\\n'\n",
250
+ " '- **Open Now:** Majority of the bakeries are currently open.\\n'\n",
251
+ " '\\n'\n",
252
+ " 'This competitive landscape indicates a vibrant market for '\n",
253
+ " 'bakeries in the Chatuchak area, with several high-rated options '\n",
254
+ " 'available. If you need further insights or specific data points, '\n",
255
+ " 'please let me know!',\n",
256
+ " 'quesion': 'วิเคราะห์คู่แข่งของร้านเบเกอรี่ใกล้ตลาดจตุจักร\\n'},\n",
257
+ " {'answer': 'FINAL ANSWER:\\n'\n",
258
+ " '\\n'\n",
259
+ " '### Coffee Shop Market Analysis Near MBK Center (มาบุญครอง), '\n",
260
+ " 'Pathum Wan, Bangkok\\n'\n",
261
+ " '\\n'\n",
262
+ " '#### Competitor Overview\\n'\n",
263
+ " '- **Total Coffee Shops Nearby**: Over 20 coffee shops within a 5 '\n",
264
+ " 'km radius.\\n'\n",
265
+ " '- **Top Competitors**:\\n'\n",
266
+ " ' 1. **Angle Coffee**\\n'\n",
267
+ " ' - **Address**: Makkasan, Ratchathewi\\n'\n",
268
+ " ' - **Rating**: 5\\n'\n",
269
+ " ' - **Open Now**: Yes\\n'\n",
270
+ " ' 2. **Olympic Coffee**\\n'\n",
271
+ " ' - **Address**: 43/4 Rama VI Rd, Rong Muang, Pathum Wan\\n'\n",
272
+ " ' - **Rating**: 4.8\\n'\n",
273
+ " ' - **Open Now**: Yes\\n'\n",
274
+ " ' 3. **Factory Coffee - BKK**\\n'\n",
275
+ " ' - **Address**: 49 Phaya Thai Rd, Thanon Phaya Thai, '\n",
276
+ " 'Ratchathewi\\n'\n",
277
+ " ' - **Rating**: 4.5\\n'\n",
278
+ " ' - **Open Now**: Yes\\n'\n",
279
+ " ' 4. **Treasure Specialty Coffee**\\n'\n",
280
+ " ' - **Address**: MINT TOWER Bantadthong Phetchaburi Rd, '\n",
281
+ " 'Subdistrict Pathum Wan\\n'\n",
282
+ " ' - **Rating**: 4.9\\n'\n",
283
+ " ' - **Open Now**: Yes\\n'\n",
284
+ " ' 5. **D Coffee House**\\n'\n",
285
+ " ' - **Address**: 445 Rama I Rd, Rong Muang, Pathum Wan\\n'\n",
286
+ " ' - **Rating**: 4.9\\n'\n",
287
+ " ' - **Open Now**: Yes\\n'\n",
288
+ " '\\n'\n",
289
+ " '#### Demographic Insights\\n'\n",
290
+ " '- **Location**: Pathum Wan, Bangkok 10330, Thailand\\n'\n",
291
+ " '- **Community Type**: Urban, with a mix of residential, '\n",
292
+ " 'commercial, and tourist areas.\\n'\n",
293
+ " '- **Population**: Densely populated with a mix of locals and '\n",
294
+ " 'tourists, especially due to nearby shopping centers.\\n'\n",
295
+ " '\\n'\n",
296
+ " '#### Market Opportunities\\n'\n",
297
+ " '- **Household Expenditures**: Higher disposable income in the '\n",
298
+ " 'area due to the presence of shopping malls and business '\n",
299
+ " 'districts, leading to potential higher spending on coffee.\\n'\n",
300
+ " '- **Product Offerings**: Consider focusing on specialty coffee, '\n",
301
+ " 'unique blends, and creating a cozy atmosphere to attract both '\n",
302
+ " 'locals and tourists.\\n'\n",
303
+ " '\\n'\n",
304
+ " '### Summary\\n'\n",
305
+ " 'The coffee shop market near MBK Center is competitive but offers '\n",
306
+ " 'significant opportunities due to high foot traffic and a diverse '\n",
307
+ " 'customer base. A new coffee shop can thrive by differentiating '\n",
308
+ " 'itself through unique offerings and a welcoming environment.',\n",
309
+ " 'quesion': 'วิเคราะห์การเปิดร้านกาแฟใกล้มาบุญครอง\\n'},\n",
310
+ " {'answer': 'FINAL ANSWER\\n'\n",
311
+ " '\\n'\n",
312
+ " '### Bakery Competitors Analysis Near Chatuchak Market\\n'\n",
313
+ " '\\n'\n",
314
+ " '#### Competitors Overview\\n'\n",
315
+ " '- **Total Competitors**: 15 bakeries identified in the vicinity '\n",
316
+ " 'of Chatuchak Market.\\n'\n",
317
+ " '- **Notable Competitors**:\\n'\n",
318
+ " ' 1. **Sanan Bakery**\\n'\n",
319
+ " ' - Rating: 4.4\\n'\n",
320
+ " ' - Address: 101 Phahonyothin Rd, Lat Yao, Chatuchak\\n'\n",
321
+ " ' - Open Now: Yes\\n'\n",
322
+ " ' 2. **The Croissant Corner**\\n'\n",
323
+ " ' - Rating: 4.7\\n'\n",
324
+ " ' - Address: Phahon Yothin 15 Alley, Samsen Nai, Phaya Thai, '\n",
325
+ " 'Chatuchak\\n'\n",
326
+ " ' - Open Now: Yes\\n'\n",
327
+ " ' 3. **Baked With Hearts**\\n'\n",
328
+ " ' - Rating: 4.6\\n'\n",
329
+ " ' - Address: 485 Phahon Yothin 18/1 Alley, Lane 1, Chom Phon, '\n",
330
+ " 'Chatuchak\\n'\n",
331
+ " ' - Open Now: Yes\\n'\n",
332
+ " ' 4. **JJ Mall One More Bite Japanese Bakery**\\n'\n",
333
+ " ' - Rating: 4.9\\n'\n",
334
+ " ' - Address: JJ Mall, 588 Kamphaeng Phet 2 Rd, Chatuchak\\n'\n",
335
+ " ' - Open Now: Yes\\n'\n",
336
+ " ' 5. **Triple D Bakery @ Chatuchak Market**\\n'\n",
337
+ " ' - Rating: 4.9\\n'\n",
338
+ " ' - Address: 47 Section 4, Khwaeng Chatuchak, Khet Chatuchak\\n'\n",
339
+ " ' - Open Now: No\\n'\n",
340
+ " \" 6. **Bellinee's Bake & Brew**\\n\"\n",
341
+ " ' - Rating: 3.9\\n'\n",
342
+ " ' - Address: Chatuchak Weekend Market, Khwaeng Chatuchak, Khet '\n",
343
+ " 'Chatuchak\\n'\n",
344
+ " ' - Open Now: Yes\\n'\n",
345
+ " '\\n'\n",
346
+ " '#### Location Data\\n'\n",
347
+ " '- **Main Location**: Chatuchak Weekend Market\\n'\n",
348
+ " ' - **Address**: 587, 10 Kamphaeng Phet 2 Rd, Khwaeng Chatuchak, '\n",
349
+ " 'Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\\n'\n",
350
+ " ' - **Website**: [Chatuchak '\n",
351
+ " 'Market](https://www.chatuchakmarket.org/)\\n'\n",
352
+ " '\\n'\n",
353
+ " '#### Community and Demographics\\n'\n",
354
+ " '- **Population**: The area around Chatuchak Market is densely '\n",
355
+ " 'populated, with a mix of residential and commercial spaces.\\n'\n",
356
+ " '- **Community Type**: Urban community with a vibrant market '\n",
357
+ " 'culture, attracting both locals and tourists.\\n'\n",
358
+ " '- **Household Expenditures**: The area is known for a variety of '\n",
359
+ " 'shopping options, indicating a moderate to high level of '\n",
360
+ " 'household expenditures on food and leisure.\\n'\n",
361
+ " '\\n'\n",
362
+ " '### Analytical Summary\\n'\n",
363
+ " 'The bakery market near Chatuchak Market is competitive, with '\n",
364
+ " 'several high-rated establishments. The presence of multiple '\n",
365
+ " 'bakeries suggests a strong demand for baked goods in the area, '\n",
366
+ " 'driven by both local residents and tourists visiting the market. '\n",
367
+ " \"The community's urban nature and diverse shopping options \"\n",
368
+ " 'contribute to a favorable environment for bakery businesses. The '\n",
369
+ " 'data indicates opportunities for new entrants to capture market '\n",
370
+ " 'share, especially if they can differentiate themselves through '\n",
371
+ " 'unique offerings or superior customer service.',\n",
372
+ " 'quesion': 'Analyze competitors of a bakery near Chatuchak Market\\n'},\n",
373
+ " {'answer': 'FINAL ANSWER\\n'\n",
374
+ " '\\n'\n",
375
+ " '### Analysis for Opening a Restaurant Near Siam Paragon\\n'\n",
376
+ " '\\n'\n",
377
+ " '#### Location Information\\n'\n",
378
+ " '- **Siam Paragon**\\n'\n",
379
+ " ' - **Address:** 991/1 Rama I Rd, Khwaeng Pathum Wan, Pathum Wan, '\n",
380
+ " 'Krung Thep Maha Nakhon 10330, Thailand\\n'\n",
381
+ " ' - **Phone:** 02 690 1000\\n'\n",
382
+ " ' - **Website:** [Siam Paragon](https://www.siamparagon.co.th/)\\n'\n",
383
+ " '\\n'\n",
384
+ " '#### Nearby Competitors (Restaurants)\\n'\n",
385
+ " '1. **Shree Bhavan Pure South Indian Vegetarian Restaurant**\\n'\n",
386
+ " ' - **Address:** 120 Pratunam Market, 45 Ratchaprarop Rd, Thanon '\n",
387
+ " 'Phaya Thai, Ratchathewi\\n'\n",
388
+ " ' - **Rating:** 4.9\\n'\n",
389
+ " ' - **Open Now:** Yes\\n'\n",
390
+ " '\\n'\n",
391
+ " '2. **I Food Bar & Restaurant**\\n'\n",
392
+ " ' - **Address:** No.49/26, Soi Petchburi 15, Phetchaburi Rd, '\n",
393
+ " 'Subdistrict, Ratchathewi\\n'\n",
394
+ " ' - **Rating:** 4.8\\n'\n",
395
+ " ' - **Open Now:** Yes\\n'\n",
396
+ " '\\n'\n",
397
+ " '3. **Tan Kun (ท่านขุน) Central World**\\n'\n",
398
+ " ' - **Address:** ชั้น 1st fl โซนฮักไทย (hug thai Zone) '\n",
399
+ " 'ติดประตูทางออกโรงแรมเซ็นทรา 4 Central World\\n'\n",
400
+ " ' - **Rating:** 4.7\\n'\n",
401
+ " ' - **Open Now:** Yes\\n'\n",
402
+ " '\\n'\n",
403
+ " '4. **Jasmine Siam Kitchen (จัสมิน สยาม คิทเช่น)**\\n'\n",
404
+ " ' - **Address:** 497, 14-15 Phetchaburi Rd, Thung Phaya Thai, '\n",
405
+ " 'Ratchathewi\\n'\n",
406
+ " ' - **Rating:** 4.7\\n'\n",
407
+ " ' - **Open Now:** Yes\\n'\n",
408
+ " '\\n'\n",
409
+ " '5. **Ñam Ñam Pasta and Tapas (CentralWorld)**\\n'\n",
410
+ " ' - **Address:** Level 3 4, 4 Ratchadamri Rd, Khwaeng Pathum '\n",
411
+ " 'Wan, Pathum Wan\\n'\n",
412
+ " ' - **Rating:** 4.2\\n'\n",
413
+ " ' - **Open Now:** Yes\\n'\n",
414
+ " '\\n'\n",
415
+ " '6. **Anjappar Chettinad Restaurant Indra Square**\\n'\n",
416
+ " ' - **Address:** 120, 23 Ratchrarop Soi 3, Khwaeng Thanon Phaya '\n",
417
+ " 'Thai, Ratchathewi\\n'\n",
418
+ " ' - **Rating:** 4.5\\n'\n",
419
+ " ' - **Open Now:** Yes\\n'\n",
420
+ " '\\n'\n",
421
+ " '7. **Jim Thompson, A Thai Restaurant**\\n'\n",
422
+ " ' - **Address:** 6, 1 Kasem San 2 Alley, Wang Mai, Pathum Wan\\n'\n",
423
+ " ' - **Rating:** 4.5\\n'\n",
424
+ " ' - **Open Now:** Yes\\n'\n",
425
+ " '\\n'\n",
426
+ " '8. **Inter Restaurants since 1981**\\n'\n",
427
+ " ' - **Address:** 432/1-2 Siam Square 9 Alley, Pathum Wan\\n'\n",
428
+ " ' - **Rating:** 4.4\\n'\n",
429
+ " ' - **Open Now:** Yes\\n'\n",
430
+ " '\\n'\n",
431
+ " '9. **Arun Thai Cuisine by SEE FAH**\\n'\n",
432
+ " ' - **Address:** ชั้น L Grande Centre Point Ratchadamri 153/2 '\n",
433
+ " 'Mahatlek Luang 1 Alley, Lumphini, Pathum Wan\\n'\n",
434
+ " ' - **Rating:** 4.4\\n'\n",
435
+ " ' - **Open Now:** Yes\\n'\n",
436
+ " '\\n'\n",
437
+ " '10. **Metro Square SiamParagon**\\n'\n",
438
+ " ' - **Address:** 991 Rama I Rd, Khwaeng Pathum Wan, Pathum Wan\\n'\n",
439
+ " ' - **Rating:** 4.7\\n'\n",
440
+ " ' - **Open Now:** Yes\\n'\n",
441
+ " '\\n'\n",
442
+ " '#### Market Insights\\n'\n",
443
+ " '- **Number of Competitors:** There are over 20 restaurants within '\n",
444
+ " 'a 1 km radius of Siam Paragon.\\n'\n",
445
+ " '- **Community Type:** The area is a bustling commercial hub with '\n",
446
+ " 'high foot traffic, especially from tourists and shoppers.\\n'\n",
447
+ " '- **Potential Customer Base:** The proximity to shopping centers '\n",
448
+ " 'and tourist attractions suggests a diverse customer base, '\n",
449
+ " 'including locals and international visitors.\\n'\n",
450
+ " '\\n'\n",
451
+ " '#### Conclusion\\n'\n",
452
+ " 'The area around Siam Paragon is highly competitive with numerous '\n",
453
+ " 'well-rated restaurants. However, the high foot traffic and '\n",
454
+ " 'diverse clientele present a significant opportunity for a new '\n",
455
+ " 'restaurant. Consider offering a unique cuisine or dining '\n",
456
+ " 'experience to stand out in this vibrant market.',\n",
457
+ " 'quesion': 'วิเคราะห์การเปิดร้านอาหารใกล้สยามพารากอน\\n'},\n",
458
+ " {'answer': 'The feasibility of opening a restaurant near Siam Paragon is '\n",
459
+ " 'promising due to the following insights:\\n'\n",
460
+ " '\\n'\n",
461
+ " '1. **Location**: Siam Paragon is situated in a prime commercial '\n",
462
+ " 'area with high foot traffic, making it an attractive spot for a '\n",
463
+ " 'restaurant.\\n'\n",
464
+ " '\\n'\n",
465
+ " '2. **Competition**: There are over 20 restaurants within a 1 km '\n",
466
+ " 'radius, indicating a competitive market. Notable competitors '\n",
467
+ " 'include:\\n'\n",
468
+ " ' - Shree Bhavan Pure South Indian Vegetarian Restaurant '\n",
469
+ " '(Rating: 4.9)\\n'\n",
470
+ " ' - I Food Bar & Restaurant (Rating: 4.8)\\n'\n",
471
+ " ' - Tan Kun (Central World) (Rating: 4.7)\\n'\n",
472
+ " ' - Metro Square SiamParagon (Rating: 4.7)\\n'\n",
473
+ " ' - KAI Japanese Restaurant Gaysorn Amarin (Rating: 5.0)\\n'\n",
474
+ " '\\n'\n",
475
+ " '3. **Market Demand**: The presence of numerous high-rated '\n",
476
+ " 'restaurants suggests a strong demand for dining options, '\n",
477
+ " 'indicating a favorable environment for a new restaurant.\\n'\n",
478
+ " '\\n'\n",
479
+ " '4. **Target Audience**: The area attracts both locals and '\n",
480
+ " 'tourists, providing a diverse customer base.\\n'\n",
481
+ " '\\n'\n",
482
+ " '5. **Operational Considerations**: To succeed, the new restaurant '\n",
483
+ " 'must differentiate itself through unique offerings, competitive '\n",
484
+ " 'pricing, and effective marketing strategies.\\n'\n",
485
+ " '\\n'\n",
486
+ " 'In conclusion, while competition is significant, the high foot '\n",
487
+ " 'traffic and demand for dining options near Siam Paragon present a '\n",
488
+ " 'feasible opportunity for opening a restaurant, especially with a '\n",
489
+ " 'unique concept. Further market research and a solid business plan '\n",
490
+ " 'will be essential for success.',\n",
491
+ " 'quesion': 'Analyze the feasibility of opening a restaurant near Siam '\n",
492
+ " 'Paragon\\n'},\n",
493
+ " {'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",
494
+ " 'quesion': 'ค้นหาร้านของชำใกล้อนุสาวรีย์ชัยฯ พร้อมวิเคราะห์จำนวนประชากร\\n'},\n",
495
+ " {'answer': 'FINAL ANSWER\\n'\n",
496
+ " '\\n'\n",
497
+ " '### Market Analysis for Opening a Bookstore Near Thong Lo\\n'\n",
498
+ " '\\n'\n",
499
+ " '#### Competitor Overview\\n'\n",
500
+ " '1. **Asiabooks Bangkok Hospital**\\n'\n",
501
+ " ' - **Address**: 1-06 Bangkok Plaza, New Petchaburi Rd, Bang '\n",
502
+ " 'Kapi, Huai Khwang\\n'\n",
503
+ " ' - **Rating**: 3.5\\n'\n",
504
+ " ' - **Open Now**: Yes\\n'\n",
505
+ " '\\n'\n",
506
+ " '2. **นายอินทร์ สาขา โรงพยาบาลกรุงเทพ**\\n'\n",
507
+ " ' - **Address**: 22 Bangkok Plaza, Soi Phetchaburi 47 Yaek 10, '\n",
508
+ " 'Bang Kapi, Huai Khwang\\n'\n",
509
+ " ' - **Rating**: 4\\n'\n",
510
+ " ' - **Open Now**: Yes\\n'\n",
511
+ " '\\n'\n",
512
+ " '3. **Book Link Co.,LTD.**\\n'\n",
513
+ " ' - **Address**: 47/3 Ekkamai 28 Alley, Khlong Tan Nuea, '\n",
514
+ " 'Watthana\\n'\n",
515
+ " ' - **Rating**: 4\\n'\n",
516
+ " ' - **Open Now**: Yes\\n'\n",
517
+ " '\\n'\n",
518
+ " '4. **ร้านสนุกดี**\\n'\n",
519
+ " ' - **Address**: 2447/7 New Petchaburi Rd, Bang Kapi, Huai '\n",
520
+ " 'Khwang\\n'\n",
521
+ " ' - **Rating**: 5\\n'\n",
522
+ " ' - **Open Now**: Yes\\n'\n",
523
+ " '\\n'\n",
524
+ " '#### Insights\\n'\n",
525
+ " '- **Competition**: There are currently four bookstores within a '\n",
526
+ " '500-meter radius of Thong Lo, indicating a competitive market.\\n'\n",
527
+ " '- **Customer Ratings**: The ratings of existing bookstores range '\n",
528
+ " 'from 3.5 to 5, suggesting a moderate to high level of customer '\n",
529
+ " 'satisfaction.\\n'\n",
530
+ " '- **Market Demand**: The presence of multiple bookstores '\n",
531
+ " 'indicates a demand for books in the area, but also highlights the '\n",
532
+ " 'need for differentiation.\\n'\n",
533
+ " '\\n'\n",
534
+ " '#### Missing Data\\n'\n",
535
+ " '- **Population Data**: No specific population data was found for '\n",
536
+ " 'the area.\\n'\n",
537
+ " '- **Community Type**: No specific community type data was found '\n",
538
+ " 'for the area.\\n'\n",
539
+ " '- **Household Expenditures**: No specific household expenditure '\n",
540
+ " 'data was found for the area.\\n'\n",
541
+ " '\\n'\n",
542
+ " '### Conclusion\\n'\n",
543
+ " 'Opening a bookstore near Thong Lo could be a viable business '\n",
544
+ " \"opportunity, given the area's vibrancy and existing demand for \"\n",
545
+ " 'books. However, it is crucial to differentiate the new bookstore '\n",
546
+ " 'from existing competitors through unique offerings or services. '\n",
547
+ " \"Further research into the community's demographics and spending \"\n",
548
+ " 'habits would enhance the understanding of the market potential.',\n",
549
+ " 'quesion': 'วิเคราะห์ความเป็นไปได้ในการเปิดร้านหนังสือใกล้ทองหล่อ'},\n",
550
+ " {'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",
551
+ " 'quesion': 'ค้นหาร้านกาแฟใกล้มาบุญครอง พร้อมวิเคราะห์จำนวนประชากร\\n'},\n",
552
+ " {'answer': 'FINAL ANSWER:\\n'\n",
553
+ " '\\n'\n",
554
+ " '### Coffee Shops Near Central World and Pathum Wan, Bangkok\\n'\n",
555
+ " '\\n'\n",
556
+ " '#### Coffee Shops Near Central World\\n'\n",
557
+ " '1. **BEANS Coffee Roaster Paragon**\\n'\n",
558
+ " ' - **Address**: 991/1 Rama I Rd, Pathum Wan\\n'\n",
559
+ " ' - **Rating**: 5\\n'\n",
560
+ " ' - **Open Now**: Yes\\n'\n",
561
+ " '\\n'\n",
562
+ " '2. **Fellas.coffee @soi tonson**\\n'\n",
563
+ " ' - **Address**: 34/1 Soi Ton Son, Pathum Wan\\n'\n",
564
+ " ' - **Rating**: 4.9\\n'\n",
565
+ " ' - **Open Now**: Yes\\n'\n",
566
+ " '\\n'\n",
567
+ " '3. **Earthy Roaster (Specialty Coffee)**\\n'\n",
568
+ " ' - **Address**: 994 Makkasan, Ratchathewi\\n'\n",
569
+ " ' - **Rating**: 4.8\\n'\n",
570
+ " ' - **Open Now**: Yes\\n'\n",
571
+ " '\\n'\n",
572
+ " '4. **Café BAGA Central World**\\n'\n",
573
+ " ' - **Address**: 3rd Floor, CentralWorld, Ratchadamri Rd, Pathum '\n",
574
+ " 'Wan\\n'\n",
575
+ " ' - **Rating**: 4.7\\n'\n",
576
+ " ' - **Open Now**: Yes\\n'\n",
577
+ " '\\n'\n",
578
+ " '5. **Early Bird Coffee - Chit Lom BTS**\\n'\n",
579
+ " ' - **Address**: Chit Lom BTS Lumpini, Pathum Wan\\n'\n",
580
+ " ' - **Rating**: 4.8\\n'\n",
581
+ " ' - **Open Now**: Yes\\n'\n",
582
+ " '\\n'\n",
583
+ " '#### Additional Coffee Shops in Pathum Wan\\n'\n",
584
+ " '1. **Angle Coffee**\\n'\n",
585
+ " ' - **Address**: Makkasan, Ratchathewi\\n'\n",
586
+ " ' - **Rating**: 5\\n'\n",
587
+ " ' - **Open Now**: Yes\\n'\n",
588
+ " '\\n'\n",
589
+ " '2. **Olympic Coffee**\\n'\n",
590
+ " ' - **Address**: 43/4 Rama VI Rd, Rong Muang, Pathum Wan\\n'\n",
591
+ " ' - **Rating**: 4.8\\n'\n",
592
+ " ' - **Open Now**: Yes\\n'\n",
593
+ " '\\n'\n",
594
+ " '3. **Factory Coffee - BKK**\\n'\n",
595
+ " ' - **Address**: 49 Phaya Thai Rd, Thanon Phaya Thai, '\n",
596
+ " 'Ratchathewi\\n'\n",
597
+ " ' - **Rating**: 4.5\\n'\n",
598
+ " ' - **Open Now**: Yes\\n'\n",
599
+ " '\\n'\n",
600
+ " '4. **Treasure Specialty Coffee**\\n'\n",
601
+ " ' - **Address**: MINT TOWER Bantadthong Phetchaburi Rd, Pathum '\n",
602
+ " 'Wan\\n'\n",
603
+ " ' - **Rating**: 4.9\\n'\n",
604
+ " ' - **Open Now**: Yes\\n'\n",
605
+ " '\\n'\n",
606
+ " '5. **D Coffee House**\\n'\n",
607
+ " ' - **Address**: 445 Rama I Rd, Rong Muang, Pathum Wan\\n'\n",
608
+ " ' - **Rating**: 4.9\\n'\n",
609
+ " ' - **Open Now**: Yes\\n'\n",
610
+ " '\\n'\n",
611
+ " '### General Insights\\n'\n",
612
+ " '- **Location**: Pathum Wan, Bangkok 10330, Thailand\\n'\n",
613
+ " '- **Population**: Approximately 100,000 (assumed based on urban '\n",
614
+ " 'density)\\n'\n",
615
+ " '- **Community Type**: Urban\\n'\n",
616
+ " '- **Household Expenditures**: Average household expenditure in '\n",
617
+ " 'urban Bangkok is around 30,000 THB per month (assumed).\\n'\n",
618
+ " '- **Competitors**: More than 20 coffee shops identified in the '\n",
619
+ " 'vicinity.\\n'\n",
620
+ " '\\n'\n",
621
+ " '### Analytical Summary\\n'\n",
622
+ " 'The coffee shop market around Central World and Pathum Wan is '\n",
623
+ " 'vibrant, with numerous high-rated establishments. The area is '\n",
624
+ " 'characterized by a mix of local and specialty coffee shops, '\n",
625
+ " 'catering to a diverse clientele. The high ratings indicate a '\n",
626
+ " 'strong customer satisfaction level, suggesting opportunities for '\n",
627
+ " 'new entrants to focus on unique offerings or experiences. The '\n",
628
+ " 'urban setting and significant foot traffic from nearby '\n",
629
+ " 'attractions like Central World provide a favorable environment '\n",
630
+ " 'for coffee businesses. \\n'\n",
631
+ " '\\n'\n",
632
+ " 'This report provides a comprehensive overview of the coffee shop '\n",
633
+ " 'landscape in the area, highlighting both competitive insights and '\n",
634
+ " 'market opportunities.',\n",
635
+ " 'quesion': 'Coffee shop near Central World\\n'}]\n"
636
+ ]
637
+ }
638
+ ],
639
+ "source": [
640
+ "pprint.pprint(results)"
641
+ ]
642
+ }
643
+ ],
644
+ "metadata": {
645
+ "kernelspec": {
646
+ "display_name": "Python 3",
647
+ "language": "python",
648
+ "name": "python3"
649
+ },
650
+ "language_info": {
651
+ "codemirror_mode": {
652
+ "name": "ipython",
653
+ "version": 3
654
+ },
655
+ "file_extension": ".py",
656
+ "mimetype": "text/x-python",
657
+ "name": "python",
658
+ "nbconvert_exporter": "python",
659
+ "pygments_lexer": "ipython3",
660
+ "version": "3.11.9"
661
+ }
662
+ },
663
+ "nbformat": 4,
664
+ "nbformat_minor": 2
665
+ }
chatbot_multiagent.ipynb CHANGED
@@ -74,7 +74,7 @@
74
  "from langchain_community.document_loaders import CSVLoader\n",
75
  "from langchain_openai import OpenAIEmbeddings\n",
76
  "import glob\n",
77
- "from langchain.tools import Tool\n",
78
  "\n",
79
  "def format_docs(docs):\n",
80
  " return \"\\n\\n\".join(doc.page_content for doc in docs)\n",
@@ -104,15 +104,15 @@
104
  "\n",
105
  "\n",
106
  "## tools and LLM\n",
107
- "retriever_tool = Tool(\n",
108
- " name=\"population_community_ousehold_expenditures_data\",\n",
109
- " func=retriever.get_relevant_documents,\n",
110
- " description=\"Use this tool to retrieve information about population, community and household expenditures.\"\n",
111
  ")\n",
112
  "\n",
113
  "# Bind the tools to the model\n",
114
- "# tools = [retriever_tool, find_place_from_text, nearby_search] # Include both tools if needed\n",
115
- "tools = [find_place_from_text, nearby_search]\n",
116
  "\n",
117
  "llm = ChatOpenAI(model=\"gpt-4o-mini\", temperature=0.0)\n",
118
  "\n",
@@ -264,7 +264,7 @@
264
  },
265
  {
266
  "cell_type": "code",
267
- "execution_count": 6,
268
  "metadata": {},
269
  "outputs": [
270
  {
@@ -274,141 +274,155 @@
274
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
275
  "Name: analyst\n",
276
  "Tool Calls:\n",
277
- " google_places (call_81AeKm81mGnKIVPQMqY6B3os)\n",
278
- " Call ID: call_81AeKm81mGnKIVPQMqY6B3os\n",
279
  " Args:\n",
280
- " query: ตลาดจตุจักร\n",
281
- " nearby_search (call_xofWhjOlNKMDTm4DM70iBM0X)\n",
282
- " Call ID: call_xofWhjOlNKMDTm4DM70iBM0X\n",
283
  " Args:\n",
284
- " input_dict: {'keyword': 'bakery', 'location_name': 'ตลาดจตุจักร', 'radius': 500, 'place_type': 'bakery'}\n",
285
  "=================================\u001b[1m Tool Message \u001b[0m=================================\n",
286
  "Name: google_places\n",
287
  "\n",
288
- "1. Chatuchak Weekend Market\n",
289
- "Address: 587, 10 Kamphaeng Phet 2 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
290
- "Google place ID: ChIJ3fiD6BSc4jARS324hNeR8ZE\n",
291
- "Phone: Unknown\n",
292
- "Website: https://www.chatuchakmarket.org/\n",
293
  "\n",
294
  "\n",
295
- "2. Chatuchak Market 2 (Mueang Min)\n",
296
- "Address: Min Buri, Bangkok 10510, Thailand\n",
297
- "Google place ID: ChIJc0wng_hlHTER4F1VFEBu9R0\n",
298
- "Phone: 02 518 2062\n",
299
- "Website: https://m.facebook.com/pg/%E0%B8%95%E0%B8%A5%E0%B8%B2%E0%B8%94%E0%B8%99%E0%B8%B1%E0%B8%94%E0%B8%88%E0%B8%95%E0%B8%B8%E0%B8%88%E0%B8%B1%E0%B8%81%E0%B8%A3-%E0%B9%92-%E0%B9%80%E0%B8%A1%E0%B8%B7%E0%B8%AD%E0%B8%87%E0%B8%A1%E0%B8%B5%E0%B8%99-679468482225340/posts/\n",
300
  "\n",
301
  "\n",
302
- "3. Jatujak Plaza\n",
303
- "Address: 599 Kamphaeng Phet 2 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
304
- "Google place ID: ChIJz9JH_RSc4jARPvh8LMgxS5Q\n",
305
- "Phone: 02 265 9684\n",
306
- "Website: Unknown\n",
307
  "\n",
308
  "\n",
309
- "4. ตลาดปลาจตุจักร\n",
310
- "Address: ติดกับ เจเจ มอลล์ ออก��ระตู 2, ถ. กำแพงเพชร 2 แขวงจตุจักร เขตจตุจักร กรุงเทพมหานคร 10900, Thailand\n",
311
- "Google place ID: ChIJyVzuMWuc4jARCWF_uACiWe4\n",
312
- "Phone: 02 265 9888\n",
313
- "Website: https://ตลาดปลาจตุจักร.com/\n",
314
  "\n",
315
  "\n",
316
- "5. Chatuchak Weekend Market (Minburi)\n",
317
- "Address: มีนบุรี จตุจักร มีนบุรี Khwaeng Min Buri, Khet Min Buri, Krung Thep Maha Nakhon 10510, Thailand\n",
318
- "Google place ID: ChIJ0TcXlz1lHTERCZL-6Nw6WBU\n",
319
- "Phone: 098 446 3597\n",
320
- "Website: Unknown\n",
321
  "\n",
322
  "\n",
323
- "6. Or Tor Kor Market\n",
324
- "Address: 101 Thanon Kamphaeng Phet, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
325
- "Google place ID: ChIJw4KnHhSc4jARdq9pN389cO8\n",
326
- "Phone: 02 279 2080\n",
327
- "Website: http://www.mof.or.th/\n",
328
  "\n",
329
  "\n",
330
- "7. JJ Mall Chatuchak\n",
331
- "Address: 588 Kamphaeng Phet 2 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
332
- "Google place ID: ChIJQ2IA1xSc4jARPUC_qVZP9U4\n",
333
- "Phone: 02 265 9999\n",
334
- "Website: http://www.jjmall.co.th/\n",
335
  "\n",
336
  "\n",
337
- "8. Chatuchak Flower Market\n",
338
- "Address: RH22+956, Thanon Kamphaeng Phet, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
339
- "Google place ID: ChIJ5a5ULRKc4jARW0oKzuTyMcQ\n",
340
- "Phone: Unknown\n",
341
  "Website: Unknown\n",
342
  "\n",
343
  "\n",
344
- "9. Chatuchak Night Market\n",
345
- "Address: เลขที่ โครงการ 9 ซอย 13/1 เลขที่ 015 จตุจักร, แขวงจตุจักร เขตจตุจักร กรุงเทพมหานคร 10900, Thailand\n",
346
- "Google place ID: ChIJj2r5qFqd4jARN8g-HGfi0U0\n",
347
- "Phone: Unknown\n",
348
- "Website: https://www.chatuchakmarket.org/\n",
349
  "\n",
350
  "\n",
351
- "10. Mixt Chatuchak\n",
352
- "Address: 8 Kamphaeng Phet 3 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
353
- "Google place ID: ChIJdZYPAOid4jARV2-4R9rzO-A\n",
354
- "Phone: 02 079 4888\n",
355
- "Website: http://www.mixtchatuchak.com/\n",
356
  "\n",
357
  "\n",
358
- "11. Chatuchak\n",
359
- "Address: Chatuchak, Bangkok 10900, Thailand\n",
360
- "Google place ID: ChIJL1rMWl2c4jARQI7iXbIAAQQ\n",
361
- "Phone: Unknown\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
362
  "Website: Unknown\n",
363
  "\n",
364
  "\n",
365
- "12. Punk Berry Chatuchak Weekend Market\n",
366
- "Address: โครงการ3 ซอย44/1 ห้อง180 Khwaeng Chatuchak, จตุจักร Krung Thep Maha Nakhon 10900, Thailand\n",
367
- "Google place ID: ChIJyZniAgGd4jARUhi78LZrHEM\n",
368
- "Phone: 091 795 4956\n",
369
- "Website: https://www.punkberryth.com/\n",
370
  "\n",
371
  "\n",
372
- "13. J. Market\n",
373
- "Address: อาคาร J.Market 2137/27 ซอย อมรพันธุ์ แขวง ลาดยาว Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
374
- "Google place ID: ChIJdTehduKc4jARbXLUV6mm5kw\n",
375
- "Phone: Unknown\n",
376
  "Website: Unknown\n",
377
  "\n",
378
  "\n",
379
- "14. Chatuchak Park\n",
380
- "Address: Kamphaeng Phet 3 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
381
- "Google place ID: ChIJnZuu10Oc4jAR0DkLPbMAAQ8\n",
382
  "Phone: Unknown\n",
383
- "Website: Unknown\n",
384
  "\n",
385
  "\n",
386
- "15. Train Night Market DanNeramit\n",
387
- "Address: Phahon Yothin Rd, Khwaeng Chom Phon, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
388
- "Google place ID: ChIJN6wMZrmd4jARlUCRUDLj41Y\n",
389
- "Phone: 098 709 8779\n",
390
- "Website: http://www.facebook.com/TrainNightMarket.danneramit\n",
391
  "\n",
392
  "\n",
393
- "16. JJ Pet Market\n",
394
- "Address: Chatuchak, Bangkok 10900, Thailand\n",
395
- "Google place ID: ChIJzajYMhWc4jARn4c8OYVuxDg\n",
396
- "Phone: Unknown\n",
397
- "Website: Unknown\n",
398
  "\n",
399
  "\n",
400
- "17. PTT Farmers' Market\n",
401
- "Address: 3 ซอย นิคมรถไฟสาย 1 Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
402
- "Google place ID: ChIJoao4bVyc4jARcIN3FSHqfME\n",
403
- "Phone: Unknown\n",
404
- "Website: Unknown\n",
405
  "\n",
406
  "\n",
407
- "18. JAPARA @Jatujak Market\n",
408
- "Address: Chatuchak Weekend Market (Section 2) Soi 41/1 Room.281-282, ถนน กำแพงเพชร 3 แขวงลาดยาว เขตจตุจักร กรุงเทพมหานคร 10900, Thailand\n",
409
- "Google place ID: ChIJBRQuqNyd4jARgvHqttIaTvY\n",
410
- "Phone: 089 759 9882\n",
411
- "Website: Unknown\n",
412
  "\n",
413
  "\n",
414
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
@@ -416,571 +430,194 @@
416
  "\n",
417
  "I have gathered information about bakeries near Chatuchak Market. Here are some of the competitors:\n",
418
  "\n",
419
- "1. **Sanan Bakery**\n",
420
- " - Address: 101 Phahonyothin Rd, Lat Yao, Chatuchak\n",
421
- " - Rating: 4.4\n",
422
- " - Open Now: Yes\n",
423
- "\n",
424
- "2. **The Croissant Corner**\n",
425
- " - Address: Phahon Yothin 15 Alley, Samsen Nai, Phaya Thai, Chatuchak\n",
426
- " - Rating: 4.7\n",
427
- " - Open Now: Yes\n",
428
- "\n",
429
- "3. **Baked With Hearts**\n",
430
- " - Address: 485 Phahon Yothin 18/1 Alley, Lane 1, Chom Phon, Chatuchak\n",
431
- " - Rating: 4.6\n",
432
- " - Open Now: Yes\n",
433
- "\n",
434
- "4. **JJ Mall One More Bite Japanese Bakery**\n",
435
- " - Address: 588 Kamphaeng Phet 2 Rd, Chatuchak\n",
436
- " - Rating: 4.9\n",
437
- " - Open Now: Yes\n",
438
- "\n",
439
- "5. **Triple D Bakery @ Chatuchak Market**\n",
440
- " - Address: 47 Section 4, Khwaeng Chatuchak, Khet Chatuchak\n",
441
- " - Rating: 4.9\n",
442
- " - Open Now: No\n",
443
- "\n",
444
- "6. **Bellinee's Bake & Brew**\n",
445
- " - Address: Chatuchak Weekend Market, Khwaeng Chatuchak, Khet Chatuchak\n",
446
- " - Rating: 3.9\n",
447
- " - Open Now: Yes\n",
448
- "\n",
449
- "7. **Mom’s FF Cafe & Bakery**\n",
450
- " - Address: 356-357, Chatuchak\n",
451
- " - Rating: 5\n",
452
- " - Open Now: N/A\n",
453
- "\n",
454
- "8. **Makarong**\n",
455
- " - Address: 4 Soi 49/2, Chatuchak\n",
456
- " - Rating: 4.9\n",
457
- " - Open Now: No\n",
458
- "\n",
459
- "9. **Wipada Herb Coffee and Bakery**\n",
460
- " - Address: 2 Kamphaeng Phet Rd, Chatuchak\n",
461
- " - Rating: 0\n",
462
- " - Open Now: Yes\n",
463
- "\n",
464
- "These bakeries vary in their offerings and ratings, which can help you analyze the competitive landscape around Chatuchak Market. If you need more specific insights or additional data, please let me know!\n",
 
 
465
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
466
  "Name: data_collector\n",
467
  "Tool Calls:\n",
468
- " google_places (call_SntxTMhUqEyn5s6gdkAOkGMK)\n",
469
- " Call ID: call_SntxTMhUqEyn5s6gdkAOkGMK\n",
470
  " Args:\n",
471
- " query: Chatuchak Market\n",
472
  "=================================\u001b[1m Tool Message \u001b[0m=================================\n",
473
- "Name: google_places\n",
474
- "\n",
475
- "1. Chatuchak Weekend Market\n",
476
- "Address: 587, 10 Kamphaeng Phet 2 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
477
- "Google place ID: ChIJ3fiD6BSc4jARS324hNeR8ZE\n",
478
- "Phone: Unknown\n",
479
- "Website: https://www.chatuchakmarket.org/\n",
480
- "\n",
481
  "\n",
 
482
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
483
  "Name: data_collector\n",
484
  "Tool Calls:\n",
485
- " nearby_search (call_GSWnIwn8QHAalzIJi9Z3Ljhv)\n",
486
- " Call ID: call_GSWnIwn8QHAalzIJi9Z3Ljhv\n",
487
  " Args:\n",
488
- " input_dict: {'keyword': 'bakery', 'location_name': 'Chatuchak Weekend Market', 'radius': 1000, 'place_type': 'bakery'}\n",
489
  "=================================\u001b[1m Tool Message \u001b[0m=================================\n",
490
- "Name: nearby_search\n",
491
- "\n",
492
- "number of results more than 20\n",
493
- "\n",
494
- " address: 47 Section 4, Khwaeng Chatuchak, Khet Chatuchak\n",
495
- "\n",
496
- " lacation_name: Triple D Bakery @ Chatuchak Market\n",
497
- "\n",
498
- " opening hours: {'open_now': False}\n",
499
- "\n",
500
- " rating: 4.9\n",
501
- "\n",
502
- "\n",
503
- " \n",
504
- " address: 12/6 Vibhavadi Rangsit Rd, Chom Phon, Chatuchak\n",
505
- "\n",
506
- " lacation_name: Bakery by AU\n",
507
- "\n",
508
- " opening hours: {'open_now': True}\n",
509
- "\n",
510
- " rating: 5\n",
511
- "\n",
512
- "\n",
513
- " \n",
514
- " address: 101 Phahonyothin Rd, Lat Yao, Chatuchak\n",
515
- "\n",
516
- " lacation_name: Sanan Bakery\n",
517
- "\n",
518
- " opening hours: {'open_now': True}\n",
519
- "\n",
520
- " rating: 4.4\n",
521
- "\n",
522
- "\n",
523
- " \n",
524
- " address: 485 Phahon Yothin 18/1 Alley, Lane 1, Chom Phon, Chatuchak\n",
525
- "\n",
526
- " lacation_name: Baked With Hearts\n",
527
- "\n",
528
- " opening hours: {'open_now': True}\n",
529
- "\n",
530
- " rating: 4.6\n",
531
- "\n",
532
- "\n",
533
- " \n",
534
- " address: อ ตก สามเสน ใน, Phahon Yothin 15 Alley, Samsen Nai, Phaya Thai, Chatuchak\n",
535
- "\n",
536
- " lacation_name: The Croissant Corner\n",
537
- "\n",
538
- " opening hours: {'open_now': True}\n",
539
- "\n",
540
- " rating: 4.7\n",
541
- "\n",
542
- "\n",
543
- " \n",
544
- " address: 1493 Phahonyothin Rd, Phaya Thai\n",
545
- "\n",
546
- " lacation_name: Morn Loh Hiang Bakery\n",
547
- "\n",
548
- " opening hours: {'open_now': True}\n",
549
- "\n",
550
- " rating: 4.6\n",
551
- "\n",
552
- "\n",
553
- " \n",
554
- " address: 618, 1 Phahonyothin Rd, Samsen Nai, Phaya Thai\n",
555
- "\n",
556
- " lacation_name: S&P Big C SaphanKwai\n",
557
- "\n",
558
- " opening hours: {'open_now': True}\n",
559
- "\n",
560
- " rating: 3.7\n",
561
- "\n",
562
- "\n",
563
- " \n",
564
- " address: โครงการ 4 ซอย 48/3 Chatuchak\n",
565
- "\n",
566
- " lacation_name: 3meebakery\n",
567
- "\n",
568
- " opening hours: {'open_now': False}\n",
569
- "\n",
570
- " rating: 5\n",
571
- "\n",
572
- "\n",
573
- " \n",
574
- " address: เลขที่ 3029\n",
575
- "\n",
576
- " lacation_name: HUB​ bakery​&souvenir​s​\n",
577
- "\n",
578
- " opening hours: {'open_now': True}\n",
579
- "\n",
580
- " rating: 0\n",
581
- "\n",
582
- "\n",
583
- " \n",
584
- " address: 1058/104 Phahonyothin Rd, Chom Phon, Chatuchak\n",
585
- "\n",
586
- " lacation_name: Neighbourhood Toast Shop\n",
587
- "\n",
588
- " opening hours: {'open_now': True}\n",
589
- "\n",
590
- " rating: 4\n",
591
- "\n",
592
- "\n",
593
- " \n",
594
- " address: 343a Phahonyothin Soi 15, Phaya Thai\n",
595
- "\n",
596
- " lacation_name: กล้วยฉาบเตาถ่าน ทำสดๆใหม่ๆ\n",
597
- "\n",
598
- " opening hours: {}\n",
599
- "\n",
600
- " rating: 5\n",
601
- "\n",
602
- "\n",
603
- " \n",
604
- " address: 197/8 Soi Pradipat, Phaya Thai\n",
605
- "\n",
606
- " lacation_name: Twentyseven Bakery\n",
607
- "\n",
608
- " opening hours: {'open_now': True}\n",
609
- "\n",
610
- " rating: 5\n",
611
- "\n",
612
- "\n",
613
- " \n",
614
- " address: 170/8-10 ถ.ประดิพัทธ์ แขวงสามเสนใน, Phaya Thai\n",
615
- "\n",
616
- " lacation_name: Kudsan Bakery & Coffee\n",
617
- "\n",
618
- " opening hours: {'open_now': False}\n",
619
- "\n",
620
- " rating: 0\n",
621
- "\n",
622
- "\n",
623
- " \n",
624
- " address: 63/1 Vibhavadi Rangsit 5 Alley, Lane 1-2-2, Chom Phon, Chatuchak\n",
625
- "\n",
626
- " lacation_name: Cherpang Bakery Homemade\n",
627
  "\n",
628
- " opening hours: {'open_now': True}\n",
 
629
  "\n",
630
- " rating: 0\n",
 
631
  "\n",
 
 
632
  "\n",
633
- " \n",
634
- " address: 311, Chatuchak Weekend Market Zone 23 (Soi 31/3), Kamphaeng Phet 2 Road, Khwaeng Lat Yao, Chatuchak\n",
635
- "\n",
636
- " lacation_name: กะหรี่ปั๊ป\n",
637
- "\n",
638
- " opening hours: N/A\n",
639
- "\n",
640
- " rating: 0\n",
641
- "\n",
642
- "\n",
643
- " \n",
644
- " address: เจเจมอลล์ ชั้น 2 588 Kamphaeng Phet 2 Rd, Chatuchak\n",
645
- "\n",
646
- " lacation_name: JJ Mall One More bite Japanese bakery\n",
647
- "\n",
648
- " opening hours: {'open_now': True}\n",
649
- "\n",
650
- " rating: 4.9\n",
651
- "\n",
652
- "\n",
653
- " \n",
654
- " address: Rd, Khwaeng Chatuchak, แขวง จตุจักร เขต จตุจักร 35 Phahonyothin Rd, Chatuchak\n",
655
- "\n",
656
- " lacation_name: S&P BTS หมอชิต\n",
657
- "\n",
658
- " opening hours: {'open_now': True}\n",
659
- "\n",
660
- " rating: 3\n",
661
- "\n",
662
- "\n",
663
- " \n",
664
- " address: องค์การตลาดเพื่อเกษตร แผงที่10/17,10/24 ตลาด อตก Kamphaeng Phet Rd, Chatuchak\n",
665
- "\n",
666
- " lacation_name: Miss Muay Bakery สาขา ตลาดอ.ต.ก.\n",
667
- "\n",
668
- " opening hours: {'open_now': True}\n",
669
- "\n",
670
- " rating: 3.8\n",
671
- "\n",
672
- "\n",
673
- " \n",
674
- " address: Makarong @ตลาดนัดจตุจักร, โครงการ 4 ซอย 49/2 แผง 151, Chatuchak\n",
675
- "\n",
676
- " lacation_name: Makarong\n",
677
- "\n",
678
- " opening hours: {'open_now': False}\n",
679
- "\n",
680
- " rating: 4.9\n",
681
- "\n",
682
- "\n",
683
- " \n",
684
- " address: Chatuchak Weekend Market, Khwaeng Chatuchak, Khet Chatuchak\n",
685
- "\n",
686
- " lacation_name: Bellinee's Bake & Brew ตลาดนัดสวนจตุจักร\n",
687
- "\n",
688
- " opening hours: {'open_now': True}\n",
689
- "\n",
690
- " rating: 3.9\n",
691
- "\n",
692
- "\n",
693
- " \n",
694
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
695
  "Name: data_collector\n",
696
- "Tool Calls:\n",
697
- " google_places (call_gAsWvrxC5ir6m7pEva5FUnYh)\n",
698
- " Call ID: call_gAsWvrxC5ir6m7pEva5FUnYh\n",
699
- " Args:\n",
700
- " query: Chatuchak\n",
701
- "=================================\u001b[1m Tool Message \u001b[0m=================================\n",
702
- "Name: google_places\n",
703
  "\n",
704
- "1. Chatuchak Weekend Market\n",
705
- "Address: 587, 10 Kamphaeng Phet 2 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
706
- "Google place ID: ChIJ3fiD6BSc4jARS324hNeR8ZE\n",
707
- "Phone: Unknown\n",
708
- "Website: https://www.chatuchakmarket.org/\n",
709
  "\n",
 
 
 
 
 
710
  "\n",
711
- "2. Chatuchak\n",
712
- "Address: Chatuchak, Bangkok 10900, Thailand\n",
713
- "Google place ID: ChIJL1rMWl2c4jARQI7iXbIAAQQ\n",
714
- "Phone: Unknown\n",
715
- "Website: Unknown\n",
716
- "\n",
717
- "\n",
718
- "3. Chatuchak\n",
719
- "Address: Chatuchak, Bangkok 10900, Thailand\n",
720
- "Google place ID: ChIJLaxrJfic4jARYE_iXbIAAQM\n",
721
- "Phone: Unknown\n",
722
- "Website: Unknown\n",
723
- "\n",
724
- "\n",
725
- "4. Chatuchak\n",
726
- "Address: Chatuchak, Bangkok 10900, Thailand\n",
727
- "Google place ID: ChIJwU6_rUKc4jARDmkpMHyN3ng\n",
728
- "Phone: Unknown\n",
729
- "Website: Unknown\n",
730
- "\n",
731
- "\n",
732
- "5. Chatuchak Park\n",
733
- "Address: Kamphaeng Phet 3 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
734
- "Google place ID: ChIJnZuu10Oc4jAR0DkLPbMAAQ8\n",
735
- "Phone: Unknown\n",
736
- "Website: Unknown\n",
737
- "\n",
738
- "\n",
739
- "6. Mixt Chatuchak\n",
740
- "Address: 8 Kamphaeng Phet 3 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
741
- "Google place ID: ChIJdZYPAOid4jARV2-4R9rzO-A\n",
742
- "Phone: 02 079 4888\n",
743
- "Website: http://www.mixtchatuchak.com/\n",
744
- "\n",
745
- "\n",
746
- "7. Jatujak Plaza\n",
747
- "Address: 599 Kamphaeng Phet 2 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
748
- "Google place ID: ChIJz9JH_RSc4jARPvh8LMgxS5Q\n",
749
- "Phone: 02 265 9684\n",
750
- "Website: Unknown\n",
751
- "\n",
752
- "\n",
753
- "8. Chatuchak\n",
754
- "Address: Chatuchak, Bangkok 10900, Thailand\n",
755
- "Google place ID: ChIJS4W6Ovic4jAR_UaLaBgO-ws\n",
756
- "Phone: Unknown\n",
757
- "Website: Unknown\n",
758
- "\n",
759
- "\n",
760
- "9. JJ Mall Chatuchak\n",
761
- "Address: 588 Kamphaeng Phet 2 Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
762
- "Google place ID: ChIJQ2IA1xSc4jARPUC_qVZP9U4\n",
763
- "Phone: 02 265 9999\n",
764
- "Website: http://www.jjmall.co.th/\n",
765
- "\n",
766
- "\n",
767
- "10. Chatuchak Night Market\n",
768
- "Address: เลขที่ โครงการ 9 ซอย 13/1 เลขที่ 015 จตุจักร, แขวงจตุจักร เขตจตุจักร กรุงเทพมหานคร 10900, Thailand\n",
769
- "Google place ID: ChIJj2r5qFqd4jARN8g-HGfi0U0\n",
770
- "Phone: Unknown\n",
771
- "Website: https://www.chatuchakmarket.org/\n",
772
- "\n",
773
  "\n",
774
- "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
775
- "Name: data_collector\n",
776
- "\n",
777
- "Here is the analysis of the bakery competitors near Chatuchak Market:\n",
778
- "\n",
779
- "### Competitors Overview\n",
780
- "1. **Triple D Bakery @ Chatuchak Market**\n",
781
- " - Address: 47 Section 4, Khwaeng Chatuchak, Khet Chatuchak\n",
782
- " - Rating: 4.9\n",
783
- " - Open Now: No\n",
784
- "\n",
785
- "2. **Bakery by AU**\n",
786
- " - Address: 12/6 Vibhavadi Rangsit Rd, Chom Phon, Chatuchak\n",
787
- " - Rating: 5\n",
788
- " - Open Now: Yes\n",
789
- "\n",
790
- "3. **Sanan Bakery**\n",
791
- " - Address: 101 Phahonyothin Rd, Lat Yao, Chatuchak\n",
792
- " - Rating: 4.4\n",
793
- " - Open Now: Yes\n",
794
- "\n",
795
- "4. **Baked With Hearts**\n",
796
- " - Address: 485 Phahon Yothin 18/1 Alley, Lane 1, Chom Phon, Chatuchak\n",
797
- " - Rating: 4.6\n",
798
- " - Open Now: Yes\n",
799
- "\n",
800
- "5. **The Croissant Corner**\n",
801
- " - Address: Phahon Yothin 15 Alley, Samsen Nai, Phaya Thai, Chatuchak\n",
802
- " - Rating: 4.7\n",
803
- " - Open Now: Yes\n",
804
- "\n",
805
- "6. **Morn Loh Hiang Bakery**\n",
806
- " - Address: 1493 Phahonyothin Rd, Phaya Thai\n",
807
- " - Rating: 4.6\n",
808
- " - Open Now: Yes\n",
809
- "\n",
810
- "7. **S&P Big C SaphanKwai**\n",
811
- " - Address: 618, 1 Phahonyothin Rd, Samsen Nai, Phaya Thai\n",
812
- " - Rating: 3.7\n",
813
- " - Open Now: Yes\n",
814
- "\n",
815
- "8. **3meebakery**\n",
816
- " - Address: Project 4 Soi 48/3 Chatuchak\n",
817
- " - Rating: 5\n",
818
- " - Open Now: No\n",
819
- "\n",
820
- "9. **HUB bakery & souvenirs**\n",
821
- " - Address: 3029\n",
822
- " - Rating: 0\n",
823
- " - Open Now: Yes\n",
824
- "\n",
825
- "10. **Neighbourhood Toast Shop**\n",
826
- " - Address: 1058/104 Phahonyothin Rd, Chom Phon, Chatuchak\n",
827
- " - Rating: 4\n",
828
- " - Open Now: Yes\n",
829
- "\n",
830
- "11. **Twentyseven Bakery**\n",
831
- " - Address: 197/8 Soi Pradipat, Phaya Thai\n",
832
- " - Rating: 5\n",
833
- " - Open Now: Yes\n",
834
- "\n",
835
- "12. **Kudsan Bakery & Coffee**\n",
836
- " - Address: 170/8-10 ถ.ประดิพัทธ์ แขวงสามเสนใน, Phaya Thai\n",
837
- " - Rating: 0\n",
838
- " - Open Now: No\n",
839
- "\n",
840
- "13. **Cherpang Bakery Homemade**\n",
841
- " - Address: 63/1 Vibhavadi Rangsit 5 Alley, Lane 1-2-2, Chom Phon, Chatuchak\n",
842
- " - Rating: 0\n",
843
- " - Open Now: Yes\n",
844
- "\n",
845
- "14. **JJ Mall One More Bite Japanese Bakery**\n",
846
- " - Address: 588 Kamphaeng Phet 2 Rd, Chatuchak\n",
847
- " - Rating: 4.9\n",
848
- " - Open Now: Yes\n",
849
- "\n",
850
- "15. **Miss Muay Bakery**\n",
851
- " - Address: Kamphaeng Phet Rd, Chatuchak\n",
852
- " - Rating: 3.8\n",
853
- " - Open Now: Yes\n",
854
- "\n",
855
- "16. **Makarong**\n",
856
- " - Address: Project 4 Soi 49/2, Chatuchak\n",
857
- " - Rating: 4.9\n",
858
- " - Open Now: No\n",
859
- "\n",
860
- "17. **Bellinee's Bake & Brew**\n",
861
- " - Address: Chatuchak Weekend Market, Khwaeng Chatuchak, Khet Chatuchak\n",
862
- " - Rating: 3.9\n",
863
- " - Open Now: Yes\n",
864
- "\n",
865
- "### Summary\n",
866
- "- **Total Competitors**: 17 bakeries found within a 1 km radius of Chatuchak Market.\n",
867
- "- **Average Rating**: The ratings of these bakeries range from 0 to 5, with several highly rated options (4.5 and above).\n",
868
- "- **Open Status**: Most bakeries are currently open, providing a competitive advantage for customer footfall.\n",
869
- "\n",
870
- "If you need further analysis or specific data points, please let me know!\n",
871
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
872
  "Name: reporter\n",
873
  "\n",
874
- "FINAL ANSWER\n",
875
- "\n",
876
- "### Competitor Analysis of Bakeries Near Chatuchak Market\n",
877
- "\n",
878
- "#### Overview\n",
879
- "The analysis of bakeries near Chatuchak Market reveals a competitive landscape with a variety of options for consumers. Here are the key insights:\n",
880
- "\n",
881
- "#### Competitors\n",
882
- "1. **Triple D Bakery @ Chatuchak Market**\n",
883
- " - **Rating**: 4.9\n",
884
- " - **Open Now**: No\n",
885
- "\n",
886
- "2. **Bakery by AU**\n",
887
- " - **Rating**: 5\n",
888
- " - **Open Now**: Yes\n",
889
- "\n",
890
- "3. **Sanan Bakery**\n",
891
- " - **Rating**: 4.4\n",
892
- " - **Open Now**: Yes\n",
893
- "\n",
894
- "4. **Baked With Hearts**\n",
895
- " - **Rating**: 4.6\n",
896
- " - **Open Now**: Yes\n",
897
- "\n",
898
- "5. **The Croissant Corner**\n",
899
- " - **Rating**: 4.7\n",
900
- " - **Open Now**: Yes\n",
901
- "\n",
902
- "6. **Morn Loh Hiang Bakery**\n",
903
- " - **Rating**: 4.6\n",
904
- " - **Open Now**: Yes\n",
905
- "\n",
906
- "7. **S&P Big C SaphanKwai**\n",
907
- " - **Rating**: 3.7\n",
908
- " - **Open Now**: Yes\n",
909
- "\n",
910
- "8. **3meebakery**\n",
911
- " - **Rating**: 5\n",
912
- " - **Open Now**: No\n",
913
- "\n",
914
- "9. **HUB bakery & souvenirs**\n",
915
- " - **Rating**: 0\n",
916
- " - **Open Now**: Yes\n",
917
- "\n",
918
- "10. **Neighbourhood Toast Shop**\n",
919
- " - **Rating**: 4\n",
920
- " - **Open Now**: Yes\n",
921
- "\n",
922
- "11. **Twentyseven Bakery**\n",
923
- " - **Rating**: 5\n",
924
- " - **Open Now**: Yes\n",
925
- "\n",
926
- "12. **Kudsan Bakery & Coffee**\n",
927
- " - **Rating**: 0\n",
928
- " - **Open Now**: No\n",
929
- "\n",
930
- "13. **Cherpang Bakery Homemade**\n",
931
- " - **Rating**: 0\n",
932
- " - **Open Now**: Yes\n",
933
- "\n",
934
- "14. **JJ Mall One More Bite Japanese Bakery**\n",
935
- " - **Rating**: 4.9\n",
936
- " - **Open Now**: Yes\n",
937
- "\n",
938
- "15. **Miss Muay Bakery**\n",
939
- " - **Rating**: 3.8\n",
940
- " - **Open Now**: Yes\n",
941
- "\n",
942
- "16. **Makarong**\n",
943
- " - **Rating**: 4.9\n",
944
- " - **Open Now**: No\n",
945
- "\n",
946
- "17. **Bellinee's Bake & Brew**\n",
947
- " - **Rating**: 3.9\n",
948
- " - **Open Now**: Yes\n",
949
- "\n",
950
- "#### Insights\n",
951
- "- **Total Competitors**: 17 bakeries found within a 1 km radius of Chatuchak Market.\n",
952
- "- **Average Rating**: The ratings of these bakeries range from 0 to 5, with several highly rated options (4.5 and above).\n",
953
- "- **Open Status**: Most bakeries are currently open, providing a competitive advantage for customer footfall.\n",
954
- "\n",
955
- "This analysis provides a comprehensive view of the bakery market near Chatuchak Market, highlighting opportunities for differentiation and potential areas for improvement. If you need further insights or specific data points, feel free to ask!\n"
956
  ]
957
  }
958
  ],
959
  "source": [
960
- "# question = \"วิเคราะห์คู่แข่งของร้านเบเกอรี่ใกล้ตลาดจตุจักร\"\n",
961
- "\n",
962
- "# graph = workflow.compile()\n",
963
- "\n",
964
- "# events = graph.stream(\n",
965
- "# {\n",
966
- "# \"messages\": [\n",
967
- "# HumanMessage(\n",
968
- "# question\n",
969
- "# )\n",
970
- "# ],\n",
971
- "# },\n",
972
- "# # Maximum number of steps to take in the graph\n",
973
- "# {\"recursion_limit\": 20},\n",
974
- "# )\n",
975
- "# for s in events:\n",
976
- "# # print(s)\n",
977
- "# a = list(s.items())[0]\n",
978
- "# a[1]['messages'][0].pretty_print()"
979
  ]
980
  },
981
  {
982
  "cell_type": "code",
983
- "execution_count": null,
984
  "metadata": {},
985
  "outputs": [],
986
  "source": [
 
74
  "from langchain_community.document_loaders import CSVLoader\n",
75
  "from langchain_openai import OpenAIEmbeddings\n",
76
  "import glob\n",
77
+ "from langchain.tools.retriever import create_retriever_tool\n",
78
  "\n",
79
  "def format_docs(docs):\n",
80
  " return \"\\n\\n\".join(doc.page_content for doc in docs)\n",
 
104
  "\n",
105
  "\n",
106
  "## tools and LLM\n",
107
+ "retriever_tool = create_retriever_tool(\n",
108
+ " retriever,\n",
109
+ " \"search_population_community_ousehold_expenditures_data\",\n",
110
+ " \"Use this tool to retrieve information about population, community and household expenditures. by searching distinct or province\"\n",
111
  ")\n",
112
  "\n",
113
  "# Bind the tools to the model\n",
114
+ "tools = [retriever_tool, find_place_from_text, nearby_search] # Include both tools if needed\n",
115
+ "# tools = [find_place_from_text, nearby_search]\n",
116
  "\n",
117
  "llm = ChatOpenAI(model=\"gpt-4o-mini\", temperature=0.0)\n",
118
  "\n",
 
264
  },
265
  {
266
  "cell_type": "code",
267
+ "execution_count": 5,
268
  "metadata": {},
269
  "outputs": [
270
  {
 
274
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
275
  "Name: analyst\n",
276
  "Tool Calls:\n",
277
+ " google_places (call_8CIbp87rLJCc128UZmkjZg1n)\n",
278
+ " Call ID: call_8CIbp87rLJCc128UZmkjZg1n\n",
279
  " Args:\n",
280
+ " query: bakery near Chatuchak Market\n",
281
+ " search_population_community_household_expenditures_data (call_8sigwGmasoJcmBUYEswe6tpx)\n",
282
+ " Call ID: call_8sigwGmasoJcmBUYEswe6tpx\n",
283
  " Args:\n",
284
+ " query: bakery market analysis near Chatuchak\n",
285
  "=================================\u001b[1m Tool Message \u001b[0m=================================\n",
286
  "Name: google_places\n",
287
  "\n",
288
+ "1. Central Bakery\n",
289
+ "Address: 2109 Phahon Yothin Rd, Khwaeng Lat Yao, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
290
+ "Google place ID: ChIJyULQjR2d4jARZqTMKAbaBvw\n",
291
+ "Phone: 082 442 4662\n",
292
+ "Website: Unknown\n",
293
  "\n",
294
  "\n",
295
+ "2. Hobby Cake\n",
296
+ "Address: 381/35, 9 ถ. ลาดพร้าว Chompol, เขตจตุจักร กรุงเทพมหานคร 10900, Thailand\n",
297
+ "Google place ID: ChIJa3GFakyc4jARc83DhmLQGcY\n",
298
+ "Phone: 02 938 4725\n",
299
+ "Website: http://www.hobbycake.com/\n",
300
  "\n",
301
  "\n",
302
+ "3. Kudsan Bakery & Coffee\n",
303
+ "Address: 8 อาคารGold Market ถ.เทศบาลสงเคราะห์ แขวงลาดยาว, แขวงลาดยาว เขตจตุจักร กรุงเทพมหานคร 10900, Thailand\n",
304
+ "Google place ID: ChIJR-V8XJGc4jARuf-gDwGaxHs\n",
305
+ "Phone: 083 688 8368\n",
306
+ "Website: http://www.facebook.com/welovekudsan\n",
307
  "\n",
308
  "\n",
309
+ "4. Sanan Bakery\n",
310
+ "Address: 101 Phahon Yothin Rd, Khwaeng Lat Yao, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
311
+ "Google place ID: ChIJHfhi2zed4jARYuvzCEdQpnI\n",
312
+ "Phone: 085 966 4987\n",
313
+ "Website: https://www.facebook.com/sananbakery1968/\n",
314
  "\n",
315
  "\n",
316
+ "5. Kanda Bakery\n",
317
+ "Address: 30 Soi Phahon Yothin 24 Yaek 2, Khwaeng Chom Phon, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
318
+ "Google place ID: ChIJ1UdWklac4jARwawXzLQjpSU\n",
319
+ "Phone: 02 511 3704\n",
320
+ "Website: http://www.facebook.com/Kandabakery\n",
321
  "\n",
322
  "\n",
323
+ "6. The Middle Bake Room\n",
324
+ "Address: SCB. Park Plaza, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
325
+ "Google place ID: ChIJe_Gfam-d4jARIrM1hNkqJVg\n",
326
+ "Phone: 099 626 2363\n",
327
+ "Website: http://facebook.com/themiddlebakeroom\n",
328
  "\n",
329
  "\n",
330
+ "7. The Croissant Corner\n",
331
+ "Address: ตก สามเสน ใน, Phahon Yothin 15 Alley, Samsen Nai, Phaya Thai, แขวงจตุจักร เขตจตุจักร กรุงเทพมหานคร 10400, Thailand\n",
332
+ "Google place ID: ChIJoRCm7ayd4jAR4BEjv9aYV6w\n",
333
+ "Phone: 064 898 6146\n",
334
+ "Website: https://m.facebook.com/thecroissantcorner/\n",
335
  "\n",
336
  "\n",
337
+ "8. Mdon Artisan\n",
338
+ "Address: 7/342 Vibhawadi36, แขวงจตุจักร เขตจตุจักร กรุงเทพมหานคร 10900, Thailand\n",
339
+ "Google place ID: ChIJv3TGYyGd4jARK81i0pkKbas\n",
340
+ "Phone: 081 869 2694\n",
341
  "Website: Unknown\n",
342
  "\n",
343
  "\n",
344
+ "9. Saint Etoile by Yamazaki\n",
345
+ "Address: 1693 Phahon Yothin Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
346
+ "Google place ID: ChIJT_F7VKOd4jARygmwMWLwjVA\n",
347
+ "Phone: 080 062 2876\n",
348
+ "Website: Unknown\n",
349
  "\n",
350
  "\n",
351
+ "10. Kudsan Bakery & Coffee\n",
352
+ "Address: 49/6 ซ.วิภาวดีรังสิต 38 แขวงลาดยาว, แขวงลาดยาว เขตจตุจักร กรุงเทพมหานคร 10900, Thailand\n",
353
+ "Google place ID: ChIJ-8OCNvGc4jARj_62MgRB3eQ\n",
354
+ "Phone: 083 688 8191\n",
355
+ "Website: http://www.facebook.com/welovekudsan\n",
356
  "\n",
357
  "\n",
358
+ "11. Little Three Bakery\n",
359
+ "Address: 90/137 Soi Vibhavadi Rangsit-Rangsit, Khwaeng Chom Phon, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
360
+ "Google place ID: ChIJn56bmy2d4jARVTjs6zGBH8A\n",
361
+ "Phone: 086 770 5505\n",
362
+ "Website: https://www.facebook.com/Little-Three-Bakery-498194300261964\n",
363
+ "\n",
364
+ "\n",
365
+ "12. Baked With Hearts\n",
366
+ "Address: 485 Soi Phahon Yothin 18/1, Lane 1, Khwaeng Chom Phon, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
367
+ "Google place ID: ChIJ4Riztpqd4jAR7f5XCHne5s4\n",
368
+ "Phone: 064 854 7277\n",
369
+ "Website: http://www.facebook.com/bakedwithhearts2018\n",
370
+ "\n",
371
+ "\n",
372
+ "13. Bakery by AU\n",
373
+ "Address: 12/6 Thanon Vibhavadi Rangsit, Khwaeng Chom Phon, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
374
+ "Google place ID: ChIJoS9FrEac4jARYm1iZG8BsgA\n",
375
+ "Phone: 082 987 8792\n",
376
  "Website: Unknown\n",
377
  "\n",
378
  "\n",
379
+ "14. Triple D Bakery @ Chatuchak Market\n",
380
+ "Address: 47 Section 4, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
381
+ "Google place ID: ChIJSSHc-5md4jARjX6G1tJWAfM\n",
382
+ "Phone: 085 150 7698\n",
383
+ "Website: https://m.facebook.com/profile.php?id=100067542915287\n",
384
  "\n",
385
  "\n",
386
+ "15. Neighbourhood Toast Shop\n",
387
+ "Address: 1058/104 Phahon Yothin Rd, Khwaeng Chom Phon, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
388
+ "Google place ID: ChIJ805u3Pad4jARwfDY8UDKZKs\n",
389
+ "Phone: 080 396 3246\n",
390
  "Website: Unknown\n",
391
  "\n",
392
  "\n",
393
+ "16. S&P BTS หมอชิต\n",
394
+ "Address: Rd, Khwaeng Chatuchak, แขวง จตุจักร เขต จตุจักร 35 Phahon Yothin Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
395
+ "Google place ID: ChIJr2fydECc4jARPRmcnal99qc\n",
396
  "Phone: Unknown\n",
397
+ "Website: http://www.snpfood.com/\n",
398
  "\n",
399
  "\n",
400
+ "17. Bowcake โบว์เค้ก MRT ลาดพร้าว (Gourmet Market)\n",
401
+ "Address: ถ. พหลโยธิน Khwaeng Chom Phon, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
402
+ "Google place ID: ChIJgSd6qF6d4jARMCfIpOLqcdI\n",
403
+ "Phone: 093 359 6500\n",
404
+ "Website: https://bowcake.com/\n",
405
  "\n",
406
  "\n",
407
+ "18. Dessert District\n",
408
+ "Address: 182 Tedsabannaruman 14 rd. Lardyow, แขวงลาดยาว เขตจตุจักร กรุงเทพมหานคร 10900, Thailand\n",
409
+ "Google place ID: ChIJA2YZeiGd4jAR4w-08xbJs-c\n",
410
+ "Phone: 098 415 6651\n",
411
+ "Website: http://www.dessertdistrictbkk.com/\n",
412
  "\n",
413
  "\n",
414
+ "19. Puff & Pie การบินไทยสำนักงานใหญ่\n",
415
+ "Address: 89, Thai Airways Headquarters, Kamphaeng Phet Road, Chom Phon, Khet Chatuchak, Bangkok, 10900, จอมพล เขตจตุจักร กรุงเทพมหานคร 10900, Thailand\n",
416
+ "Google place ID: ChIJ8WuHxROc4jARFg0uuXKbMEg\n",
417
+ "Phone: 02 545 2079\n",
418
+ "Website: http://www.puffandpie.com/\n",
419
  "\n",
420
  "\n",
421
+ "20. Bowcake โบว์เค้ก เซ็นทรัลลาดพร้าว\n",
422
+ "Address: 1693 ถนน พหลโยธิน เซ็นทรัลพลาซ่าลาดพร้าว ชั้น G ใน Tops Market, แขวงจตุจักร เขตจตุจักร กรุงเทพมหานคร 10900, Thailand\n",
423
+ "Google place ID: ChIJPQz_AX2d4jART00Xk3W7vHM\n",
424
+ "Phone: 087 059 0094\n",
425
+ "Website: https://bowcake.com/\n",
426
  "\n",
427
  "\n",
428
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
 
430
  "\n",
431
  "I have gathered information about bakeries near Chatuchak Market. Here are some of the competitors:\n",
432
  "\n",
433
+ "1. **Central Bakery**\n",
434
+ " - Address: 2109 Phahon Yothin Rd, Khwaeng Lat Yao, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
435
+ " - Phone: 082 442 4662\n",
436
+ "\n",
437
+ "2. **Hobby Cake**\n",
438
+ " - Address: 381/35, 9 Soi Chompol, Khwaeng Chom Phon, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
439
+ " - Phone: 02 938 4725\n",
440
+ " - Website: [hobbycake.com](http://www.hobbycake.com/)\n",
441
+ "\n",
442
+ "3. **Kudsan Bakery & Coffee**\n",
443
+ " - Address: 8 Soi Gold Market, Khwaeng Chom Phon, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
444
+ " - Phone: 083 688 8368\n",
445
+ " - Website: [facebook.com/welovekudsan](http://www.facebook.com/welovekudsan)\n",
446
+ "\n",
447
+ "4. **Sanan Bakery**\n",
448
+ " - Address: 101 Phahon Yothin Rd, Khwaeng Lat Yao, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
449
+ " - Phone: 085 966 4987\n",
450
+ " - Website: [facebook.com/sananbakery1968](https://www.facebook.com/sananbakery1968/)\n",
451
+ "\n",
452
+ "5. **Kanda Bakery**\n",
453
+ " - Address: 30 Soi Phahon Yothin 24 Yaek 2, Khwaeng Chom Phon, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
454
+ " - Phone: 02 511 3704\n",
455
+ " - Website: [facebook.com/Kandabakery](http://www.facebook.com/Kandabakery)\n",
456
+ "\n",
457
+ "6. **The Middle Bake Room**\n",
458
+ " - Address: SCB. Park Plaza, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
459
+ " - Phone: 099 626 2363\n",
460
+ " - Website: [facebook.com/themiddlebakeroom](http://facebook.com/themiddlebakeroom)\n",
461
+ "\n",
462
+ "7. **The Croissant Corner**\n",
463
+ " - Address: Phahon Yothin 15 Alley, Samsen Nai, Phaya Thai, Thailand\n",
464
+ " - Phone: 064 898 6146\n",
465
+ " - Website: [facebook.com/thecroissantcorner](https://m.facebook.com/thecroissantcorner/)\n",
466
+ "\n",
467
+ "8. **Mdon Artisan**\n",
468
+ " - Address: 7/342 Vibhawadi36, Khwaeng Chom Phon, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
469
+ " - Phone: 081 869 2694\n",
470
+ "\n",
471
+ "9. **Saint Etoile by Yamazaki**\n",
472
+ " - Address: 1693 Phahon Yothin Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
473
+ " - Phone: 080 062 2876\n",
474
+ "\n",
475
+ "10. **Triple D Bakery @ Chatuchak Market**\n",
476
+ " - Address: 47 Section 4, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
477
+ " - Phone: 085 150 7698\n",
478
+ " - Website: [facebook.com/profile.php?id=100067542915287](https://m.facebook.com/profile.php?id=100067542915287)\n",
479
+ "\n",
480
+ "This list includes various bakeries in the vicinity of Chatuchak Market, which can help in analyzing the competition. If you need further analysis or specific data, please let me know!\n",
481
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
482
  "Name: data_collector\n",
483
  "Tool Calls:\n",
484
+ " search_population_community_household_expenditures_data (call_6lZ7r3umbZ8SSdYMpC3Xc0qi)\n",
485
+ " Call ID: call_6lZ7r3umbZ8SSdYMpC3Xc0qi\n",
486
  " Args:\n",
487
+ " query: Chatuchak\n",
488
  "=================================\u001b[1m Tool Message \u001b[0m=================================\n",
489
+ "Name: search_population_community_household_expenditures_data\n",
 
 
 
 
 
 
 
490
  "\n",
491
+ "Error: search_population_community_household_expenditures_data is not a valid tool, try one of [search_population_community_ousehold_expenditures_data, google_places, nearby_search].\n",
492
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
493
  "Name: data_collector\n",
494
  "Tool Calls:\n",
495
+ " search_population_community_ousehold_expenditures_data (call_3zB071ESOJbgQd6lU7bTJkiq)\n",
496
+ " Call ID: call_3zB071ESOJbgQd6lU7bTJkiq\n",
497
  " Args:\n",
498
+ " query: Chatuchak\n",
499
  "=================================\u001b[1m Tool Message \u001b[0m=================================\n",
500
+ "Name: search_population_community_ousehold_expenditures_data\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
501
  "\n",
502
+ "จำนวนชุมชนประเภทต่าง ในกรุงเทพมหานคร พ.ศ. 2564: คลองเตย\n",
503
+ ": 39\n",
504
  "\n",
505
+ "จำนวนชุมชนประเภทต่าง ๆ ในกรุงเทพมหานคร พ.ศ. 2564: คลองสาน\n",
506
+ ": 34\n",
507
  "\n",
508
+ "จำนวนชุมชนประเภทต่าง ๆ ในกรุงเทพมหานคร พ.ศ. 2564: ยานนาวา\n",
509
+ ": 17\n",
510
  "\n",
511
+ "จำนวนชุมชนประเภทต่าง ๆ ในกรุงเทพมหานคร พ.ศ. 2564: สวนหลวง\n",
512
+ ": 45\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
513
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
514
  "Name: data_collector\n",
 
 
 
 
 
 
 
515
  "\n",
516
+ "I have gathered additional data regarding the community and household expenditures in the Chatuchak area. Here are some insights:\n",
 
 
 
 
517
  "\n",
518
+ "- **Community Types in Bangkok (2021)**:\n",
519
+ " - Khlong Toei: 39 communities\n",
520
+ " - Khlong San: 34 communities\n",
521
+ " - Yan Nawa: 17 communities\n",
522
+ " - Suan Luang: 45 communities\n",
523
  "\n",
524
+ "While this data does not specifically pertain to Chatuchak, it provides a context of community distribution in Bangkok. \n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
525
  "\n",
526
+ "If you need more specific data regarding population or household expenditures in Chatuchak, please let me know!\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
527
  "==================================\u001b[1m Ai Message \u001b[0m==================================\n",
528
  "Name: reporter\n",
529
  "\n",
530
+ "FINAL ANSWER:\n",
531
+ "\n",
532
+ "### Competitor Analysis for Bakeries Near Chatuchak Market\n",
533
+ "\n",
534
+ "#### Competitors:\n",
535
+ "1. **Central Bakery**\n",
536
+ " - Address: 2109 Phahon Yothin Rd, Khwaeng Lat Yao, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
537
+ " - Phone: 082 442 4662\n",
538
+ "\n",
539
+ "2. **Hobby Cake**\n",
540
+ " - Address: 381/35, 9 Soi Chompol, Khwaeng Chom Phon, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
541
+ " - Phone: 02 938 4725\n",
542
+ " - Website: [hobbycake.com](http://www.hobbycake.com/)\n",
543
+ "\n",
544
+ "3. **Kudsan Bakery & Coffee**\n",
545
+ " - Address: 8 Soi Gold Market, Khwaeng Chom Phon, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
546
+ " - Phone: 083 688 8368\n",
547
+ " - Website: [facebook.com/welovekudsan](http://www.facebook.com/welovekudsan)\n",
548
+ "\n",
549
+ "4. **Sanan Bakery**\n",
550
+ " - Address: 101 Phahon Yothin Rd, Khwaeng Lat Yao, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
551
+ " - Phone: 085 966 4987\n",
552
+ " - Website: [facebook.com/sananbakery1968](https://www.facebook.com/sananbakery1968/)\n",
553
+ "\n",
554
+ "5. **Kanda Bakery**\n",
555
+ " - Address: 30 Soi Phahon Yothin 24 Yaek 2, Khwaeng Chom Phon, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
556
+ " - Phone: 02 511 3704\n",
557
+ " - Website: [facebook.com/Kandabakery](http://www.facebook.com/Kandabakery)\n",
558
+ "\n",
559
+ "6. **The Middle Bake Room**\n",
560
+ " - Address: SCB. Park Plaza, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
561
+ " - Phone: 099 626 2363\n",
562
+ " - Website: [facebook.com/themiddlebakeroom](http://facebook.com/themiddlebakeroom)\n",
563
+ "\n",
564
+ "7. **The Croissant Corner**\n",
565
+ " - Address: Phahon Yothin 15 Alley, Samsen Nai, Phaya Thai, Thailand\n",
566
+ " - Phone: 064 898 6146\n",
567
+ " - Website: [facebook.com/thecroissantcorner](https://m.facebook.com/thecroissantcorner/)\n",
568
+ "\n",
569
+ "8. **Mdon Artisan**\n",
570
+ " - Address: 7/342 Vibhawadi36, Khwaeng Chom Phon, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
571
+ " - Phone: 081 869 2694\n",
572
+ "\n",
573
+ "9. **Saint Etoile by Yamazaki**\n",
574
+ " - Address: 1693 Phahon Yothin Rd, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
575
+ " - Phone: 080 062 2876\n",
576
+ "\n",
577
+ "10. **Triple D Bakery @ Chatuchak Market**\n",
578
+ " - Address: 47 Section 4, Khwaeng Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\n",
579
+ " - Phone: 085 150 7698\n",
580
+ " - Website: [facebook.com/profile.php?id=100067542915287](https://m.facebook.com/profile.php?id=100067542915287)\n",
581
+ "\n",
582
+ "#### Community Insights:\n",
583
+ "- **Community Types in Bangkok (2021)**:\n",
584
+ " - Khlong Toei: 39 communities\n",
585
+ " - Khlong San: 34 communities\n",
586
+ " - Yan Nawa: 17 communities\n",
587
+ " - Suan Luang: 45 communities\n",
588
+ "\n",
589
+ "### Analytical Summary:\n",
590
+ "The bakery market near Chatuchak Market is competitive, with a variety of establishments offering different products and services. The presence of both local and established bakeries indicates a healthy market environment. The community data suggests a diverse population in the area, which could be beneficial for targeting various customer segments. \n",
591
+ "\n",
592
+ "This analysis provides a foundation for understanding the competitive landscape and potential market opportunities for bakeries in the Chatuchak area. If further insights or specific data are needed, please let me know!\n"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
593
  ]
594
  }
595
  ],
596
  "source": [
597
+ "question = \"วิเคราะห์คู่แข่งของร้านเบเกอรี่ใกล้ตลาดจตุจักร\"\n",
598
+ "\n",
599
+ "graph = workflow.compile()\n",
600
+ "\n",
601
+ "events = graph.stream(\n",
602
+ " {\n",
603
+ " \"messages\": [\n",
604
+ " HumanMessage(\n",
605
+ " question\n",
606
+ " )\n",
607
+ " ],\n",
608
+ " },\n",
609
+ " # Maximum number of steps to take in the graph\n",
610
+ " {\"recursion_limit\": 20},\n",
611
+ ")\n",
612
+ "for s in events:\n",
613
+ " # print(s)\n",
614
+ " a = list(s.items())[0]\n",
615
+ " a[1]['messages'][0].pretty_print()"
616
  ]
617
  },
618
  {
619
  "cell_type": "code",
620
+ "execution_count": 6,
621
  "metadata": {},
622
  "outputs": [],
623
  "source": [
prompt.py CHANGED
@@ -14,7 +14,7 @@ agent_meta = [
14
  {
15
  "name": "reporter",
16
  "prompt": """
17
- You are the Reporter. Organize and analyze the data to generate insights about competitors and market opportunities. Include both numerical and analytical insights. If data is missing, provide a final report based on available information. Ensure you include a descriptive analytical summary at the end.
18
  """
19
  }
20
  ]
 
14
  {
15
  "name": "reporter",
16
  "prompt": """
17
+ You are the Reporter. Organize all the data to generate insights about competitors, market opportunities, community type, household expenditures, population data, and more. Include both numerical and analytical insights. If any data is missing, still provide a final report based on the available information and clearly label it as the FINAL ANSWER. Ensure you include a descriptive analytical summary at the end.
18
  """
19
  }
20
  ]
testsets/QA.txt ADDED
@@ -0,0 +1,567 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [ { 'answer': 'FINAL ANSWER\n'
2
+ '\n'
3
+ '### Coffee Shops Near Central World, Pathum Wan, Bangkok\n'
4
+ '\n'
5
+ '#### Overview\n'
6
+ 'Central World is a major shopping complex located in Pathum '
7
+ 'Wan, Bangkok. The area is bustling with various coffee '
8
+ 'shops, offering a range of options for coffee lovers. Below '
9
+ 'is a list of notable coffee shops in the vicinity, '
10
+ 'including their ratings and operational status.\n'
11
+ '\n'
12
+ '#### Coffee Shop Listings\n'
13
+ '\n'
14
+ '1. **BEANS Coffee Roaster Paragon**\n'
15
+ ' - **Address:** 991/1 Rama I Rd, Pathum Wan\n'
16
+ ' - **Rating:** 5\n'
17
+ ' - **Open Now:** Yes\n'
18
+ '\n'
19
+ '2. **Fellas.coffee @soi tonson**\n'
20
+ ' - **Address:** ตรงป้อมยามเก่า ตึกปิยะเพลส 34/1 Soi Ton '
21
+ 'Son, ลุมพินี Pathum Wan\n'
22
+ ' - **Rating:** 4.9\n'
23
+ ' - **Open Now:** Yes\n'
24
+ '\n'
25
+ '3. **Earthy Roaster (Specialty Coffee)**\n'
26
+ ' - **Address:** 994 Makkasan, Ratchathewi\n'
27
+ ' - **Rating:** 4.8\n'
28
+ ' - **Open Now:** Yes\n'
29
+ '\n'
30
+ '4. **Salotto Coffee**\n'
31
+ ' - **Address:** 813/8 Phetchaburi Rd, Thanon Phaya Thai, '
32
+ 'Ratchathewi\n'
33
+ ' - **Rating:** 5\n'
34
+ ' - **Open Now:** N/A\n'
35
+ '\n'
36
+ '5. **The Basic Coffee BKK**\n'
37
+ ' - **Address:** ตึก Gaysorn Amarin (ชั้น 2 496-502 Phloen '
38
+ 'Chit Rd, Khwaeng Lumphini, Pathum Wan)\n'
39
+ ' - **Rating:** 4.7\n'
40
+ ' - **Open Now:** Yes\n'
41
+ '\n'
42
+ '6. **Gallery Drip Coffee**\n'
43
+ ' - **Address:** '
44
+ 'อาคารหอศิลปวัฒนธรรมแห่งกรุงเทพมหานคร(BACC) 939 Rama I Rd, '
45
+ 'Wang Mai, Pathum Wan\n'
46
+ ' - **Rating:** 4.6\n'
47
+ ' - **Open Now:** Yes\n'
48
+ '\n'
49
+ '7. **Café BAGA Central World**\n'
50
+ ' - **Address:** 3rd Floor, CentralWorld, Ratchadamri Rd, '
51
+ 'Pathum Wan\n'
52
+ ' - **Rating:** 4.7\n'
53
+ ' - **Open Now:** Yes\n'
54
+ '\n'
55
+ '8. **The Coffee Academics**\n'
56
+ ' - **Address:** Velaa Sindhorn Village Langsuan, 87 Soi '
57
+ 'Langsuan, Lumphini, Pathum Wan\n'
58
+ ' - **Rating:** 4.4\n'
59
+ ' - **Open Now:** Yes\n'
60
+ '\n'
61
+ '9. **Mongkol COFFEE**\n'
62
+ ' - **Address:** 266/15 Rama I Rd, Pathum Wan\n'
63
+ ' - **Rating:** 4.6\n'
64
+ ' - **Open Now:** Yes\n'
65
+ '\n'
66
+ '10. **echo bar**\n'
67
+ ' - **Address:** Siam Discovery Center 194 Phaya Thai Rd, '
68
+ 'Pathum Wan\n'
69
+ ' - **Rating:** 5\n'
70
+ ' - **Open Now:** Yes\n'
71
+ '\n'
72
+ '#### Analytical Summary\n'
73
+ 'The coffee shop scene around Central World is vibrant, with '
74
+ 'many establishments boasting high ratings (4.5 and above). '
75
+ 'Most of these coffee shops are currently open, catering to '
76
+ 'both locals and tourists. The area is characterized by a '
77
+ 'mix of specialty coffee shops and casual cafes, providing a '
78
+ 'variety of atmospheres and offerings. This presents a '
79
+ 'significant market opportunity for coffee-related '
80
+ 'businesses, especially those focusing on quality and unique '
81
+ 'experiences.\n'
82
+ '\n'
83
+ 'The high ratings indicate a strong customer satisfaction '
84
+ 'level, suggesting that these establishments are effectively '
85
+ 'meeting consumer expectations. The proximity to a major '
86
+ 'shopping center like Central World further enhances foot '
87
+ 'traffic, making it an attractive location for coffee '
88
+ 'shops.\n'
89
+ '\n'
90
+ 'If you need further insights or specific data, feel free to '
91
+ 'ask!',
92
+ 'quesion': 'ร้านกาแฟใกล้เซ็นทรัลเวิลด์\n'},
93
+ { 'answer': 'FINAL ANSWER:\n'
94
+ '\n'
95
+ '### Bakery Competitors Analysis Near Chatuchak Market\n'
96
+ '\n'
97
+ '#### Competitors Overview\n'
98
+ '1. **Sanan Bakery**\n'
99
+ ' - **Address:** 101 Phahonyothin Rd, Lat Yao, Chatuchak\n'
100
+ ' - **Rating:** 4.4\n'
101
+ ' - **Open Now:** Yes\n'
102
+ '\n'
103
+ '2. **The Croissant Corner**\n'
104
+ ' - **Address:** Phahon Yothin 15 Alley, Samsen Nai, Phaya '
105
+ 'Thai, Chatuchak\n'
106
+ ' - **Rating:** 4.7\n'
107
+ ' - **Open Now:** Yes\n'
108
+ '\n'
109
+ '3. **Baked With Hearts**\n'
110
+ ' - **Address:** 485 Phahon Yothin 18/1 Alley, Lane 1, '
111
+ 'Chom Phon, Chatuchak\n'
112
+ ' - **Rating:** 4.6\n'
113
+ ' - **Open Now:** Yes\n'
114
+ '\n'
115
+ '4. **JJ Mall One More Bite Japanese Bakery**\n'
116
+ ' - **Address:** 588 Kamphaeng Phet 2 Rd, Chatuchak\n'
117
+ ' - **Rating:** 4.9\n'
118
+ ' - **Open Now:** Yes\n'
119
+ '\n'
120
+ '5. **Triple D Bakery @ Chatuchak Market**\n'
121
+ ' - **Address:** 47 Section 4, Khwaeng Chatuchak, Khet '
122
+ 'Chatuchak\n'
123
+ ' - **Rating:** 4.9\n'
124
+ ' - **Open Now:** No\n'
125
+ '\n'
126
+ "6. **Bellinee's Bake & Brew**\n"
127
+ ' - **Address:** Chatuchak Weekend Market, Khwaeng '
128
+ 'Chatuchak, Khet Chatuchak\n'
129
+ ' - **Rating:** 3.9\n'
130
+ ' - **Open Now:** Yes\n'
131
+ '\n'
132
+ '7. **Miss Muay Bakery**\n'
133
+ ' - **Address:** Kamphaeng Phet Rd, Chatuchak\n'
134
+ ' - **Rating:** 3.8\n'
135
+ ' - **Open Now:** Yes\n'
136
+ '\n'
137
+ '8. **3meebakery**\n'
138
+ ' - **Address:** Project 4, Soi 48/3, Chatuchak\n'
139
+ ' - **Rating:** 5\n'
140
+ ' - **Open Now:** No\n'
141
+ '\n'
142
+ '9. **Mom’s FF Cafe & Bakery**\n'
143
+ ' - **Address:** 356-357, Chatuchak\n'
144
+ ' - **Rating:** 5\n'
145
+ ' - **Open Now:** N/A\n'
146
+ '\n'
147
+ '10. **Makarong**\n'
148
+ ' - **Address:** Project 4, Soi 49/2, Chatuchak\n'
149
+ ' - **Rating:** 4.9\n'
150
+ ' - **Open Now:** No\n'
151
+ '\n'
152
+ '11. **Wipada Herb Coffee and Bakery**\n'
153
+ ' - **Address:** 2 Kamphaeng Phet Rd, Chatuchak\n'
154
+ ' - **Rating:** 0\n'
155
+ ' - **Open Now:** Yes\n'
156
+ '\n'
157
+ '### Summary\n'
158
+ '- **Total Competitors Found:** 15 bakeries\n'
159
+ '- **Average Rating:** Approximately 4.4 (based on available '
160
+ 'ratings)\n'
161
+ '- **Open Now:** Majority of the bakeries are currently '
162
+ 'open.\n'
163
+ '\n'
164
+ 'This competitive landscape indicates a vibrant market for '
165
+ 'bakeries in the Chatuchak area, with several high-rated '
166
+ 'options available. If you need further insights or specific '
167
+ 'data points, please let me know!',
168
+ 'quesion': 'วิเคราะห์คู่แข่งของร้านเบเกอรี่ใกล้ตลาดจตุจักร\n'},
169
+ { 'answer': 'FINAL ANSWER:\n'
170
+ '\n'
171
+ '### Coffee Shop Market Analysis Near MBK Center '
172
+ '(มาบุญครอง), Pathum Wan, Bangkok\n'
173
+ '\n'
174
+ '#### Competitor Overview\n'
175
+ '- **Total Coffee Shops Nearby**: Over 20 coffee shops '
176
+ 'within a 5 km radius.\n'
177
+ '- **Top Competitors**:\n'
178
+ ' 1. **Angle Coffee**\n'
179
+ ' - **Address**: Makkasan, Ratchathewi\n'
180
+ ' - **Rating**: 5\n'
181
+ ' - **Open Now**: Yes\n'
182
+ ' 2. **Olympic Coffee**\n'
183
+ ' - **Address**: 43/4 Rama VI Rd, Rong Muang, Pathum '
184
+ 'Wan\n'
185
+ ' - **Rating**: 4.8\n'
186
+ ' - **Open Now**: Yes\n'
187
+ ' 3. **Factory Coffee - BKK**\n'
188
+ ' - **Address**: 49 Phaya Thai Rd, Thanon Phaya Thai, '
189
+ 'Ratchathewi\n'
190
+ ' - **Rating**: 4.5\n'
191
+ ' - **Open Now**: Yes\n'
192
+ ' 4. **Treasure Specialty Coffee**\n'
193
+ ' - **Address**: MINT TOWER Bantadthong Phetchaburi Rd, '
194
+ 'Subdistrict Pathum Wan\n'
195
+ ' - **Rating**: 4.9\n'
196
+ ' - **Open Now**: Yes\n'
197
+ ' 5. **D Coffee House**\n'
198
+ ' - **Address**: 445 Rama I Rd, Rong Muang, Pathum Wan\n'
199
+ ' - **Rating**: 4.9\n'
200
+ ' - **Open Now**: Yes\n'
201
+ '\n'
202
+ '#### Demographic Insights\n'
203
+ '- **Location**: Pathum Wan, Bangkok 10330, Thailand\n'
204
+ '- **Community Type**: Urban, with a mix of residential, '
205
+ 'commercial, and tourist areas.\n'
206
+ '- **Population**: Densely populated with a mix of locals '
207
+ 'and tourists, especially due to nearby shopping centers.\n'
208
+ '\n'
209
+ '#### Market Opportunities\n'
210
+ '- **Household Expenditures**: Higher disposable income in '
211
+ 'the area due to the presence of shopping malls and business '
212
+ 'districts, leading to potential higher spending on coffee.\n'
213
+ '- **Product Offerings**: Consider focusing on specialty '
214
+ 'coffee, unique blends, and creating a cozy atmosphere to '
215
+ 'attract both locals and tourists.\n'
216
+ '\n'
217
+ '### Summary\n'
218
+ 'The coffee shop market near MBK Center is competitive but '
219
+ 'offers significant opportunities due to high foot traffic '
220
+ 'and a diverse customer base. A new coffee shop can thrive '
221
+ 'by differentiating itself through unique offerings and a '
222
+ 'welcoming environment.',
223
+ 'quesion': 'วิเคราะห์การเปิดร้านกาแฟใกล้มาบุญครอง\n'},
224
+ { 'answer': 'FINAL ANSWER\n'
225
+ '\n'
226
+ '### Bakery Competitors Analysis Near Chatuchak Market\n'
227
+ '\n'
228
+ '#### Competitors Overview\n'
229
+ '- **Total Competitors**: 15 bakeries identified in the '
230
+ 'vicinity of Chatuchak Market.\n'
231
+ '- **Notable Competitors**:\n'
232
+ ' 1. **Sanan Bakery**\n'
233
+ ' - Rating: 4.4\n'
234
+ ' - Address: 101 Phahonyothin Rd, Lat Yao, Chatuchak\n'
235
+ ' - Open Now: Yes\n'
236
+ ' 2. **The Croissant Corner**\n'
237
+ ' - Rating: 4.7\n'
238
+ ' - Address: Phahon Yothin 15 Alley, Samsen Nai, Phaya '
239
+ 'Thai, Chatuchak\n'
240
+ ' - Open Now: Yes\n'
241
+ ' 3. **Baked With Hearts**\n'
242
+ ' - Rating: 4.6\n'
243
+ ' - Address: 485 Phahon Yothin 18/1 Alley, Lane 1, Chom '
244
+ 'Phon, Chatuchak\n'
245
+ ' - Open Now: Yes\n'
246
+ ' 4. **JJ Mall One More Bite Japanese Bakery**\n'
247
+ ' - Rating: 4.9\n'
248
+ ' - Address: JJ Mall, 588 Kamphaeng Phet 2 Rd, '
249
+ 'Chatuchak\n'
250
+ ' - Open Now: Yes\n'
251
+ ' 5. **Triple D Bakery @ Chatuchak Market**\n'
252
+ ' - Rating: 4.9\n'
253
+ ' - Address: 47 Section 4, Khwaeng Chatuchak, Khet '
254
+ 'Chatuchak\n'
255
+ ' - Open Now: No\n'
256
+ " 6. **Bellinee's Bake & Brew**\n"
257
+ ' - Rating: 3.9\n'
258
+ ' - Address: Chatuchak Weekend Market, Khwaeng '
259
+ 'Chatuchak, Khet Chatuchak\n'
260
+ ' - Open Now: Yes\n'
261
+ '\n'
262
+ '#### Location Data\n'
263
+ '- **Main Location**: Chatuchak Weekend Market\n'
264
+ ' - **Address**: 587, 10 Kamphaeng Phet 2 Rd, Khwaeng '
265
+ 'Chatuchak, Khet Chatuchak, Krung Thep Maha Nakhon 10900, '
266
+ 'Thailand\n'
267
+ ' - **Website**: [Chatuchak '
268
+ 'Market](https://www.chatuchakmarket.org/)\n'
269
+ '\n'
270
+ '#### Community and Demographics\n'
271
+ '- **Population**: The area around Chatuchak Market is '
272
+ 'densely populated, with a mix of residential and commercial '
273
+ 'spaces.\n'
274
+ '- **Community Type**: Urban community with a vibrant market '
275
+ 'culture, attracting both locals and tourists.\n'
276
+ '- **Household Expenditures**: The area is known for a '
277
+ 'variety of shopping options, indicating a moderate to high '
278
+ 'level of household expenditures on food and leisure.\n'
279
+ '\n'
280
+ '### Analytical Summary\n'
281
+ 'The bakery market near Chatuchak Market is competitive, '
282
+ 'with several high-rated establishments. The presence of '
283
+ 'multiple bakeries suggests a strong demand for baked goods '
284
+ 'in the area, driven by both local residents and tourists '
285
+ "visiting the market. The community's urban nature and "
286
+ 'diverse shopping options contribute to a favorable '
287
+ 'environment for bakery businesses. The data indicates '
288
+ 'opportunities for new entrants to capture market share, '
289
+ 'especially if they can differentiate themselves through '
290
+ 'unique offerings or superior customer service.',
291
+ 'quesion': 'Analyze competitors of a bakery near Chatuchak Market\n'},
292
+ { 'answer': 'FINAL ANSWER\n'
293
+ '\n'
294
+ '### Analysis for Opening a Restaurant Near Siam Paragon\n'
295
+ '\n'
296
+ '#### Location Information\n'
297
+ '- **Siam Paragon**\n'
298
+ ' - **Address:** 991/1 Rama I Rd, Khwaeng Pathum Wan, '
299
+ 'Pathum Wan, Krung Thep Maha Nakhon 10330, Thailand\n'
300
+ ' - **Phone:** 02 690 1000\n'
301
+ ' - **Website:** [Siam '
302
+ 'Paragon](https://www.siamparagon.co.th/)\n'
303
+ '\n'
304
+ '#### Nearby Competitors (Restaurants)\n'
305
+ '1. **Shree Bhavan Pure South Indian Vegetarian '
306
+ 'Restaurant**\n'
307
+ ' - **Address:** 120 Pratunam Market, 45 Ratchaprarop Rd, '
308
+ 'Thanon Phaya Thai, Ratchathewi\n'
309
+ ' - **Rating:** 4.9\n'
310
+ ' - **Open Now:** Yes\n'
311
+ '\n'
312
+ '2. **I Food Bar & Restaurant**\n'
313
+ ' - **Address:** No.49/26, Soi Petchburi 15, Phetchaburi '
314
+ 'Rd, Subdistrict, Ratchathewi\n'
315
+ ' - **Rating:** 4.8\n'
316
+ ' - **Open Now:** Yes\n'
317
+ '\n'
318
+ '3. **Tan Kun (ท่านขุน) Central World**\n'
319
+ ' - **Address:** ชั้น 1st fl โซนฮักไทย (hug thai Zone) '
320
+ 'ติดประตูทางออกโรงแรมเซ็นทรา 4 Central World\n'
321
+ ' - **Rating:** 4.7\n'
322
+ ' - **Open Now:** Yes\n'
323
+ '\n'
324
+ '4. **Jasmine Siam Kitchen (จัสมิน สยาม คิทเช่น)**\n'
325
+ ' - **Address:** 497, 14-15 Phetchaburi Rd, Thung Phaya '
326
+ 'Thai, Ratchathewi\n'
327
+ ' - **Rating:** 4.7\n'
328
+ ' - **Open Now:** Yes\n'
329
+ '\n'
330
+ '5. **Ñam Ñam Pasta and Tapas (CentralWorld)**\n'
331
+ ' - **Address:** Level 3 4, 4 Ratchadamri Rd, Khwaeng '
332
+ 'Pathum Wan, Pathum Wan\n'
333
+ ' - **Rating:** 4.2\n'
334
+ ' - **Open Now:** Yes\n'
335
+ '\n'
336
+ '6. **Anjappar Chettinad Restaurant Indra Square**\n'
337
+ ' - **Address:** 120, 23 Ratchrarop Soi 3, Khwaeng Thanon '
338
+ 'Phaya Thai, Ratchathewi\n'
339
+ ' - **Rating:** 4.5\n'
340
+ ' - **Open Now:** Yes\n'
341
+ '\n'
342
+ '7. **Jim Thompson, A Thai Restaurant**\n'
343
+ ' - **Address:** 6, 1 Kasem San 2 Alley, Wang Mai, Pathum '
344
+ 'Wan\n'
345
+ ' - **Rating:** 4.5\n'
346
+ ' - **Open Now:** Yes\n'
347
+ '\n'
348
+ '8. **Inter Restaurants since 1981**\n'
349
+ ' - **Address:** 432/1-2 Siam Square 9 Alley, Pathum Wan\n'
350
+ ' - **Rating:** 4.4\n'
351
+ ' - **Open Now:** Yes\n'
352
+ '\n'
353
+ '9. **Arun Thai Cuisine by SEE FAH**\n'
354
+ ' - **Address:** ชั้น L Grande Centre Point Ratchadamri '
355
+ '153/2 Mahatlek Luang 1 Alley, Lumphini, Pathum Wan\n'
356
+ ' - **Rating:** 4.4\n'
357
+ ' - **Open Now:** Yes\n'
358
+ '\n'
359
+ '10. **Metro Square SiamParagon**\n'
360
+ ' - **Address:** 991 Rama I Rd, Khwaeng Pathum Wan, '
361
+ 'Pathum Wan\n'
362
+ ' - **Rating:** 4.7\n'
363
+ ' - **Open Now:** Yes\n'
364
+ '\n'
365
+ '#### Market Insights\n'
366
+ '- **Number of Competitors:** There are over 20 restaurants '
367
+ 'within a 1 km radius of Siam Paragon.\n'
368
+ '- **Community Type:** The area is a bustling commercial hub '
369
+ 'with high foot traffic, especially from tourists and '
370
+ 'shoppers.\n'
371
+ '- **Potential Customer Base:** The proximity to shopping '
372
+ 'centers and tourist attractions suggests a diverse customer '
373
+ 'base, including locals and international visitors.\n'
374
+ '\n'
375
+ '#### Conclusion\n'
376
+ 'The area around Siam Paragon is highly competitive with '
377
+ 'numerous well-rated restaurants. However, the high foot '
378
+ 'traffic and diverse clientele present a significant '
379
+ 'opportunity for a new restaurant. Consider offering a '
380
+ 'unique cuisine or dining experience to stand out in this '
381
+ 'vibrant market.',
382
+ 'quesion': 'วิเคราะห์การเปิดร้านอาหารใกล้สยามพารากอน\n'},
383
+ { 'answer': 'The feasibility of opening a restaurant near Siam Paragon '
384
+ 'is promising due to the following insights:\n'
385
+ '\n'
386
+ '1. **Location**: Siam Paragon is situated in a prime '
387
+ 'commercial area with high foot traffic, making it an '
388
+ 'attractive spot for a restaurant.\n'
389
+ '\n'
390
+ '2. **Competition**: There are over 20 restaurants within a '
391
+ '1 km radius, indicating a competitive market. Notable '
392
+ 'competitors include:\n'
393
+ ' - Shree Bhavan Pure South Indian Vegetarian Restaurant '
394
+ '(Rating: 4.9)\n'
395
+ ' - I Food Bar & Restaurant (Rating: 4.8)\n'
396
+ ' - Tan Kun (Central World) (Rating: 4.7)\n'
397
+ ' - Metro Square SiamParagon (Rating: 4.7)\n'
398
+ ' - KAI Japanese Restaurant Gaysorn Amarin (Rating: 5.0)\n'
399
+ '\n'
400
+ '3. **Market Demand**: The presence of numerous high-rated '
401
+ 'restaurants suggests a strong demand for dining options, '
402
+ 'indicating a favorable environment for a new restaurant.\n'
403
+ '\n'
404
+ '4. **Target Audience**: The area attracts both locals and '
405
+ 'tourists, providing a diverse customer base.\n'
406
+ '\n'
407
+ '5. **Operational Considerations**: To succeed, the new '
408
+ 'restaurant must differentiate itself through unique '
409
+ 'offerings, competitive pricing, and effective marketing '
410
+ 'strategies.\n'
411
+ '\n'
412
+ 'In conclusion, while competition is significant, the high '
413
+ 'foot traffic and demand for dining options near Siam '
414
+ 'Paragon present a feasible opportunity for opening a '
415
+ 'restaurant, especially with a unique concept. Further '
416
+ 'market research and a solid business plan will be essential '
417
+ 'for success.',
418
+ 'quesion': 'Analyze the feasibility of opening a restaurant near Siam '
419
+ 'Paragon\n'},
420
+ { '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}}"),
421
+ 'quesion': 'ค้นหาร้านของชำใกล้อนุสาวรีย์ชัยฯ '
422
+ 'พร้อมวิเคราะห์จำนวนประชากร\n'},
423
+ { 'answer': 'FINAL ANSWER\n'
424
+ '\n'
425
+ '### Market Analysis for Opening a Bookstore Near Thong Lo\n'
426
+ '\n'
427
+ '#### Competitor Overview\n'
428
+ '1. **Asiabooks Bangkok Hospital**\n'
429
+ ' - **Address**: 1-06 Bangkok Plaza, New Petchaburi Rd, '
430
+ 'Bang Kapi, Huai Khwang\n'
431
+ ' - **Rating**: 3.5\n'
432
+ ' - **Open Now**: Yes\n'
433
+ '\n'
434
+ '2. **นายอินทร์ สาขา โรงพยาบาลกรุงเทพ**\n'
435
+ ' - **Address**: 22 Bangkok Plaza, Soi Phetchaburi 47 Yaek '
436
+ '10, Bang Kapi, Huai Khwang\n'
437
+ ' - **Rating**: 4\n'
438
+ ' - **Open Now**: Yes\n'
439
+ '\n'
440
+ '3. **Book Link Co.,LTD.**\n'
441
+ ' - **Address**: 47/3 Ekkamai 28 Alley, Khlong Tan Nuea, '
442
+ 'Watthana\n'
443
+ ' - **Rating**: 4\n'
444
+ ' - **Open Now**: Yes\n'
445
+ '\n'
446
+ '4. **ร้านสนุกดี**\n'
447
+ ' - **Address**: 2447/7 New Petchaburi Rd, Bang Kapi, Huai '
448
+ 'Khwang\n'
449
+ ' - **Rating**: 5\n'
450
+ ' - **Open Now**: Yes\n'
451
+ '\n'
452
+ '#### Insights\n'
453
+ '- **Competition**: There are currently four bookstores '
454
+ 'within a 500-meter radius of Thong Lo, indicating a '
455
+ 'competitive market.\n'
456
+ '- **Customer Ratings**: The ratings of existing bookstores '
457
+ 'range from 3.5 to 5, suggesting a moderate to high level of '
458
+ 'customer satisfaction.\n'
459
+ '- **Market Demand**: The presence of multiple bookstores '
460
+ 'indicates a demand for books in the area, but also '
461
+ 'highlights the need for differentiation.\n'
462
+ '\n'
463
+ '#### Missing Data\n'
464
+ '- **Population Data**: No specific population data was '
465
+ 'found for the area.\n'
466
+ '- **Community Type**: No specific community type data was '
467
+ 'found for the area.\n'
468
+ '- **Household Expenditures**: No specific household '
469
+ 'expenditure data was found for the area.\n'
470
+ '\n'
471
+ '### Conclusion\n'
472
+ 'Opening a bookstore near Thong Lo could be a viable '
473
+ "business opportunity, given the area's vibrancy and "
474
+ 'existing demand for books. However, it is crucial to '
475
+ 'differentiate the new bookstore from existing competitors '
476
+ 'through unique offerings or services. Further research into '
477
+ "the community's demographics and spending habits would "
478
+ 'enhance the understanding of the market potential.',
479
+ 'quesion': 'วิเคราะห์ความเป็นไปได้ในการเปิดร้านหนังสือใกล้ทองหล่อ'},
480
+ { '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}}"),
481
+ 'quesion': 'ค้นหาร้านกาแฟใกล้มาบุญครอง พร้อมวิเคราะห์จำนวนประชากร\n'},
482
+ { 'answer': 'FINAL ANSWER:\n'
483
+ '\n'
484
+ '### Coffee Shops Near Central World and Pathum Wan, '
485
+ 'Bangkok\n'
486
+ '\n'
487
+ '#### Coffee Shops Near Central World\n'
488
+ '1. **BEANS Coffee Roaster Paragon**\n'
489
+ ' - **Address**: 991/1 Rama I Rd, Pathum Wan\n'
490
+ ' - **Rating**: 5\n'
491
+ ' - **Open Now**: Yes\n'
492
+ '\n'
493
+ '2. **Fellas.coffee @soi tonson**\n'
494
+ ' - **Address**: 34/1 Soi Ton Son, Pathum Wan\n'
495
+ ' - **Rating**: 4.9\n'
496
+ ' - **Open Now**: Yes\n'
497
+ '\n'
498
+ '3. **Earthy Roaster (Specialty Coffee)**\n'
499
+ ' - **Address**: 994 Makkasan, Ratchathewi\n'
500
+ ' - **Rating**: 4.8\n'
501
+ ' - **Open Now**: Yes\n'
502
+ '\n'
503
+ '4. **Café BAGA Central World**\n'
504
+ ' - **Address**: 3rd Floor, CentralWorld, Ratchadamri Rd, '
505
+ 'Pathum Wan\n'
506
+ ' - **Rating**: 4.7\n'
507
+ ' - **Open Now**: Yes\n'
508
+ '\n'
509
+ '5. **Early Bird Coffee - Chit Lom BTS**\n'
510
+ ' - **Address**: Chit Lom BTS Lumpini, Pathum Wan\n'
511
+ ' - **Rating**: 4.8\n'
512
+ ' - **Open Now**: Yes\n'
513
+ '\n'
514
+ '#### Additional Coffee Shops in Pathum Wan\n'
515
+ '1. **Angle Coffee**\n'
516
+ ' - **Address**: Makkasan, Ratchathewi\n'
517
+ ' - **Rating**: 5\n'
518
+ ' - **Open Now**: Yes\n'
519
+ '\n'
520
+ '2. **Olympic Coffee**\n'
521
+ ' - **Address**: 43/4 Rama VI Rd, Rong Muang, Pathum Wan\n'
522
+ ' - **Rating**: 4.8\n'
523
+ ' - **Open Now**: Yes\n'
524
+ '\n'
525
+ '3. **Factory Coffee - BKK**\n'
526
+ ' - **Address**: 49 Phaya Thai Rd, Thanon Phaya Thai, '
527
+ 'Ratchathewi\n'
528
+ ' - **Rating**: 4.5\n'
529
+ ' - **Open Now**: Yes\n'
530
+ '\n'
531
+ '4. **Treasure Specialty Coffee**\n'
532
+ ' - **Address**: MINT TOWER Bantadthong Phetchaburi Rd, '
533
+ 'Pathum Wan\n'
534
+ ' - **Rating**: 4.9\n'
535
+ ' - **Open Now**: Yes\n'
536
+ '\n'
537
+ '5. **D Coffee House**\n'
538
+ ' - **Address**: 445 Rama I Rd, Rong Muang, Pathum Wan\n'
539
+ ' - **Rating**: 4.9\n'
540
+ ' - **Open Now**: Yes\n'
541
+ '\n'
542
+ '### General Insights\n'
543
+ '- **Location**: Pathum Wan, Bangkok 10330, Thailand\n'
544
+ '- **Population**: Approximately 100,000 (assumed based on '
545
+ 'urban density)\n'
546
+ '- **Community Type**: Urban\n'
547
+ '- **Household Expenditures**: Average household expenditure '
548
+ 'in urban Bangkok is around 30,000 THB per month (assumed).\n'
549
+ '- **Competitors**: More than 20 coffee shops identified in '
550
+ 'the vicinity.\n'
551
+ '\n'
552
+ '### Analytical Summary\n'
553
+ 'The coffee shop market around Central World and Pathum Wan '
554
+ 'is vibrant, with numerous high-rated establishments. The '
555
+ 'area is characterized by a mix of local and specialty '
556
+ 'coffee shops, catering to a diverse clientele. The high '
557
+ 'ratings indicate a strong customer satisfaction level, '
558
+ 'suggesting opportunities for new entrants to focus on '
559
+ 'unique offerings or experiences. The urban setting and '
560
+ 'significant foot traffic from nearby attractions like '
561
+ 'Central World provide a favorable environment for coffee '
562
+ 'businesses. \n'
563
+ '\n'
564
+ 'This report provides a comprehensive overview of the coffee '
565
+ 'shop landscape in the area, highlighting both competitive '
566
+ 'insights and market opportunities.',
567
+ 'quesion': 'Coffee shop near Central World\n'}]
testsets/user_question_testsets.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ coffee shop near mbk center
2
+ วิเคราะห์การเปิดร้านกาแฟใกล้มาบุญครอง
3
+ วิเคราะห์ร้านอาหารแถวลุมพินี เซ็นเตอร์ ลาดพร้าว
4
+ ค้นหาร้านกาแฟใกล้มาบุญครอง พร้อมวิเคราะห์จำนวนประชากร
5
+ Coffee shop near Central World
6
+ Analyze the feasibility of opening a restaurant near Siam Paragon
7
+ Analyze competitors of a bakery near Chatuchak Market
8
+ Search for grocery stores near Victory Monument and analyze the population
9
+ Feasibility analysis for a bookstore near Thonglor
10
+ ร้านกาแฟใกล้เซ็นทรัลเวิลด์
11
+ วิเคราะห์การเปิดร้านอาหารใกล้สยามพารากอน
12
+ วิเคราะห์คู่แข่งของร้านเบเกอรี่ใกล้ตลาดจตุจักร
13
+ ค้นหาร้านของชำใกล้อนุสาวรีย์ชัยฯ พร้อมวิเคราะห์จำนวนประชากร
14
+ วิเคราะห์ความเป็นไปได้ในการเปิดร้านหนังสือใกล้ทองหล่อ