This morning I decided to try giving OpenAi’s ChatGPT Plus Code Interpreter plugin a little test. This is a fairly unsophisticated use case, but in my experience, that’s been the better way to start learning about the limitations of the NLMs I’ve been experimenting with over the past few months.

I asked it to “output the data structure of a JSON file in Mermaid so that I can visualize it”. While some tools already do this (or better), I thought it would be interesting to see how it approached the task.

One thing I noticed immediately is the little dropdown that says Show work

If you click on that, it opens up a panel to show you the code it’s writing to fulfill your request. Neat!

This is especially useful if you actually have an idea of what the code should look like. You always have the chance to stop it if it seems like it’s headed in the wrong direction.

I intentionally gave it a rather large JSON file to try and test the limits, at least in one dimension, and I was pleasantly surprised to receive a constructive message after it had already been working for a moment.

It seems that the code took too long to execute, possibly due to the size or complexity of the JSON data. To resolve this issue, I’ll add a depth limit to the recursion and try again. If the depth limit is exceeded, I’ll add a note to the Mermaid diagram indicating that the depth limit was reached.

Please let me know what depth limit you would like to set for visualizing the JSON structure. A depth limit of 2 or 3 is usually a good starting point.

This is useful because it doesn’t just produce an error and then leave you to deal with it; instead, it provides the user with a simple solution that it’s ready to implement. It’s even proactive about choices, saying “I’ll do” instead of asking if you want it to.

I asked it to give me a depth limit of 3, and it quickly modified the initial Python code it wrote, adding a new depth limit to the function.

As easy as that, I was given some usable output.

JSON to Mermaid output from OpenAI's Code Interpreter

You may recall that I had asked to have the “data structure of a JSON file in Mermaid”. I think I could have been more explicit that I was only concerned with the structure. Well, Code Interpreter was nice enough to stop the output for me and had this to say:

You can use this Mermaid markup in a Mermaid-compatible tool to visualize the JSON data structure. Please note that this is just a portion of the Mermaid markup. The full markup is quite long, so I am unable to display it in its entirety here. However, I can provide you with a text file containing the complete Mermaid markup. Would you like me to do that?

Once again, useful output! I’m getting the impression that this will be a really helpful tool for me going forward.

So, naturally, I requested the text file of the full markup, and, it turned out to be huge. Granted, the source JSON file I had provided Code Interpreter with was about 7.4 MB, but the Mermaid output ended up being about 10.5, and since I didn’t need the data it contained, and was really only interested in the data structure, I asked it to help me out with that.

Here’s where things start to get a bit more interesting.

To spare you from a 2000-word article, I’ve left out a lot of the additional details, but here’s the essence of it:

Chris Cameron

File output is large due to dynamically generated object names. How can we summarize the structure while eliminating repetitive branches?

Code Interpreter

To streamline the structure and remove repetitive branches, consider these options:

  1. Group repetitive structures: Combine branches or objects with the same format and indicate occurrence count.
  2. Collapse lists with homogeneous items: Simplify lists containing structurally similar items and add an annotation.
  3. Simplify keys in dictionaries: Replace dynamically generated keys (e.g., UUIDs) with a placeholder (e.g., “{key}”).

Let’s see examples of how to implement each of these options:

It went on to provide the full code output for each of the 3 options, and then prompted me to choose which of the 3 (or all) I would like to try. I find the way in which it interacts very natural, and much more similar to speaking to someone well-versed in programming conventions than the types of exchanges I’ve had with ChatGPT (3.5 and 4).

In the end, this was a great test that proved to be more interesting than I had expected. I’m keen to put it to work solving some more complex issues, but for now, I thought this was worth sharing, especially since I’m still using it in the Alpha preview.

If you’re looking forward to hearing more about it, or have any suggestions for some more complex problems you think I should throw at it, drop me a line and let me know!

And for anyone still reading, all the way down here, I give you the beautiful Mermaid you’ve all been waiting for!

JSON to Mermaid output from OpenAI's Code Interpreter looking like a real mess

Ok, maybe not beautiful…But it is Mermaid. So, at the end of the day, I got what I asked for.

🧜🏼‍♀️🤓

Applied Data

Looking to improve your business visibility online and off? Our experts at satellite know how to interpret data in ways that can help improve your impact and reach. Our analytics provide a measurement of data on how people use the internet to find your busines. This data can be used to understand and improve website effectiveness, amongst other important factors. With analytics, we can measure how traffic to your website changes after you launch a new advertising campaign. You can also get information about the number of visitors to your website and the number of page views. Finding out who is looking for your local business is also critical in knowing how to advertise effectively. Improve your business visibility! Contact us to see how our experts can help.

Request a Quote

Get in touch and let us know about your Applied Data needs today.
We will be happy to evaluate your project.

Creative Partners

Looking to take your branding to the next level? Look no further than satellite! Our network of talented designers, photographers, and copywriters can help create a cohesive visual identity for your business, and make sure your products are talked about in the best way possible.

With our sound design services, we can create flawless phone messages or radio commercials for you.

And if handcrafted signs are more your thing, our artisans can take care of that too!

Request a Quote

Get in touch and let us know about your Creative needs today.
We will be happy to evaluate your project.

Project Management

Get your project management objectives on track with satellite! Our team will help you define and manage your goals, making it easy for everyone involved to stay on the same page.

The purpose of project management is to create a finished project that meets the your goals. In many cases, a requirement of project management is also to modify or improve the client’s original request so that it can realistically meet their needs.

Once your objectives are clear, they should guide all decisions made by people working on the project – like project managers, designers, contractors and subcontractors.

Contact us today to find out how satellites project management experts can help you define your goals!

Request a Quote

Get in touch and let us know about your Project Management needs today.
We will be happy to evaluate your project.

Content Marketing

At satellite, we understand that in order to be successful in content marketing, you need to produce a variety of high-quality content that will resonate with your target audience. That’s why our team of experienced writers creates engaging blog posts, compelling infographics, and riveting videos that will help you achieve your desired results. With our help, you can create a successful content marketing strategy that will engage and convert your audience. Contact us today to learn more!

Request a Quote

Get in touch and let us know about your Content Marketing needs today.
We will be happy to evaluate your project.

Social Media

Looking to take your social media marketing campaigns to the next level? Look no further than Satellite! Our team of experienced professionals will help you develop a strategy that targets your key demographics and engages with your audience in a way that builds brand loyalty. With years of experience in the industry, we know how to make social media work for your business. Contact us today and see the difference Satellite can make!

Request a Quote

Get in touch and let us know about your Social Media needs today.
We will be happy to evaluate your project.

Digital Strategy

Most businesses know that they need to be online and use digital processes, but many companies are still doing this one step at a time without any direction. To stay ahead of the competition, you need to capitalize on current trends and be prepared for the next innovation. A digital strategy is the best way to do this.

A digital strategy is a plan that uses digital initiatives to help achieve company goals. Although it may seem simple, creating and implementing a successful digital strategy requires expertise and experience. Contact us today and see how we can help.

Request a Quote

Get in touch and let us know about your Digital Strategy needs today.
We will be happy to evaluate your project.

SEO

Looking to improve your website’s visibility online? Look no further than satellite! Our experts know all about SEO – the process of making a website more attractive to search engines. When people search for things on the internet, our SEO services make sure your website shows up as one of the top results. So why wait? Contact us today and let us help you get ahead of your competition!

Request a Quote

Get in touch and let us know about your SEO needs today.
We will be happy to evaluate your project.

Web Presence

Are you feeling lost in space? Let our team of expert web designers and developers help get you back on track.

Our cutting-edge technology and innovative designs will help your site stand out from the crowd, making sure that your customers can find you no matter where they are. 

Our team of experts can help get you online quickly and easily, regardless of your starting point. We provide a simple, streamlined experience for our clients, and will fully manage your web presence if you need us to.

Let satellite give you the boost you need to succeed online! Click below to request a quote and let us handle the rest.

Request a Quote

Get in touch and let us know about your Web Presence needs today.
We will be happy to evaluate your project.

Ecommerce

Shopping is a way of life, and at satellite, we make it easy. Our ecommerce solutions are the simplest and most reliable on the market, perfect for any business. With our help, you can make those sales and provide a great shopping experience for your customers. So come see what we have to offer – your business will be glad you did!

Request a Quote

Get in touch and let us know about your Ecommerce needs today.
We will be happy to evaluate your project.

Section Title

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.Lorem ipsum dolor sit amet, consectetur adipiscing elit. 

Request a Quote

Get in touch and let us know about your Section Title needs today.
We will be happy to evaluate your project.