Saturday, 1 April 2023

Planning a road trip with ChatGPT - Cape Town to Johannesburg

I'm a big fan of taking long road trips with the family. Usually, it takes me a good few days of planning an preparing the trip, to the point of creating a detailed plan on a Trello, after using various mapping tools like Google Maps.

So I asked ChatGPT to help me plan a road trip, from Cape Town to Johannesburg to complete in 5 days, with no more than 4 hours driving per leg, giving me the opportunity of both a coastal and country route. I asked it a few times to optimise the results to minimise driving time. I also asked it to include fuel costs, recommend suitable accommodation, find Halal places to eat, along with Masjids, made it aware that I only fuel at Engen fuel stations, asked if SANParks are nearby, etc...and finally summarise the trip in a narrative that I can sell to my wife and kids.

At first, the interaction started off quite well. But it got messed up and its knickers in a twist when providing results in table format. It kept forgetting context from previous interactions and bombed out when generating the data tables. I'm using the plus version, so I'm a paying member that hopefully shouldn't be experiencing any throttling.

Anyway, the point of this experiment is to showcase the really powerful assistant, as a travel planner. It's really cool. So whilst I'm going to use this capability to definitely plan my next road trip, I can't help but wonder about the threat this technology poses to people who earn a living at planning trips? At first glance, it looks like a threat and risk - but actually - this could be a boon to their business. The tool can cut research time by orders of magnitudes, potentially closing more leads, driving more customers, etc. The possibilities for travel tourists specialising in road trips or cycling holidays, are endless. Imagine cutting a new trip in a matter of a couple hours, along with a summary of the marketing plug, a map of the journey, along with sample photos of the attractions. Partnerships with AirBnb and other hoteliers can derive much benefit through data exchanges, along with other amenity businesses along the way. A travel planning website can drive much more advertising to their sites, promoting local attractions, etc. Content writers can produce copies is shorter timeframes... I'm getting carried away!!!

So here's the route:



And here's the marketing pitch generated for me to sell to my family:

"Get ready for the road trip of a lifetime as we embark on a five-day journey from Cape Town to Johannesburg. We'll be taking in the best of South Africa, from stunning coastal landscapes to the lush countryside, and exploring some of the country's best national parks and wildlife reserves along the way.

We'll start our adventure by heading to Hermanus, where we can watch whales and see African penguins at the Stony Point Nature Reserve. From there, we'll drive to Knysna and enjoy some thrilling bungee jumping at the Tsitsikamma National Park.

Next up, we'll visit the Addo Elephant National Park, where we can get up close and personal with majestic elephants, and stay at a comfortable lodge with halal meals available. After that, we'll take a 4x4 route in the Mountain Zebra National Park, which offers breathtaking scenery and wildlife viewing opportunities.

We'll be staying in halal-friendly accommodations and enjoying delicious halal food throughout the trip. We'll also be visiting masjids along the way, and fueling up at Engen petrol stations. The trip will end in Johannesburg after a long but scenic drive through the countryside.

This road trip is perfect for families who love adventure and want to experience the best of South Africa in just five days. So pack your bags, grab your camera, and get ready for an unforgettable journey!"

You can also refer to the detailed table provided earlier for more information about each leg of the trip, including the attractions, recommended accommodations, halal food locations, masjids available, and more. Additionally, you can use the Google Maps link provided to show your family the route and highlight specific landmarks along the way.

And here's my full conversation with my ChatGPT as a road trip planner assistant:

ChatGPT - Whitepaper generation, can it write like a CTO?

In December 2019, after a successful Rugby world cup (despite experiencing technical glitches, I felt my team did well to reach the stage we did, with evolving the technical platform only two years into it's turnaround journey) - I realised that the members of the Board and ExCo, did not fully appreciate the world of online video streaming because they came from the traditional world of satellite broadcast world, where technology stack was largely under their control - and reliability / availability was generally accepted as always on. So, from their perspective, to expect a system to be either "1" or "0" wasn't unreasonable, albeit ignorant of the complexities, they couldn't be blamed for not having that context. So it was up to me as CTO to get them to understand, or at least, help educate them on the subtleties driving the differences, that are actually quite big and therefore a certain level of perspective is needed. In the online world, when a platform fails due to high load, usually this is a good signal that the platform is gaining much traction, and engineering teams can use this data to learn and only get better. 

So I wrote this whitepaper here.

And today, I asked ChatGPT (3.5) to write something similar - and here it was it produced.

Verdict: My paper is much better. Clearly my blog isn't part of ChatGPT's data set yet.  The machine isn't going to replace my role just yet...but at least the machine can help as my co-author!

You are a CTO responsible for building an OTT video streaming platform. You are having trouble communicating with executives who come from traditional PayTV satellite broadcast and set top box world. Write a white paper than shows the different challenges posed in the end to end technology stack for online video streaming as compared to traditional satellite set top box environment. Cite references used. Focus on what makes OTT different (and hard).

The rest below shows what ChatGPT produced:

Friday, 31 March 2023

ChatGPT - a little serious note

 Whilst I've been having some fun doing my research, I think will only be comfortable trusting a machine for other insights outside of the coding / business / tech domain, when I have open access to all its data sources and citations that showed the formulation of the response. I want to know what the machine is trained on, so that I can make my own judgements on the responses. AI companies must openly public these sorts, publish a bias index, something like a cultural sentiment index, and show whether sandboxing different philosophies / social frameworks and constructs. Without this access, I am okay to limit my interactions to well-bounded, technical and professional contexts to help me be more productive, do research, as an another tool to make humans optimise, etc. Beyond that, I will not entirely trust the machine  enough yet to have deep, meaningful discussions about life, world politics and human civilisation challenges because of biases that haven't been independently tested for, etc. I believe the entire test-suite for validating the safety and quality of the AI must be released in the open, for independent scrutiny. If tech companies are truly serious about uplifting human civilisation with general AIs, then stop with the profiteering and start with building humanity on open transparency, level the playing fields. This is not a space race to outcompete one another. This not the next tech to make yet another tech geek nerd the richest person in the world! This is not about making money - I'm talking about the broad uses of the AI. Sure, you can make some money for constrained topics - but don't go releasing AI into the wild that can cause more serious harm than good.

Given this technology is mostly born or heavily marketed from capitalist America (my bias: winner-takes-all, survival of the fittest, competitive, good guy vs bad guys, profit before people, we must always strive to be the world's dominant region - unfortunately overshadows what made American ideals great, the American dream, a place I always wished to go and work at) roots, makes me very nervous about the potential misuse, misunderstanding of the machine. I fear the future of children growing up with this tech, like what constructs they would learn, potentially throwing thousands years of human traditions, culture and beliefs. As such, I'm leaning more and more on controlling these releases, and perhaps escalating regulatory reviews to inspect deeply...we don't throw babies into shark-infested waters the first day they're borne, so why expose such a powerful, misleading tech to the whole world, children and adults alike?? We don't give guns to children, do we? We have checks and balances in place for all kinds of risky tech? Take nuclear tech for example? Honestly, this topic is so broad and wide, concerning...it's a pity that Lex didn't address these topics directly with Sam in their interesting conversation here

Exploring ChatGPT will almost become a full-time activity outside of my work hours - so many unknowns, so much of things worth exploring...but my priority would be humans first, machine last. If the pace of progress needs to be slowed down until we understand more, so be it. There should be a global moratorium on this tech, a world governing framework like NATO/UN/etc. to regulate. 

So my view: Proceed with extreme caution, be bold to explore the limits of the machine for a well-bounded context limited to science / computing / business / historical facts - but nothing more...until there's a way to characterise these AIs by archetypes we can identify with.

I have to say, I am leaning heavily on the side of regulation - putting on the brakes!!

IMHO that is...

Time to start my day job!! Plugging into the matrix now...

ChatGPT fun - oh man, this is getting addictive!

[my daugher is waiting for her school run....and I'm still playing with ChatGPT!]

do you remember the norton spinning control animation when running from dos days?

Yes, I'm familiar with the Norton spinning control animation. It was a popular animation that Norton Utilities, a suite of disk and system utilities for MS-DOS, displayed while it was running disk optimization or defragmentation. The animation featured a spinning disk with a check mark on it, and the disk would spin faster and faster as the optimization progressed.

show it to me

can you create the code I could run in the browser for this classic spinning control?

that's close but not exactly like I remember it. The sequence of rotating "-\-/" is missing

sorry, you lost context again. Now I only get is an empty square?

<!DOCTYPE html> <html> <head> <style> #spinner { width: 30px; height: 30px; border: 1px solid black; font-size: 20px; text-align: center; line-height: 30px; } </style> </head> <body> <div id="spinner"></div> <script> var spinner = document.getElementById("spinner"); var sequence = "-\\|/"; var index = 0; setInterval(function() { spinner.innerHTML = sequence.charAt(index); index = (index + 1) % sequence.length; }, 100); </script> </body> </html>

yes, that's very close

I'm glad it's close! If you want to adjust the size or speed of the spinning animation, you can modify the SIZE and SPEED constants at the top of the JavaScript code.


Friday fun with ChatGPT - A series of Hello World in less than 40 minutes

I'm still early in my journey of experimenting with ChatGPT - and every time I interact with it, the more I'm blown away.  This "simple" animation is the result of spending just under 40 minutes, exploring the code generation powers of this machine. Whilst I did not reach the end result I was looking for, the machine gets pretty damn close, close enough for a developer to take the code and tweak it...

The implications of this tool are just mind boggling. 

Here's a transcript of my interactions:

Alright, do you have the ability to write code?
write me a simple hello world that I can run from a browser
can you repeat that using javascript?
can you work on simplifying using the least amount of html and more javascript?
can you add an animation so that the text "hello world" moves from left to right like a ticker stream?
can you enhance the animation so that the ticker moves clockwise around a square block contained to a width of 500 pixels and height of 500 pixels?
Wow, I am amazed. Thank you for giving me a daily dose of your awesome utility!
let's take it next level
add a second hello world to the animation, but this time the second text should be revolving anticlockwise, with the two revolutions happening as concentric circles
okay that is close enough. Add another hello world text in blue, that moves vertically up and down, centered to the two circles
unbelievable! Okay, time for next level
Add an animation, starting at the bottom left corner of the square, of a rocket emoji with the text "ChatGPT rocks!", that moves around the square, completing one revolution anti-clockwise and then another revolution clockwise, all around the edges of the square border. The text should be bold.
sorry, you got that wrong. You've lost all the previous animations of hello world texts, please try again. Also make the "ChatGPT rocks!" text smaller.
still wrong. get me back to the code that showed the previous animations before the rocket ask
okay, it seems you're not good at remembering context. You've lost all the previous context that created the square block and showed the circular and vertical animations.
nope still wrong
I need to add one more animation to the code, which is the rocket ship. Do you remember my ask? Please repeat to me so I can examine if you've understood my request correctly.
Yes, you asked to add an animation of a rocket emoji with the text "ChatGPT rocks!", that moves around the square, completing one revolution anti-clockwise and then another revolution clockwise, all around the edges of the square border. The text should be smaller and bold.
Yes, do you want to give it one more try? Please don't lose the previous code. Build upon it.
ok, that's close enough for today. I need to spend more time with you, clearly.
Hello, World!
Hello, World!
Hello, World!
🚀 ChatGPT rocks!