liveBook · Manning

Task

As explained in Data Storytelling with Altair and AI

A task is a prompt component that specifies the operation or result the generative AI system should perform or produce.

A task is the specific operation or result a generative AI system should perform or produce. Clear task instructions keep the response relevant and give a prompt a concrete objective. section 4.2.1 section 4.2

Common tasks include:

A task works best when it is combined with a role and an audience. For chart context, the prompt can also specify the topic and the type of text required. If the result misses the goal, adjust one or more elements and try again. section 7.3 section 4.2

From text to title

Given a passage about fragility, vulnerability, and resilience, an effective task instruction is: “Generate the title for the text in angular brackets <text>.” Possible results include “Embracing Fragility: The Path to Remarkable Resilience and Authentic Living.” Adding a role can make the requested title more specific. section 4.2.1

Figure 7.4 The schema used to generate context
figure

Use the prompt schema to connect the task with the role, audience, topic, and requested text type. section 7.3

How Data Storytelling with Altair and AI covers it

How deep it goes
Defines tasks, lists common forms, demonstrates title generation, and explains iterative refinement without detailing model internals.
Examples
Uses title generation from a fragility passage and chart annotations or commentaries as concrete task examples.
What it assumes
Assumes familiarity with entering prompts and teaches the task component alongside roles, audiences, topics, and output types.
What you can do after
Apply task instructions to generate titles, summaries, translations, ideas, annotations, and commentaries, then refine prompts iteratively.
How it connects
Connects tasks with prompts, prompt engineering, roles, audiences, topics, annotations, commentaries, and data visualization.

Also explained in

Compare how 10 books explain task →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Storytelling with Altair and AI. The section links point to the parts of the book it draws on.