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. 😉