Open Thinkering

Menu

Tag: plugin

Exporting blog posts to JSON for easier use with LLMs such as ChatGPT

I’m currently working on the End of Module Assessment (EMA) for my MSc in Systems Thinking which involves pulling together a lot of learning over the past few months. I’ve captured a lot of it here, in this category of my blog.

What I want to do is to query a Large Language Model (LLM) such as GPT-4. However, referring to external URLs in ChatGPT is not always straightforward, and copy/pasting each post individually is tedious.

Adam Procter gave me the idea of exporting the posts to a file format called JSON, and then uploading that into GPT-4 for ease of referencing. So, given I’m not a programmer, I enlisted the help of ChatGPT to create a very small and simple WordPress plugin.

The above video shows how it works, but after activating the plugin, you can export all posts, or just those in a particular category. The downloaded JSON file can be used anywhere, with LLMs online or offline.

You can download v0.2 of the plugin here.

I’ve already found it useful to help pull in ideas that I wrote about a few months ago that I forgot might be relevant to a particular question I’m answering as part of my EMA. If it’s useful to you in its current form, then great! Just don’t bug me for updates. 😉

A quick way to add a ‘sparkline’ to your blog.

See that little graph thing at the bottom of this blog? It’s called a sparkline and shows the number of visitor over the last month. Here’s how to add one to your own blog, courtesy of Google Analytics and a WordPress plugin!

The only slightly tricky bit is replacing:

http://www.google.com/xxxxxxxxxx

with

http://chart.apis.google.com/xxxxxxxxxx

It shows you how to do it here, but it over-complicates things and is slightly out-of-date.

If you want to brush up on your HTML, you could do worse than this guide! 😀

If I wrote a book, would you buy it?

I’ve been using the excellent What Would Seth Godin Do? plugin for WordPress (which powers this blog) for a while now. It’s a great way to get a message across to readers, differentiated for new and return visitors. New visitors to this blog get a message giving them information on how to subscribe and/or get in contact with me.

Return visitors, on the other hand, get a different message. Recently, I’ve been asking for feedback on the question posed in the title of this post, namely: If I wrote a book, would you buy it? The answers are in the above graph. Interestingly, no-one responded that the price was an issue, nor did anyone state that they would buy anything that I wrote.

Good. That’s as it should be. 🙂

There’s enough people, I reckon, interested in buying something that I write that’s education-related for it to be a worthwhile proposition. I’ve got an interesting publishing model and pricing structure in mind. Subscribe so you don’t miss a post – I’ll be revealing more soon!

PS For those interested in what those ‘other’ answers were, they mainly wanted to know more about the subject before they would decide either way!

css.php