🤖Prompt Engineering: To Streamline Data Availability for Processing 😎(by @ace108)
Introduction
🎶Meanwhile, some music for you to enjoy as you read. This piece is part of Vivaldi’s The Four Seasons, particularly the first of the 4 violin concertos, called Spring.
🎶让大家继续读的时候,欣赏一点音乐。这件作品是维瓦尔第的“四季”的一部分 - 4小提琴协奏曲中的第一首,名为“春天”。Source | 来源: https://musopen.org/
https://soundcloud.com/alan-chang-563971986/four-concerti-grossi-4-vivaldi-op8-i-la-primavera-allegro-largo-allegro Source | 来源: https://musopen.org/music/2213/antonio-vivaldi/the-four-seasons/
In our data-driven world today, quick and easy access to data for analysis is essential. However, challenges arise when data is not available promptly. In this article, I explore the use of AI models like ChatGPT, Bing Chat, and Bard to develop Python programs that tackle this issue. The goal is to create a segment of a Python program that checks for missing data files and enables manual report execution.
Background
Let's assume, we have monthly reports that generate data files for further processing. These reports are scheduled to run automatically. However, if the expected data files are absent from the designated folder, we need manual intervention to run reports to get the data.
Here is the prompt I started with.
Trying the AI Models
First, I went to ChatGPT
It identified a missing '' in a variable for a folder name.It effectively handled the file creation date requirement.
However, it did not understand the humor in the last part.
Next to Bing Chat
It also caught the missing '' in a variable for a folder name.However, it disregarded the creation date requirement entirely.
It show that it understood the desired functionality in the last part.
Then to Bard
It took the variable for the folder name with missing '' so that's not going to work.It didn't seem to understand what I was thinking for the last part.Additionally, it overlooked the file creation date requirement.
Program Comparison and Recommendations
So, next, I sort of go into a tree of thought mode by using three different "programmers" rather than as one programmer to come up with 3 solutions. Next, I decided to give the "programmers", the 3 programs and ask them to review and tell me the pros and cons of each and which of them is better. Unfortunately, I cannot run the prompt with the 3 programs to Bing Chat because of the 2,000 characters limitations.
I got through to ChatGPT using a new chat so it will not have any memory of the program it created before.
It thinks program 1 is the best. That's the one by ChatGPT.
I asked it to create a better program and it created one that sort of follow the suggestion of improvement it gave.
It defined a function and called the function which is nice.
Finally, it gave an explanation of the code.
Next, to Bard to review the 3 programs and also using a new chat so it will not have any memory of the program it created before.
It thinks the Bing Chat's program 2 is the better one.
However, when asked to rewrite a better program, it went totally off and got lost.
Conclusion
In conclusion, I was able to use AI models like ChatGPT, Bing Chat, and Bard to create part of a Python program that can be used to check for missing data files and prompt user to run reports manually. The programs created were not perfect, but it is a good starting point.
I believe that the collaboration between AI and human programmers is essential for the development of data processing tools. AI models can generate code, but they cannot replace human programmers. Prompt engineering to AI models to create program is not a silver bullet. We saw different AI models have their own strengths and weaknesses. Therefore, there is still a need for collaboration between AI and human programmers to achieve optimal results.
请看我其他帖:![]()
Leave 🤖Prompt Engineering: To Streamline Data Availability for Processing 😎(by @ace108) to:
Read more #ai posts
Best Posts From ace108
We have not curated any of ace108's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From ace108
- 📷Pickleball Friendly at Warren Golf & Country Club+Video + Video | 华伦高尔夫乡村俱乐部的匹克球友谊赛+视频😎+ 视频😎(by @ace108)
- 📷#BeautifulSunday Breakfast while watching World Cup match at SAFRA Toa Payoh + Video | + 视频😎(by @ace108)
- 📷Volunteer at Safer SG Road Show before pickleball+ Video | 在打匹克球之前,去参加了“Safer SG”路演活动做义工。+ 视频😎(by @ace108)
- 📷Checking out new food court after playing pickleball + Video | 打完匹克球后去新开的食阁+ 视频😎(by @ace108)
- 📷Washed out pickleball games to watching world cup match| 打匹克球泡汤,转战世界杯😎(by @ace108)
- 📷"Raining" in the supermarket+ Video | 超市里“下雨”了+ 视频😎(by @ace108)
- 📷Hokkien Mee at Choa Chu Kang+ Video | 蔡厝港吃福建面+ 视频😎(by @ace108)
- 📷Washed out for one pickleball session | 打了一场匹克球,结果倾盆大雨😎(by @ace108)
- 📷Adidas end of season sale+ Video | 阿迪达斯季末促销+ 视频😎(by @ace108)
- 📷#WednesdayWalk Walking around the market| 在菜市附近逛逛😎(by @ace108)
- 📷BeautifulSunday Late lunch at Feng Food+ Video | 在丰富吃午饭+ 视频😎(by @ace108)
- 📷Watching world cup match after playing pickleball+ Video | 打完匹克球后去看世界杯比赛+ 视频😎(by @ace108)"
- 📷Watching World Cup match at SAFRA Toa Payoh + Video | 在SAFRA大巴窑俱乐部观看世界杯比赛+ 视频😎(by @ace108)
- 📷#BeautifulSunday Watching World Cup match at SRC+ Video | 在新加坡康乐俱乐部看世界杯比赛+ 视频😎(by @ace108)
- 📷Watching World Cup match outside for first time this season + Video | 本赛季第一次在外观看世界杯赛+视频😎(by @ace108)
- 📷Ah Hak Bak Kut Teh + Video | 阿哈肉骨茶+ 视频😎(by @ace108)
- 📷Sesame Street Art at Marina Square+ Video | 滨海广场的芝麻街 + 视频😎(by @ace108)
- 📷Pickleball at Love All+ Video | 在Love All打匹克球+ 视频😎(by @ace108)
- 📷#BeautifulSunday Beautiful Sunday Pao Fan Dinner+ Video | 美丽星期天吃泡饭晚餐+ 视频😎(by @ace108)
- 📷A busy Saturday + Video | 忙碌星期六+ 视频😎(by @ace108)