(A)Imitate me!

(A)Imitate me!
Use #AI to create #AI

Last week I had the opportunity to learn from students in engaging and critical discussions around #AI and #Leadership.

One thing I said in that discussion is that I don't use #AI to write posts and articles because I do not like the tone of what ChatGPT produces.

On the weekend, I asked myself if I could not change that. Could I teach ChatGPT to write more like me?

Obviously I'm saying "more" because like everybody who writes text or takes pictures, I think I'm unique. On the other hand I know that..I might only be average after all.

Get training data

To get training data I downloaded all my posts from LinkedIn. Kudos to LinkedIn, that works very well - go to the privacy dashboard and download your content, here's the link if you want to do the same.

What you get is an archive with one file per article. Because I wanted to upload everything in one go (I wrote so many articles that manually uploading them would have been a pain) I asked ChatGPT to create me a script. The script was supposed to take the content out of the html files and put it all in one JSON file.

Create a file to train GPT

ChatGPT suggested to use JSONL, which I did not know before.

I used python and jupyter lab to process the files. It takes some rudimentary development skills to copy, paste and adapt the file paths when you let ChatGPT create the python code to extract the text from the html files and put it all into one jsonl file. I'm sure you could ask ChatGPT to create a Powershell script, too - but I like python better (almost as good as PERL ;)).

Create your own GPT

OpenAI allows you to create your own GPTs - so I created a "MyLinkedIn" GPT model and explained to it that it's supposed to write like me. I uploaded my jsonl file and the model went off to train itself on my content.

The result? Not too bad, I'd say? Some words I would not use, but then..imagine it with a french accent and everything is fine!