liveBook · Manning

Prompt

As explained in Grokking AI Algorithms, Second Edition

A prompt is an instruction, question, or other text input provided to a language model to elicit a response.

A prompt is an instruction, question, outline, or other text input that guides a language or image model toward a desired response. Think of it as giving the model a creative direction: the clearer the direction, the more useful the starting result can be. section 12.3 section 11.44

Prompts help turn generative models into practical assistants. An image model uses a text prompt to guide reverse diffusion from random noise toward a clean image, while a language model uses a prompt to produce a first draft that a person can refine. section 12.23 section 11.44

From direction to draft

A user might provide an outline and ask for an article, marketing slogan, business report, product description, practice question, or lesson summary. For visual work, a complex text prompt can describe a scene; the image model uses that description while iteratively removing predicted noise until an image appears. section 11.44 section 12.3

Figure 12.7 A workflow for training a diffusion model
12_07

Follow the diffusion workflow to see where a user’s text prompt guides image generation. section 12.3

How Grokking AI Algorithms, Second Edition covers it

How deep it goes
Explains prompts as model guidance and shows their role in generation, but does not develop prompt-engineering techniques.
Examples
Uses scene descriptions, article outlines, slogans, reports, product descriptions, practice questions, and lesson summaries.
What you can do after
Apply it via a language or image model to create a first draft or generate visual content for human refinement.
How it connects
Connects prompts with diffusion models, image generation, language models, and content generation.

Also explained in

Compare how 50 books explain prompt →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking AI Algorithms, Second Edition. The section links point to the parts of the book it draws on.