Speaker Notes

Full AI Prompting Course with Andrew Ng

Effective AI prompting requires neutral framing to avoid sycophancy, progressive outlining to prevent low-quality outputs, and leveraging specialized tools like deep research and code execution for complex problem-solving.

DeepLearningAI · 2:28:46 · YouTube ↗

Tutorial · solo speaker  Beginner · concepts and prompting strategy

Highlights

12 clips · 24 min of 149 min
    • AI models are trained to please users and will validate biased ideas if hinted at.
    • Asking neutral questions prevents the model from guessing what answer you want.
    • Providing an explicit grading rubric forces the AI to deliver objective, scored critiques.
    • Directly prompting for long content often produces generic, low-quality text.
    • Power users collaborate with AI by first building and refining an article outline.
    • Iterating on bullet points and structure before drafting yields significantly better results.
    • The user-facing AI model delegates web searches to a secondary assistant model.
    • The assistant model queries a search engine, downloads pages, and summarizes them.
    • The user-facing model only sees summaries, which can occasionally lead to misinterpretations.
    • Basic web search handles quick, single-source queries in seconds.
    • Deep research synthesizes multiple views and complex dimensions over minutes.
    • Match tool selection to whether a task takes seconds or hours manually.
    • Basic web search uses a handful of sources and takes seconds for simple facts.
    • Deep research agentically downloads dozens of sources across parallel searches.
    • Use deep research for complex topics requiring synthesis of multiple viewpoints over minutes or hours.
    • Ask the AI to generate 3 to 5 distinct options initially.
    • Provide direct feedback on liked and disliked options to refine direction.
    • Iterate multiple times to efficiently narrow down to a customized plan.
    • Modern reasoning models can handle tasks that take humans many hours.
    • Traditional advice like 'think step by step' is largely obsolete.
    • Instructing the model to 'think hard' leverages its internal reasoning length effectively.
    • Traditional advice like 'think step by step' is largely obsolete in modern models.
    • Simply instructing the model to 'think hard' triggers deep reasoning at length.
    • Specialized thinking modes or keywords enable models to deliberate for minutes.
    • AI models have a strong bias to agree with you, known as sycophancy.
    • Studies show ChatGPT agrees roughly 10 times more often than it disagrees.
    • Asking leading questions reinforces your own biases instead of giving objective answers.
    • AI slop features overused words, empty phrases, and a lack of deep substance.
    • Progressive outlining avoids generating low-quality text right away.
    • Start by having the AI generate and refine outlines and bullet points before writing the full text.
    • Unstructured critique prompts lead to sycophantic praise rather than objective feedback.
    • Provide a detailed grading rubric with clearly defined, binary (true/false) criteria.
    • Asking the AI to sum scores per category forces a more objective evaluation.
    • Text generation is efficient, fast, and low cost.
    • Generating speech, images, and video increases significantly in time and cost.
    • Iterative prompting techniques take longer when each output generation requires minutes.
    • Diffusion models generate entire images all at once rather than pixel by pixel.
    • Training involves learning to sequentially remove noise from pure random pixel grids.
    • Prompts guide the denoising process to reconstruct the desired visual output.
    • AI models can use built-in code execution tools just like web search.
    • When presented with data or calculations, the model writes and runs code to get accurate results.
    • This agentic capability allows the AI to compute trends and plot graphs dynamically.

Questions this video answers

17 · every answer cites the moment it was said
01 How do AI power users avoid sycophancy when asking for feedback? 2 sources · 4:23

Power users ask neutral questions that do not hint at a preferred outcome or they provide a clear grading rubric. This forces the model to evaluate objectively rather than simply trying to please the user.

02 Why is iterative outlining recommended over direct prompting for writing tasks? 2 sources · 5:48

Asking an AI to write directly often results in generic, low-quality text known as AI slop. Instead, power users first request an outline, iterate on it through back-and-forth feedback, and only then expand it into the final text.

03 How does frequency bias affect an AI model's pre-trained knowledge? 2 sources · 12:30

Pre-trained knowledge reflects the patterns and frequency of data in the training set, meaning common topics have vast amounts of reliable data while niche topics or less common languages have sparse data. This frequency serves as a rule of thumb for predicting response reliability.

04 What causes an AI model to trigger a web search? 2 sources · 17:14

Models trigger a web search when a query involves events past their knowledge cutoff date, location-specific details, or niche information that requires updated or external facts. Users can also explicitly trigger web search through interface buttons or direct prompting instructions.

05 How does the underlying two-agent architecture handle web searches? 2 sources · 25:10

The user-facing AI model acts like a customer service agent and calls a second assistant AI model when a web search is needed. The assistant model searches the web, filters and downloads relevant web pages, and summarizes them for the primary model to generate the final answer.

06 When should I use deep research instead of a standard web search? 2 sources · 34:44

Deep research should be used for complex, multi-dimensional tasks requiring the synthesis of numerous sources, which might take a human minutes or hours. In contrast, basic web search is suited for quick, single-question queries that can be answered using a handful of sources in seconds. The recommendation is to reserve deep research for tasks demanding deep thought across many sources.

07 How can I use AI as an effective brainstorming partner? 2 sources · 45:30

To get creative ideas rather than generic common-sense responses, you should provide rich context and engage in iterative back-and-forth conversations. By giving feedback on the AI's initial options, you steer it toward more relevant and custom solutions. The recommendation is to repeat this feedback loop multiple times until you find a satisfactory idea.

08 How do AI desktop apps manage context compared to standard chat interfaces? 2 sources · 1:00:08

AI desktop apps can agentically gather context from your computer by finding and reading relevant files only as needed for the task. Unlike standard chat interfaces where you must manually choose and upload files in advance, these desktop applications explore folders dynamically. The best practice is to review their proposed action plans before execution to ensure safety.

09 Should I still prompt modern reasoning models to think step-by-step? 2 sources · 1:09:38

Instructing models to think step-by-step is largely obsolete for modern reasoning models. Instead, you can simply tell the model to think hard or select a specialized thinking mode. This cues the model to reason extensively at length to accomplish complex tasks successfully.

10 How do you prevent AI sycophancy when seeking objective feedback? 3 sources · 1:14:30

AI models possess a strong training bias to agree with users and tell them what they want to hear, which degrades answer quality. To combat this sycophancy, developers should use neutral framing and keep context factual without hinting at a preferred outcome. Presenting options as a pros and cons comparison helps elicit truly objective feedback.

11 What is progressive outlining and why does it prevent AI slop? 2 sources · 1:23:26

Progressive outlining involves having the AI build, refine, and iterate on an outline and bullet points before generating final text. This method prevents AI slop—vague, empty-sounding text filled with overused phrases—by maintaining substance throughout the writing process. Editing an outline is high-leverage because structural changes propagate efficiently across entire sections.

12 How do objective rubrics improve AI-driven text critiquing? 3 sources · 1:30:53

Asking an AI to critique work without constraints often results in sycophancy, where the model gives superficial praise or arbitrary scores. Providing an objective rubric with unambiguous, binary true-or-false criteria forces the model to evaluate the work methodically. Summing scores category by category yields more accurate assessments and targeted improvement suggestions.

13 How do time and cost scale across different multimodal generation outputs? 3 sources · 1:46:00

Generating different data modalities varies significantly in time and computational expense. Text generation is highly efficient and low-cost, speech is moderately more expensive, images cost even more, and video generation is extremely slow and costly. These scaling differences mean that iterative prompting techniques become much harder and time-consuming when generating video or images.

14 What are the main strengths and weaknesses of using images as AI prompt inputs? 2 sources · 1:51:23

Providing image inputs enriches context, enabling AI to read handwritten notes, receipts, and brainstorm sessions. However, a major weakness is that AI views images coarsely and can struggle to distinguish fine-grained details.

15 How do diffusion models generate images compared to text generation? 2 sources · 1:59:29

Unlike text models that generate output piece by piece, diffusion models generate an entire image all at once. They start from pure noise and sequentially learn to remove noise to reveal the final image.

16 How can users use AI to build simple software applications? 2 sources · 2:06:10

Users can prompt AI to build basic applications or games by specifying a clear goal, required inputs, and expected outputs. Simple, self-contained apps with specific tasks work best for this approach.

17 How do AI models perform data analysis tasks under the hood? 2 sources · 2:11:41

When presented with structured data like spreadsheets, AI models can leverage a code execution tool to write and run computer programs. This allows them to calculate statistics, generate graphs, and extract business insights programmatically.

Section-by-section summary

30 parts

Treat AI like a fresh college grad by providing rich context

Novices often prompt AI like a Google search with minimal context, leading to generic outputs. Power users act more empathetically, supplying detailed documents, screenshots, and background to set the AI up for success.

Prevent AI sycophancy with neutral prompts and rubrics

AI models are heavily biased toward pleasing the user, often validating flawed ideas if hinted at. Asking neutral questions or providing explicit grading rubrics forces the AI to offer objective critiques.

Use iterative outlining to eliminate AI slop

Directly asking for long-form content results in generic, low-quality text. Power users instead collaborate with the AI on outlines, refining the structure through multiple rounds before generating the final text.

Understand pre-trained knowledge and frequency biases

AI models learn patterns from trillions of words across the internet, meaning common topics like cooking have high reliability while niche or proprietary data may be missing. While models handle minor typos well due to training data exposure, their pre-trained knowledge is frozen in time.

Leverage web search to bypass knowledge cutoffs

When faced with real-time events or location-specific queries, AI models trigger web search to augment their frozen pre-trained knowledge. Under the hood, a user-facing model delegates to an assistant model that queries search engines and summarizes results.

Filter unreliable sources and outdated web data

Web search frequently pulls from popular social media platforms rather than rigorous scientific sources, risking misinformation. Guiding the AI explicitly toward official organizations and double-checking cited URLs prevents reliance on outdated or low-quality web pages.

Employ deep research for multi-source synthesis

Standard web search handles quick queries using a handful of sources, but deep research agentically executes dozens of parallel searches. This automated loop evaluates sources, follows up on gaps, and synthesizes complex topics into detailed reports.

Match search tools to task complexity

Use basic web search for quick single-source queries like weather or facts. Reserve deep research for complex topics that require synthesizing multiple perspectives over several minutes.

Hands-on labs clarify search options

Interactive labs allow users to directly compare standard outputs, web search, and deep research across various real-world scenarios. This experimentation builds intuition on when to apply each tool.

Iterate during brainstorming for creative ideas

Relying solely on default AI prompts yields common sense suggestions due to training data biases. Providing rich context and iterating through multiple rounds unlocks unique, creative solutions.

Use feedback loops to steer brainstorming

An effective brainstorming workflow involves asking the AI for multiple options, providing targeted feedback on what works, and repeating the cycle. This efficiently guides the model toward custom, high-value plans.

Manage context windows to avoid distraction

Modern models accept massive context sizes equivalent to multiple books. However, irrelevant conversational history can distract the model, making it beneficial to start fresh chats for new topics.

Desktop apps enable agentic file management

AI desktop tools can agentically read, organize, and modify local files with your permission. Establishing proper folder boundaries and reviewing permissions is crucial to prevent accidental data loss.

Modern models act as powerful reasoning engines

Recent AI models possess strong reasoning capabilities that handle tasks previously taking humans hours. They can process extensive documentation and deliberate at length before answering.

Neutral framing prevents AI sycophancy

AI models possess a strong bias to agree with users to please them. To get objective, fact-based answers, prompts must maintain neutral framing without hinting at the preferred outcome.

Progressive outlining prevents AI slop

AI writing often overuses specific patterns, buzzwords, and vague phrasing known as AI slop. Utilizing a progressive workflow—outlining, refining bullet points, and then generating text—results in higher quality output.

Piece-by-piece editing and objective rubrics improve drafts

Editing text sentence by sentence or paragraph by paragraph provides a manageable workflow. For holistic reviews, providing an explicit grading rubric forces the model to evaluate work objectively rather than offering blind praise.

Cross-model review and leveraging jagged intelligence

Having one AI model critique another model's work helps integrate diverse knowledge bases. Because AI models possess jagged intelligence where performance varies across tasks, routinely testing prompts across multiple models hews intuition.

Interactive labs demonstrate effective brainstorming and critiquing

Practical labs illustrate the stark differences in output quality between simple prompts and detailed prompts with strong context. Comparing objective versus subjective rubrics shows how clear evaluation criteria produce better actionable suggestions.

Multimodal capabilities expand AI beyond text

AI can generate and process richer modalities including images, videos, voices, and code. These capabilities serve as powerful brainstorming tools for real-world projects like cake designs, videos, and simple computer games.

Generation costs scale across modalities

While text and speech generation remain relatively fast and inexpensive, image and video generation require significantly more time and computing cost. This impacts how many iterations you can realistically run when prompting for rich media.

Responsible use of multimodal generation

Advanced generative tools carry dual-use risks, such as beneficial productivity gains versus harmful voice clone scams. Users must navigate these technologies responsibly, focusing on positive applications.

Image Inputs Enrich Context But Miss Fine Details

Uploading images helps provide quick context and enables the AI to read handwriting or receipts, though it struggles with fine-grained visual distinctions. This makes images great for general summaries and rough parsing but less reliable for high-stakes identification.

Diffusion Models Generate Images by Denoising

Unlike text generation, diffusion models create images all at once by starting from pure noise and iteratively removing it based on text prompts. While powerful, they can still suffer from artifacts like distorted hands or misspelled text.

Prompting Enables Non-Developers to Build Simple Software

Users can construct functional mini-apps and games using single prompts by defining clear goals, inputs, and outputs. Sticking to well-defined tasks like timers or simple platformers ensures higher success rates for novices.

AI Analyzes Data by Writing and Executing Code

When given spreadsheet data, AI models use code execution tools to programmatically calculate metrics, find patterns, and generate charts. This agentic approach produces reliable numeric insights compared to relying purely on raw text generation.

Matching Queries to the Right AI Tool Capabilities

AI models dynamically choose between pre-trained knowledge, web searches, deep research, or code execution depending on the prompt requirements. Understanding these tools helps users structure prompts for real-time data, complex research, or precise calculations.

Interactive Demos Demonstrate Rapid App Prototyping

Interactive labs allow users to generate functional web apps like fireworks simulators or flashcard tools instantly from simple prompts. These applications can also be easily shared via URL for others to test and run in their browsers.

Iterative Workflows Guide Complex Research Projects

The final project demonstrates a multi-step workflow involving AI-assisted brainstorming, targeted research synthesis, and app creation. Iterating with an AI mentor helps refine broad topics into specific, actionable research questions.

Continuous Experimentation Hones AI Power User Skills

Becoming an advanced AI user requires consistently testing models with challenging tasks and high-quality context. As AI capabilities expand, ongoing practice builds reliable intuition about what models can and cannot achieve.

0:00 / 2:28:46
k play/pause · f fullscreen · m mute
n next · p previous clip · t highlights/full
< > slower/faster · / search what was said
  • Sycophancy1× · first 4:09

    The tendency of AI systems to agree with users or tell them what they want to hear in order to please them.

  • Pre-trained Knowledge10× · first 11:19

    The foundational knowledge an AI model learns from reading massive amounts of diverse text data from the internet during early training steps.

  • Deep Research13× · first 8:16

    An advanced AI feature used to synthesize multiple sources and think through complex multi-dimensional questions.

  • Brainstorming31× · first 7:15

    A collaborative use case where AI generates multiple options and ideas based on user context and feedback.

  • AI Desktop Apps3× · first 1:00:25

    Applications that can agentically read, write, and manage files on your computer to gather context and perform tasks.

  • Progressive outlining1× · first 1:23:33

    A writing technique where you iterate on an outline and bullet points before generating final text.

  • Jagged intelligence1× · first 1:35:14

    The uneven capability profile where AI excels at certain complex tasks while underperforming humans at others.

  • Diffusion model2× · first 2:00:27

    An AI model that generates images by starting from pure noise and iteratively removing noise.

  • Pomodoro timer1× · first 2:07:15

    A work timer used to time work or studying with 25 minutes of work and a 5 minute break.

  • Code execution tool1× · first 2:12:50

    A built-in tool that allows AI models to write and run computer programs to analyze data.