ChatGPT

Playing With AI

Playing with AI and Learning to Keep It Simple, Silly

Yesterday I was playing with AI in the evening and I asked it to help me write a function that would detect whether an array item was a photo or a video. I told the AI, this is a photo array item, and this is a video array item. I want the photo array item to display the img src code and for the video item to be displayed with video src code. At first it failed to detect anything and gave me an error message. I decided to highlight the photo array item snippet and the video array snippet. It didn’t come back with an error but it did not display any img or video code. In the end I decided to say “here’s the img src tag. I want you to detect whether the file is mp4 or jpg. If it’s mp4 add the video player, and if it’s a photo load the image. I went from asking it to read the array to determine what to do, to “check the filetype and load the appropriate src type. That worked, and required very little code. Don’t Over-Engineer With AI The moral I came away with, after the trial and error I went through last night is that whilst AI is great at reading and understanding code, and giving us answers it can sometimes fail. I was making something far more complicated than it had to be and chatGPT got confused, as would a human trying to complicate something simple. PHP has a lot of functionality built into it. It has tools that allow it to read exif information, file types and more, and if you know about these tools, then you can come up with elegant solutions, rather than complicated ones.

My AI Teacher

Today I want to discuss something different. I want to discuss using AI as a teacher, rather than as a tool to replace us. For a few days I have been playing with the Instagram json file that I got when I requested my archive. With this json file I thought about things to do, and in so doing asked chatGPT for help, and it provided answers.

Adapting the Questions

From Instagram Archive to PHP Website

Three years ago I stopped using Instagram because I was tired of seeing influencers and adverts rather than by the people I chose to follow. The cherry on the cake, that pushed me to dump Instagram is when they changed the location of the Post button from the left corner to the top right and changed the default from photo to story.

For ten years or more I used instagram and shared photos, and I enjoyed capturing at least an image or two every single day. It’s because Instagram was bought by Facebook that I fell out of love with the site and decided not to use it anymore. The community had been lost, so what good was there in sticking around? 

Prompt Engineering and chatGPT

If you follow chatGPT and AI courses you will often come across the term “Prompt Engineering”. Prompt Engineering is the art and science of writing instructions so that AI understands what you would like to do. With time and practice you can be as specific as you like. You can fine tune your request until you get precisely what you are looking for. 

**The Limit of chatGPT. **

“As an AI language model, my responses are generated based on a mixture of licensed data, data created by human trainers, and publicly available data. These sources may contain publicly available information up until my knowledge cutoff in September 2021. It’s important to note that I do not have direct knowledge of specific data gathering practices or the individual sources used to train me.”

chatGPT, GPT3 and Reading Time

Time for a new discussion to take place. Reading time. Do you read through articles or do you skim them. Is reading the headline enough or do you read every word of the article? I ask because in the age of chatGPT and GPT3 I would ask the same question as I asked about social media.

If you want to discuss ROI for businesses and PR firms or advertisers then you need to discuss ROI for users too. Facebook, Instagram and Twitter wanted to control the timeline by using a “home” feed. The Home feed is an algorithm driven feed that shows you popular content, rather than content by friends, that you and they would converse about. The result is a lonely social media experience. The ROI goes down, That’s why I took a break from Twitter to play with Mastodon and revive my blogging habit.