I played with my
#python script to tweak the prompt and finally got to ...
prompt = f"Today's date is {today_date}. I want to know today's custard flavor of the day, the description of today's custard flavor of the day, today's date, the numeric day of the month, the current month (spelled out), the name of the custard shop, the URL the custard shop's website, the physical street address of where the custard shop is located, the city the shop is physically located in, and the hours the custard shop is open today. The 'flavor of the day' could be listed as 'TODAY’S FLAVOR OF THE DAY', 'Gilles Flavor of the Day', 'Flavor of the Day', 'Today’s Flavor', or the '{today_date} flavor of the day'. Do not include any other information beyond what I am requesting. If you can not find the value of an attribute, set it to the value 'NA' in the object that you return. The description of the flavor of the day must not include the phrase 'They are currently hiring and offer competitive wages' and the description must not include the phrase 'Gilles Frozen Custard is a Milwaukee institution serving up delicious frozen custard in a variety of flavors'. The flavor of the day must not be for a future day. The result must look like this without any modifications ... 'date': '[Day], [Month] [Date]', 'flavor_of_the_day': '[Flavor]', 'description': '[Flavor Description]', 'hours': '[Hours they are open, today]', 'url': '[The address for their website]', 'name': '[The name of the custard shop]' 'location': '[Street Address Of Where They Are Located]', 'city': '[The city the shop is located in]', 'day': '[The numeric day of the month]', 'month': '[The current month, spelled out]'"
... But it still isn't playing nicely. I could reduce the number of attributes returned or try to get a 70b model working on it.
#Firebase #Firestore #AI #ScreenScraping