Data Storytelling with Altair and AI cover
welcome to this free extract from
an online version of the Manning book.
to read more
or

4 Generative AI tools for data storytelling

 

This chapter covers

  • Basic concepts, including artificial intelligence, machine learning, deep learning, and generative AI
  • The basic structure of a ChatGPT prompt
  • The basic structure of a DALL-E prompt
  • GitHub Copilot

We’ve finally gotten to the point: how to use ChatGPT and DALL-E to do data storytelling. You might wonder why you had to wait until now to see these tools in action. I will give you an answer during this chapter, in which we will review the basic concepts behind generative AI tools and how to use them in the context of data storytelling. The chapter does not describe the fundamentals of generative AI. Instead, the first part gives a quick overview of AI, generative AI, and generative AI tools. Next, the chapter describes how to incorporate three main tools into data storytelling: ChatGPT, DALL-E, and GitHub Copilot. Finally, it shows a practical use case, which demonstrates how you can combine the three tools to build data stories quickly.

4.1 Generative AI tools: On the giants’ shoulders

4.1.1 What is artificial intelligence?

4.1.2 What is machine learning?

4.1.3 What is deep learning?

4.1.4 What is generative AI?

4.1.5 Generative AI tools landscape

4.2 The basic structure of a ChatGPT prompt

4.2.1 Defining the task

4.2.2 Acting as a role

4.2.3 Tailoring to an audience

4.3 The basic structure of a DALL-E prompt

4.3.1 Subject

4.3.2 Style

4.3.3 The Edit Image tool

4.4 Using Copilot to build the components of an Altair chart

4.4.1 Prerequisites

4.4.2 Marks

4.4.3 Encodings

4.4.4 Conditions

4.4.5 Compound charts

4.4.6 Interactivity

4.5 Case study: Your training team

4.5.1 Turning data into information