{ "cells": [ { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [], "source": [ "from chatbot_multiagent import submitUserMessage\n", "import random\n", "from math import inf\n", "\n", "def QA_sample_test(quesion_test:list[str], num_samples:int=inf):\n", " \n", " # Ensure there are at least 5 lines in the list\n", " num_samples = min(10, len(quesion_test))\n", " sample_quesion = random.sample(quesion_test, num_samples)\n", " \n", " result = []\n", " for quesion in sample_quesion:\n", " try:\n", " answer = submitUserMessage(quesion)\n", " result.append({'quesion': quesion, 'answer': answer}) \n", " except Exception as e:\n", " result.append({'quesion': quesion, 'error': e}) \n", " \n", " return result " ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [], "source": [ "with open('./testsets/user_question_testsets.txt', 'r') as file:\n", " quesion_test = file.readlines() \n", "\n", "results = QA_sample_test(quesion_test, num_samples=15)" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Results saved to testsets/QA.txt\n" ] } ], "source": [ "import pprint \n", "\n", "# Create a PrettyPrinter instance with a desired indentation level\n", "pp = pprint.PrettyPrinter(indent=4)\n", "\n", "# Convert the list of dictionaries to a pretty-printed string\n", "results_str = pp.pformat(results)\n", "\n", "# Specify the file path where you want to save the string\n", "file_path = 'testsets/QA.txt'\n", "\n", "# Save the pretty-printed string to a .txt file\n", "with open(file_path, 'w') as file:\n", " file.write(results_str)\n", "\n", "print(f\"Results saved to {file_path}\")" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "[{'answer': 'FINAL ANSWER:\\n'\n", " '\\n'\n", " '### Market Analysis for Opening a Coffee Shop Near MBK Center '\n", " '(มาบุญครอง), Bangkok\\n'\n", " '\\n'\n", " '#### Competitors\\n'\n", " '- There are **over 20 coffee shops** within a 1 km radius of MBK '\n", " 'Center, indicating a competitive market landscape.\\n'\n", " '\\n'\n", " '#### Notable Nearby Competitors\\n'\n", " '1. **BEANS Coffee Roaster Paragon**\\n'\n", " ' - Rating: 5\\n'\n", " ' - Address: 991/1 Rama I Rd, Pathum Wan\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '2. **The Palette**\\n'\n", " ' - Rating: 4.8\\n'\n", " ' - Address: Phaya Thai Rd, Thanon Phetchaburi, Ratchathewi\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '3. **Olympic Coffee**\\n'\n", " ' - Rating: 4.8\\n'\n", " ' - Address: 43/4 Rama VI Rd, Rong Muang, Pathum Wan\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '4. **Treasure Specialty Coffee**\\n'\n", " ' - Rating: 4.9\\n'\n", " ' - Address: MINT TOWER Bantadthong Phetchaburi Rd, Subdistrict '\n", " 'Pathum Wan\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '5. **Salotto Coffee**\\n'\n", " ' - Rating: 5\\n'\n", " ' - Address: 813/8 Phetchaburi Rd, Thanon Phaya Thai, '\n", " 'Ratchathewi\\n'\n", " ' - Open Now: N/A\\n'\n", " '\\n'\n", " \"6. **Sip 'n Drip**\\n\"\n", " ' - Rating: 4.9\\n'\n", " ' - Address: 36, 6 Kasem San 1 Alley, Wang Mai, Pathum Wan\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '7. **D Coffee House**\\n'\n", " ' - Rating: 4.9\\n'\n", " ' - Address: 445 Rama I Rd, Rong Muang, Pathum Wan\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '8. **Gallery Drip Coffee**\\n'\n", " ' - Rating: 4.6\\n'\n", " ' - Address: 939 Rama I Rd, Wang Mai, Pathum Wan\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '9. **GATTA CAFÉ**\\n'\n", " ' - Rating: 4.9\\n'\n", " ' - Address: 2nd Floor Siam Square One 388 Rama I Rd, Pathum '\n", " 'Wan\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '10. **CRANNIES Coffee & Brunch**\\n'\n", " ' - Rating: 5\\n'\n", " ' - Address: 126 Soi Chulalongkorn 50, Wang Mai, Pathum Wan\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '#### Community Type\\n'\n", " '- The area is urban and commercial, attracting a mix of locals '\n", " 'and tourists, which is beneficial for a coffee shop.\\n'\n", " '\\n'\n", " '#### Population Data\\n'\n", " '- While specific demographic data was not retrieved, Bangkok is '\n", " 'known for its high population density and diverse demographic '\n", " 'profile.\\n'\n", " '\\n'\n", " '#### Household Expenditures\\n'\n", " '- Specific data on household expenditures was not retrieved, but '\n", " 'Bangkok generally has a wide range of consumer spending patterns, '\n", " 'especially in urban areas.\\n'\n", " '\\n'\n", " '### Conclusion\\n'\n", " 'The coffee shop market near MBK Center is competitive, with many '\n", " 'well-rated establishments. The urban environment and high foot '\n", " 'traffic from both locals and tourists present a promising '\n", " 'opportunity for a new coffee shop, especially if it can offer a '\n", " 'unique value proposition or niche. \\n'\n", " '\\n'\n", " 'If you require further insights or specific data, feel free to '\n", " 'ask!',\n", " 'quesion': 'วิเคราะห์การเปิดร้านกาแฟใกล้มาบุญครอง\\n'},\n", " {'answer': 'FINAL ANSWER:\\n'\n", " '\\n'\n", " '### Coffee Shops Near MBK Center (มาบุญครอง)\\n'\n", " '1. **BEANS Coffee Roaster Paragon**\\n'\n", " ' - Address: 991/1 Rama I Rd, Pathum Wan\\n'\n", " ' - Rating: 5\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '2. **The Palette**\\n'\n", " ' - Address: Phaya Thai Rd, Thanon Phetchaburi, Ratchathewi\\n'\n", " ' - Rating: 4.8\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '3. **Olympic Coffee**\\n'\n", " ' - Address: 43/4 Rama VI Rd, Rong Muang, Pathum Wan\\n'\n", " ' - Rating: 4.8\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '4. **Treasure Specialty Coffee**\\n'\n", " ' - Address: MINT TOWER Bantadthong Phetchaburi Rd, Subdistrict '\n", " 'Pathum Wan\\n'\n", " ' - Rating: 4.9\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '5. **Salotto Coffee**\\n'\n", " ' - Address: 813/8 Phetchaburi Rd, Thanon Phaya Thai, '\n", " 'Ratchathewi\\n'\n", " ' - Rating: 5\\n'\n", " ' - Open Now: N/A\\n'\n", " '\\n'\n", " \"6. **Sip 'n Drip**\\n\"\n", " ' - Address: 36, 6 Kasem San 1 Alley, Wang Mai, Pathum Wan\\n'\n", " ' - Rating: 4.9\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '7. **D Coffee House**\\n'\n", " ' - Address: 445 Rama I Rd, Rong Muang, Pathum Wan\\n'\n", " ' - Rating: 4.9\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '8. **Gallery Drip Coffee**\\n'\n", " ' - Address: 939 Rama I Rd, Wang Mai, Pathum Wan\\n'\n", " ' - Rating: 4.6\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '9. **GATTA CAFÉ**\\n'\n", " ' - Address: 2nd Floor Siam Square One 388 Rama I Rd, Pathum '\n", " 'Wan\\n'\n", " ' - Rating: 4.9\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '10. **CRANNIES Coffee & Brunch**\\n'\n", " ' - Address: 126 Soi Chula 50 Wang Mai, Pathum Wan\\n'\n", " ' - Rating: 5\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '### Population and Community Insights\\n'\n", " '- **Area**: Pathum Wan, Bangkok\\n'\n", " '- **Community Type**: Urban, diverse, with a mix of locals and '\n", " 'expatriates.\\n'\n", " '- **Population**: Densely populated, estimated in the tens of '\n", " 'thousands.\\n'\n", " '- **Household Expenditures**: Likely higher due to the commercial '\n", " 'nature of the area, especially on dining and entertainment.\\n'\n", " '\\n'\n", " '### Summary\\n'\n", " 'The area around MBK Center is vibrant with numerous coffee shops, '\n", " 'indicating a competitive market. The urban community is '\n", " 'characterized by a diverse population and higher household '\n", " 'expenditures, making it an attractive location for coffee '\n", " 'businesses. Further demographic data would require access to '\n", " 'specific census information.',\n", " 'quesion': 'ค้นหาร้านกาแฟใกล้มาบุญครอง พร้อมวิเคราะห์จำนวนประชากร\\n'},\n", " {'answer': 'The Victory Monument (อนุสาวรีย์ชัยสมรภูมิ) is located in the '\n", " 'Ratchathewi district of Bangkok, Thailand. Here are the details:\\n'\n", " '\\n'\n", " '- **Address**: \\n'\n", " ' - QG7Q+X87, Phahon Yothin Rd, Khwaeng Thanon Phaya Thai, Khet '\n", " 'Ratchathewi, Krung Thep Maha Nakhon 10400, Thailand\\n'\n", " ' - Thanon Phaya Thai, Ratchathewi, Bangkok 10400, Thailand\\n'\n", " '- **Google Place ID**: ChIJgV6P8rCe4jARDeGu63VNWdQ\\n'\n", " '\\n'\n", " 'As for the population analysis, the Ratchathewi district is known '\n", " 'to be densely populated, with a mix of residential, commercial, '\n", " 'and educational facilities. The area is well-connected by public '\n", " 'transport, including the BTS Skytrain, which contributes to its '\n", " 'accessibility and attractiveness for residents and businesses '\n", " 'alike.\\n'\n", " '\\n'\n", " 'The population density in urban areas like Ratchathewi can be '\n", " 'quite high, often exceeding several thousand people per square '\n", " 'kilometer, depending on the specific locality. This density '\n", " 'supports a vibrant community with various amenities, including '\n", " 'the grocery stores mentioned earlier.\\n'\n", " '\\n'\n", " 'If you need more specific demographic statistics or further '\n", " 'analysis, please let me know! \\n'\n", " '\\n'\n", " 'FINAL ANSWER',\n", " 'quesion': 'ค้นหาร้านของชำใกล้อนุสาวรีย์ชัยฯ พร้อมวิเคราะห์จำนวนประชากร\\n'},\n", " {'answer': 'The feasibility of opening a restaurant near Siam Paragon is '\n", " 'promising due to high foot traffic, a diverse customer base, and '\n", " 'significant demand for dining options. However, the competitive '\n", " 'landscape is intense, with over 20 existing restaurants in the '\n", " 'vicinity, many of which have high customer ratings. A new '\n", " 'restaurant would need to differentiate itself through unique '\n", " 'offerings or exceptional service to succeed in this bustling '\n", " 'market. Further research on target demographics and pricing '\n", " 'strategies is recommended to refine the business plan.',\n", " 'quesion': 'Analyze the feasibility of opening a restaurant near Siam '\n", " 'Paragon\\n'},\n", " {'answer': 'FINAL ANSWER\\n'\n", " '\\n'\n", " '### Coffee Shops Near Central World\\n'\n", " '\\n'\n", " '1. **Gallery Drip Coffee**\\n'\n", " ' - **Address:** BACC, 939 Rama I Rd, Wang Mai, Pathum Wan\\n'\n", " ' - **Rating:** 4.6\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '2. **Casa Lapin Specialty Coffee x Ratchathewi**\\n'\n", " ' - **Address:** 318 Phaya Thai Rd, Khwaeng Thanon Phetchaburi, '\n", " 'Khet Ratchathewi\\n'\n", " ' - **Rating:** 4.2\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '3. **True Coffee @Siam Square Soi2**\\n'\n", " ' - **Address:** 232/5 Alley, Pathum Wan\\n'\n", " ' - **Rating:** 4.2\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '4. **Buddy Coffee**\\n'\n", " ' - **Address:** 6, 10330, 7 Ratchadamri Rd, Lumphini, Pathum '\n", " 'Wan\\n'\n", " ' - **Rating:** 4.3\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '5. **The Coffee Academics Thailand, Gaysorn Village**\\n'\n", " ' - **Address:** G Fl, Gaysorn Tower, Gaysorn Village, 999 '\n", " 'Phloen Chit Rd, Lumphini, Pathum Wan\\n'\n", " ' - **Rating:** 4.3\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '6. **Pacamara Coffee Roasters (The Offices at CentralwOrld)**\\n'\n", " ' - **Address:** 999/9 Rama I Rd, Pathum Wan\\n'\n", " ' - **Rating:** 4.4\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '7. **26y coffee**\\n'\n", " ' - **Address:** 645, 47 Phetchaburi Rd, Thanon Phaya Thai, '\n", " 'Ratchathewi\\n'\n", " ' - **Rating:** 4.9\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '8. **Dao Coffee**\\n'\n", " ' - **Address:** Unit #SS 4008, 388 Rama I Rd, Pathum Wan\\n'\n", " ' - **Rating:** 3.9\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '9. **Coffee Color**\\n'\n", " ' - **Address:** 425 Ratchaprarop Rd, Makkasan, Ratchathewi\\n'\n", " ' - **Rating:** 4.5\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '10. **Beaming**\\n'\n", " ' - **Address:** Phetchaburi Rd, Khwaeng Thung Phaya Thai, '\n", " 'Ratchathewi\\n'\n", " ' - **Rating:** 4.9\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '11. **Alto Coffee Roasters (Central@Central World)**\\n'\n", " ' - **Address:** 5th floor, Zen, Ratchadamri Rd, Pathum Wan\\n'\n", " ' - **Rating:** 4.4\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '12. **THE COFFEE CLUB - Wireless Road**\\n'\n", " ' - **Address:** No. 103A, G Floor, Room, 208 Witthayu Rd, '\n", " 'Lumphini, Pathum Wan\\n'\n", " ' - **Rating:** 4.6\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '13. **Samantao Heritage Coffee**\\n'\n", " ' - **Address:** 4 Soi Somkid, Lumphini, Pathum Wan\\n'\n", " ' - **Rating:** 4.4\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '14. **Southern Coffee by Pakin**\\n'\n", " ' - **Address:** 4A, 183 444 Phaya Thai Rd, Wang Mai, Pathum '\n", " 'Wan\\n'\n", " ' - **Rating:** 2.9\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '15. **K COFFEE by UCC @Kinokuniya Central World 6th Floor**\\n'\n", " ' - **Address:** 4 4/1-4/2 Rama I Rd, Khwaeng Pathum Wan, '\n", " 'Pathum Wan\\n'\n", " ' - **Rating:** 4.2\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '16. **TrueCoffee**\\n'\n", " ' - **Address:** 4 Ratchaprasong Road, Pathum Wan\\n'\n", " ' - **Rating:** 4.0\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '17. **Brave Roasters / Siam Discovery**\\n'\n", " ' - **Address:** 3rd Floor, Siam Discovery, Rama I Rd, Pathum '\n", " 'Wan\\n'\n", " ' - **Rating:** 4.4\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '18. **Pacamara Coffee Roaster (Velaa Sindhorn Village)**\\n'\n", " ' - **Address:** 64 Lang Suan Rd, Lumphini, Pathum Wan\\n'\n", " ' - **Rating:** 4.4\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '19. **GATTA CAFé**\\n'\n", " ' - **Address:** 2nd Floor Siam Square One 388 Rama I Rd, '\n", " 'Pathum Wan\\n'\n", " ' - **Rating:** 4.9\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '20. **Coffee Booms**\\n'\n", " ' - **Address:** 3rd Fl, 939 Rama I Rd, Wang Mai, Pathum Wan\\n'\n", " ' - **Rating:** 4.8\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '### Summary\\n'\n", " 'The area around Central World is rich with coffee shop options, '\n", " 'boasting a variety of atmospheres and specialties. The ratings '\n", " 'indicate a generally high level of customer satisfaction, with '\n", " 'several shops rated above 4.5. This suggests a competitive market '\n", " 'for coffee lovers, with opportunities for new entrants to '\n", " 'differentiate themselves through unique offerings or experiences.',\n", " 'quesion': 'ร้านกาแฟใกล้เซ็นทรัลเวิลด์\\n'},\n", " {'answer': 'FINAL ANSWER:\\n'\n", " '\\n'\n", " '### Coffee Shop Insights Near Central World, Pathum Wan, Bangkok\\n'\n", " '\\n'\n", " '#### Location Information\\n'\n", " '- **Location Name**: Pathum Wan, Bangkok\\n'\n", " '- **Address**: Pathum Wan, Bangkok 10330, Thailand\\n'\n", " '- **Google Place ID**: ChIJ9dY-MdSe4jAR8E3iXbIAAQM\\n'\n", " '\\n'\n", " '#### Coffee Shops Nearby\\n'\n", " '1. **Angle Coffee**\\n'\n", " ' - Address: ซอย ชอย โรงพยาบาลรถไฟ Makkasan, Ratchathewi\\n'\n", " ' - Rating: 5.0\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '2. **Olympic Coffee**\\n'\n", " ' - Address: 43/4 Rama VI Rd, Rong Muang, Pathum Wan\\n'\n", " ' - Rating: 4.8\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '3. **Earthy Roaster (Specialty Coffee)**\\n'\n", " ' - Address: 994 Makkasan, Ratchathewi\\n'\n", " ' - Rating: 4.8\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '4. **Treasure Specialty Coffee**\\n'\n", " ' - Address: MINT TOWER Bantadthong Phetchaburi Rd, Subdistrict '\n", " 'Pathum Wan\\n'\n", " ' - Rating: 4.9\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " \"5. **COFFEE cafe' 27**\\n\"\n", " ' - Address: ตลาด รอ1พัน1 Samsen Nai, Phaya Thai\\n'\n", " ' - Rating: 4.8\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '6. **coftail coffee&bar**\\n'\n", " ' - Address: 490/5 Phahonyothin Rd, Samsen Nai, Phaya Thai\\n'\n", " ' - Rating: 4.8\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '7. **Oasis Coffee**\\n'\n", " ' - Address: Rang Nam Alley, Thanon Phaya Thai, Ratchathewi\\n'\n", " ' - Rating: 4.6\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '8. **J-NESIS COFFEE**\\n'\n", " ' - Address: 332 6 Tri Mit Rd, Talat Noi, Samphanthawong\\n'\n", " ' - Rating: 4.9\\n'\n", " ' - Open Now: N/A\\n'\n", " '\\n'\n", " '9. **Livid Coffee Roasters**\\n'\n", " ' - Address: Flo House Khlong Tan, Khlong Toei\\n'\n", " ' - Rating: 4.6\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '10. **The Coffee Academics**\\n'\n", " ' - Address: Velaa Sindhorn Village Langsuan, 87 Soi Langsuan, '\n", " 'Lumphini, Pathum Wan\\n'\n", " ' - Rating: 4.4\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '11. **Baptist Coffee**\\n'\n", " ' - Address: ศูนย์รวมนักศึกษาแบ๊บติสต์ 473 Thanon Si Ayutthaya, '\n", " 'Thung Phaya Thai, Ratchathewi\\n'\n", " ' - Rating: 5.0\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '12. **D Coffee House**\\n'\n", " ' - Address: 445 Rama I Rd, Rong Muang, Pathum Wan\\n'\n", " ' - Rating: 4.9\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '13. **RISE COFFEE - Flagship Store**\\n'\n", " ' - Address: 888 อาคารมหาทุนพลาซ่า ชั้น 1 ยูนิต 1, Phloen Chit '\n", " 'Rd, Lumphini, Pathum Wan\\n'\n", " ' - Rating: 4.8\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '14. **Aribica Specialty Coffee (Sahakorn branch)**\\n'\n", " ' - Address: 4, 1 Soi Ari 1, Phaya Thai\\n'\n", " ' - Rating: 4.6\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '15. **Artis Coffee Bangkok**\\n'\n", " ' - Address: 390, 20 Sukhumvit Soi 18, Khlong Toei\\n'\n", " ' - Rating: 4.4\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '16. **Jiwakiat**\\n'\n", " ' - Address: 41 Na Phra Lan Rd, Phra Borom Maha Ratchawang, '\n", " 'Phra Nakhon\\n'\n", " ' - Rating: 4.8\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '17. **Sweety Coffee**\\n'\n", " ' - Address: 196 Dinso Rd, Sao Chingcha, Khet Phra Nakhon\\n'\n", " ' - Rating: 4.0\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '18. **Thyme Coffee & Bakery**\\n'\n", " ' - Address: 55 5 Sukhumvit 21 Rd, Khlong Tan, Watthana\\n'\n", " ' - Rating: 4.6\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '19. **THE FAV Coffee Bar**\\n'\n", " ' - Address: 454 Pom Prap, Pom Prap Sattru Phai\\n'\n", " ' - Rating: 4.9\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '20. **School Coffee X Warm Batch Roasters**\\n'\n", " ' - Address: PGFH+RPF, Silom, Bang Rak\\n'\n", " ' - Rating: 4.5\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '### Summary\\n'\n", " '- **Number of Competitors**: More than 20 coffee shops found '\n", " 'within a 5 km radius of Central World.\\n'\n", " '- **Community Type**: Urban area with a high density of coffee '\n", " 'shops.\\n'\n", " '- **Population Data**: Not specifically provided, but Pathum Wan '\n", " 'is a bustling district in Bangkok.\\n'\n", " '\\n'\n", " 'This data provides a comprehensive overview of the coffee shop '\n", " 'landscape in the vicinity of Central World, highlighting both '\n", " 'popular options and their ratings. If further analysis or '\n", " 'specific data points are needed, please let me know!',\n", " 'quesion': 'Coffee shop near Central World\\n'},\n", " {'answer': 'FINAL ANSWER\\n'\n", " '\\n'\n", " '### Restaurant Analysis Near Lumpini Center, Lat Phrao\\n'\n", " '\\n'\n", " '#### Location Information\\n'\n", " '- **Lumpini Center Address:** \\n'\n", " ' - 60 127 Soi Lat Phrao 111, Khwaeng Khlong Chan, Khet Bang '\n", " 'Kapi, Krung Thep Maha Nakhon 10240, Thailand\\n'\n", " ' - **Phone:** 02 374 8394\\n'\n", " ' - **Website:** [Lumpini Center](https://www.lpn.co.th/)\\n'\n", " '\\n'\n", " '#### Nearby Restaurants\\n'\n", " '1. **Thai Flavours**\\n'\n", " ' - **Address:** QJCP+JJW, Soi Lat Phrao 111, Khlong Chan, Bang '\n", " 'Kapi District\\n'\n", " ' - **Rating:** 5\\n'\n", " '\\n'\n", " '2. **Xiang**\\n'\n", " ' - **Address:** 3101 Lat Phrao Rd, Khlong Chan, Bang Kapi '\n", " 'District\\n'\n", " ' - **Rating:** 4.8\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " \"3. **Khun Young's Kitchen**\\n\"\n", " ' - **Address:** 67, 16 Lat Phrao Rd, Khlong Chan, Bang Kapi '\n", " 'District\\n'\n", " ' - **Rating:** 4.8\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '4. **Kham Thai - Myanmar Restaurant**\\n'\n", " ' - **Address:** QJ6W+X2J, Ramkhamhaeng Rd, Hua Mak, Bang Kapi '\n", " 'District\\n'\n", " ' - **Rating:** 5\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '5. **107 PaHung Restaurant**\\n'\n", " ' - **Address:** Soi Lat Phrao 107, Khlong Chan, Bang Kapi '\n", " 'District\\n'\n", " ' - **Rating:** 4.4\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '6. **Mellow Steak**\\n'\n", " ' - **Address:** 453 Lat Phrao 107 Alley, Lane 9, Khlong Chan, '\n", " 'Bang Kapi District\\n'\n", " ' - **Rating:** 4.6\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '7. **Food Zone**\\n'\n", " ' - **Address:** QJ9V+C4J, Bangkok, Bang Kapi\\n'\n", " ' - **Rating:** 4.8\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '8. **Lucky Suki**\\n'\n", " ' - **Address:** 3109 Lat Phrao Rd, Khlong Chan, Bang Kapi '\n", " 'District\\n'\n", " ' - **Rating:** 4.2\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '9. **Mo-Mo-Paradise (The Mall Bang Kapi)**\\n'\n", " ' - **Address:** 3522 Lat Phrao Rd, Khlong Chan, Bang Kapi '\n", " 'District\\n'\n", " ' - **Rating:** 4.2\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '10. **Rum Restaurant & Bakery**\\n'\n", " ' - **Address:** 3101 Lat Phrao 115, Khlong Chan, Bang Kapi '\n", " 'District\\n'\n", " ' - **Rating:** 4.5\\n'\n", " ' - **Open Now:** Yes\\n'\n", " '\\n'\n", " '### Summary\\n'\n", " '- **Total Number of Restaurants Found:** More than 20\\n'\n", " '- **Average Rating of Notable Restaurants:** Ranges from 4.2 to '\n", " '5\\n'\n", " '- **Community Type:** Urban area with a mix of residential and '\n", " 'commercial establishments.\\n'\n", " '\\n'\n", " 'This analysis provides insights into the competitive landscape of '\n", " 'restaurants near Lumpini Center, highlighting opportunities for '\n", " 'market engagement and community preferences. If you require '\n", " 'further analysis or specific data points, please let me know!',\n", " 'quesion': 'วิเคราะห์ร้านอาหารแถวลุมพินี เซ็นเตอร์ ลาดพร้าว\\n'},\n", " {'answer': 'FINAL ANSWER:\\n'\n", " '\\n'\n", " '### Bakery Competitor Analysis Near Chatuchak Market\\n'\n", " '\\n'\n", " '#### Competitors Overview\\n'\n", " '- **Total Number of Competitors**: 15 bakeries identified in the '\n", " 'vicinity of Chatuchak Market.\\n'\n", " '- **Key Competitors**:\\n'\n", " ' 1. **Sanan Bakery**\\n'\n", " ' - Rating: 4.4\\n'\n", " ' - Address: 101 Phahonyothin Rd, Lat Yao, Chatuchak\\n'\n", " ' - Open Now: Yes\\n'\n", " ' 2. **The Croissant Corner**\\n'\n", " ' - Rating: 4.7\\n'\n", " ' - Address: Phahon Yothin 15 Alley, Samsen Nai, Phaya Thai, '\n", " 'Chatuchak\\n'\n", " ' - Open Now: Yes\\n'\n", " ' 3. **Baked With Hearts**\\n'\n", " ' - Rating: 4.6\\n'\n", " ' - Address: 485 Phahon Yothin 18/1 Alley, Lane 1, Chom Phon, '\n", " 'Chatuchak\\n'\n", " ' - Open Now: Yes\\n'\n", " ' 4. **JJ Mall One More Bite Japanese Bakery**\\n'\n", " ' - Rating: 4.9\\n'\n", " ' - Address: JJ Mall, 2nd Floor, 588 Kamphaeng Phet 2 Rd, '\n", " 'Chatuchak\\n'\n", " ' - Open Now: Yes\\n'\n", " ' 5. **Triple D Bakery @ Chatuchak Market**\\n'\n", " ' - Rating: 4.9\\n'\n", " ' - Address: 47 Section 4, Khwaeng Chatuchak, Khet Chatuchak\\n'\n", " ' - Open Now: No\\n'\n", " \" 6. **Bellinee's Bake & Brew**\\n\"\n", " ' - Rating: 3.9\\n'\n", " ' - Address: Chatuchak Weekend Market, Khwaeng Chatuchak, Khet '\n", " 'Chatuchak\\n'\n", " ' - Open Now: Yes\\n'\n", " ' 7. **Miss Muay Bakery**\\n'\n", " ' - Rating: 3.8\\n'\n", " ' - Address: ตลาด อตก, Kamphaeng Phet Rd, Chatuchak\\n'\n", " ' - Open Now: Yes\\n'\n", " ' 8. **Mom’s FF Cafe & Bakery**\\n'\n", " ' - Rating: 5.0\\n'\n", " ' - Address: 356-357 หมู่บ้าน โครงการ30 จตุจักร, Chatuchak\\n'\n", " ' - Open Now: N/A\\n'\n", " ' 9. **Wipada Herb Coffee and Bakery**\\n'\n", " ' - Rating: 0 (No reviews available)\\n'\n", " ' - Address: 2 Kamphaeng Phet Rd, Chatuchak\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '#### Location Data\\n'\n", " '- **Location Name**: Chatuchak Market\\n'\n", " '- **Address**: 587, 10 Kamphaeng Phet 2 Rd, Khwaeng Chatuchak, '\n", " 'Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\\n'\n", " '- **Website**: [Chatuchak '\n", " 'Market](https://www.chatuchakmarket.org/)\\n'\n", " '\\n'\n", " '#### Demographic and Economic Insights\\n'\n", " '- **Population**: The specific population data near Chatuchak '\n", " 'Market was not retrieved, but it is known to be a densely '\n", " 'populated area in Bangkok.\\n'\n", " '- **Community Type**: The area is a bustling market community, '\n", " 'known for its weekend market that attracts both locals and '\n", " 'tourists.\\n'\n", " '- **Household Expenditures**: Specific data on household '\n", " 'expenditures was not retrieved, but it can be assumed that '\n", " 'expenditures are higher in market areas due to the variety of '\n", " 'goods and services available.\\n'\n", " '\\n'\n", " '### Analytical Summary\\n'\n", " 'The bakery market near Chatuchak Market is competitive, with '\n", " 'several well-rated establishments. The presence of high-rated '\n", " 'bakeries like JJ Mall One More Bite and Triple D Bakery indicates '\n", " 'a strong demand for quality baked goods. The area is '\n", " 'characterized by a vibrant market atmosphere, attracting a '\n", " 'diverse customer base, which presents opportunities for new '\n", " 'entrants to capture market share. Understanding customer '\n", " 'preferences and leveraging the bustling market environment will '\n", " 'be key for any bakery looking to succeed in this area.',\n", " 'quesion': 'Analyze competitors of a bakery near Chatuchak Market\\n'},\n", " {'answer': 'I have gathered information about restaurants near Siam Paragon. '\n", " 'Here are some options:\\n'\n", " '\\n'\n", " '1. **Jasmine Siam Kitchen (จัสมิน สยาม คิทเช่น)**\\n'\n", " ' - Address: 497, 14-15 Phetchaburi Rd, Thung Phaya Thai, '\n", " 'Ratchathewi\\n'\n", " ' - Rating: 4.7\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '2. **I Food Bar & Restaurant**\\n'\n", " ' - Address: No.49/26, Soi Petchburi 15, Phetchaburi Rd, '\n", " 'Subdistrict, Ratchathewi\\n'\n", " ' - Rating: 4.8\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '3. **Family Thai Restaurant**\\n'\n", " ' - Address: Venezia Residence, Thanon Phetchaburi, Ratchathewi\\n'\n", " ' - Rating: 2.0\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '4. **Angkor Restaurant**\\n'\n", " ' - Address: 42 Phetchaburi Rd, Thanon Phaya Thai, Ratchathewi\\n'\n", " ' - Rating: 4.7\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '5. **Prego Bangkok**\\n'\n", " ' - Address: 847 Phetchaburi Rd, Khwaeng Thanon Phaya Thai, '\n", " 'Ratchathewi\\n'\n", " ' - Rating: 4.4\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '6. **Tonoak-Restaurant (ร้านต้นโอ๊ก)**\\n'\n", " ' - Address: 432/5 2nd floor, Parking lot side, Pathumwan\\n'\n", " ' - Rating: 4.5\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " \"7. **Bangkok'78**\\n\"\n", " ' - Address: 68 Soi Langsuan, Lumphini, Pathum Wan\\n'\n", " ' - Rating: 4.3\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '8. **Arun Thai Cuisine by SEE FAH**\\n'\n", " ' - Address: ชั้น L Grande Centre Point Ratchadamri 153/2 '\n", " 'Mahatlek Luang 1 Alley, Lumphini, Pathum Wan\\n'\n", " ' - Rating: 4.4\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '9. **Anjappar Chettinad Restaurant Indra Square**\\n'\n", " ' - Address: 120, 23 Ratchrarop Soi 3, Khwaeng Thanon Phaya '\n", " 'Thai, Ratchathewi\\n'\n", " ' - Rating: 4.5\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " '10. **The SQUARE Restaurant**\\n'\n", " ' - Address: 220 Petchaburi Road, Ratchathewi\\n'\n", " ' - Rating: 4.4\\n'\n", " ' - Open Now: Yes\\n'\n", " '\\n'\n", " 'These restaurants are within a 1 km radius of Siam Paragon and '\n", " 'have varying ratings. If you need more specific information or '\n", " 'further analysis, feel free to ask! \\n'\n", " '\\n'\n", " 'FINAL ANSWER',\n", " 'quesion': 'วิเคราะห์การเปิดร้านอาหารใกล้สยามพารากอน\\n'},\n", " {'answer': 'FINAL ANSWER\\n'\n", " '\\n'\n", " '### Competitor Analysis for Bakeries Near Chatuchak Market\\n'\n", " '\\n'\n", " '#### Location Information\\n'\n", " '- **Market Name**: Chatuchak Weekend Market\\n'\n", " '- **Address**: 587, 10 Kamphaeng Phet 2 Rd, Khwaeng Chatuchak, '\n", " 'Khet Chatuchak, Krung Thep Maha Nakhon 10900, Thailand\\n'\n", " '- **Website**: [Chatuchak '\n", " 'Market](https://www.chatuchakmarket.org/)\\n'\n", " '\\n'\n", " '#### Competitors (Bakeries)\\n'\n", " '1. **Sanan Bakery**\\n'\n", " ' - **Address**: 101 Phahonyothin Rd, Lat Yao, Chatuchak\\n'\n", " ' - **Rating**: 4.4\\n'\n", " ' - **Open Now**: Yes\\n'\n", " '\\n'\n", " '2. **The Croissant Corner**\\n'\n", " ' - **Address**: Phahon Yothin 15 Alley, Samsen Nai, Phaya Thai, '\n", " 'Chatuchak\\n'\n", " ' - **Rating**: 4.7\\n'\n", " ' - **Open Now**: Yes\\n'\n", " '\\n'\n", " '3. **Baked With Hearts**\\n'\n", " ' - **Address**: 485 Phahon Yothin 18/1 Alley, Lane 1, Chom '\n", " 'Phon, Chatuchak\\n'\n", " ' - **Rating**: 4.6\\n'\n", " ' - **Open Now**: Yes\\n'\n", " '\\n'\n", " '4. **JJ Mall One More Bite Japanese Bakery**\\n'\n", " ' - **Address**: 588 Kamphaeng Phet 2 Rd, Chatuchak\\n'\n", " ' - **Rating**: 4.9\\n'\n", " ' - **Open Now**: Yes\\n'\n", " '\\n'\n", " '5. **Triple D Bakery @ Chatuchak Market**\\n'\n", " ' - **Address**: 47 Section 4, Khwaeng Chatuchak, Khet '\n", " 'Chatuchak\\n'\n", " ' - **Rating**: 4.9\\n'\n", " ' - **Open Now**: No\\n'\n", " '\\n'\n", " \"6. **Bellinee's Bake & Brew**\\n\"\n", " ' - **Address**: Chatuchak Weekend Market, Khwaeng Chatuchak, '\n", " 'Khet Chatuchak\\n'\n", " ' - **Rating**: 3.9\\n'\n", " ' - **Open Now**: Yes\\n'\n", " '\\n'\n", " '7. **Miss Muay Bakery**\\n'\n", " ' - **Address**: Kamphaeng Phet Rd, Chatuchak\\n'\n", " ' - **Rating**: 3.8\\n'\n", " ' - **Open Now**: Yes\\n'\n", " '\\n'\n", " '8. **3meebakery**\\n'\n", " ' - **Address**: 4 Kamphaeng Phet 48/3 Chatuchak\\n'\n", " ' - **Rating**: 5\\n'\n", " ' - **Open Now**: No\\n'\n", " '\\n'\n", " '9. **Mom’s FF Cafe & Bakery**\\n'\n", " ' - **Address**: 356-357 Kamphaeng Phet Rd, Chatuchak\\n'\n", " ' - **Rating**: 5\\n'\n", " ' - **Open Now**: N/A\\n'\n", " '\\n'\n", " '10. **Makarong**\\n'\n", " ' - **Address**: 4 Kamphaeng Phet 49/2 Chatuchak\\n'\n", " ' - **Rating**: 4.9\\n'\n", " ' - **Open Now**: No\\n'\n", " '\\n'\n", " '### Summary\\n'\n", " '- **Total Competitors**: 15 bakeries found within a 500-meter '\n", " 'radius of Chatuchak Market.\\n'\n", " '- **Ratings**: Competitors have ratings ranging from 3.0 to 5.0, '\n", " 'indicating a competitive market with several high-rated options.\\n'\n", " '\\n'\n", " 'This analysis provides insights into the competitive landscape '\n", " 'for bakeries near Chatuchak Market, highlighting potential '\n", " 'opportunities and challenges for new entrants in this market. If '\n", " 'you need further details or specific analysis on any of these '\n", " 'competitors, please let me know!',\n", " 'quesion': 'วิเคราะห์คู่แข่งของร้านเบเกอรี่ใกล้ตลาดจตุจักร\\n'}]\n" ] } ], "source": [ "pprint.pprint(results)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.9" } }, "nbformat": 4, "nbformat_minor": 2 }