Confirmed · 3 videos

Replace one-shot generation with iterative workflows

Build agentic workflows that plan, use tools, reflect, and revise, instead of expecting a perfect answer from one pass.

He compares one-shot prompting to writing an essay without a backspace key. He teaches four design patterns (reflection, tool use, planning, multi-agent collaboration), task decomposition, and harnesses with appropriate scaffolding, treating agentic-ness as a spectrum.

Based on Andrew Ng's public content. Not affiliated with or endorsed by Andrew Ng.

What following it looks like

  • Decomposes a task into steps the way a human expert would
  • Has the LLM draft, critique, and revise its output
  • Removes scaffolding as models improve
  • Gives agents spec-based tests so they can close their own loops

Evidence · 12 quotes from 3 videos

Each quote was matched word for word against the transcript. Tap the time to hear it.

“So to use is a major design pattern that is letting large language models make functioning calls”

12:37like issue a customer refund or send an email
12:40or pull up a calendar entry.
12:42So to use is a major design pattern
12:44that is letting large language models make functioning calls
12:47and I think this is expanding what we can do

“in which a large language model can be prompted to generate a request for an API call”

12:18So there's a reflection design pattern.
12:23And second major design pattern is to use
12:27in which a large language model can be prompted
12:30to generate a request for an API call
12:33to have it decide when it needs to search the web

“like issue a customer refund or send an email or pull up a calendar entry.”

12:33to have it decide when it needs to search the web
12:36or execute code or take other tasks
12:37like issue a customer refund or send an email
12:40or pull up a calendar entry.
12:42So to use is a major design pattern

“But I see much more in terms of number of opportunities still about value. There's a lot of simpler workflows that I think are still being built out.”

4:51think you heard a bunch about uh with
4:53very complex loops um uh that that's
4:56very valuable as well. But I see much
4:58more in terms of number of opportunities
5:00still about value. There's a lot of

“where agentic workflows are letting us process image and video data.”

8:52in this presentation I'll talk about later
8:53is the rise of visual AI,
8:55where agentic workflows are letting us process
8:58image and video data.
9:00But to get back to that later,

“Then let's write the first draft and then let's read the first draft and critique it and revise the draft and so on.”

8:06If so, let's download some web pages
8:08and put it into the context of the large-language model.
8:10Then let's write the first draft
8:11and then let's read the first draft
8:13and critique it and revise the draft and so on.

“what has emerged over the last year is a new agentic orchestration layer that helps application builders orchestrate or coordinate a lot of calls to the technology layers underneath.”

4:13into these types of agentic workflows.
4:16So just to update the picture for the AI stack,
4:19what has emerged over the last year
4:22is a new agentic orchestration layer
4:25that helps application builders orchestrate

“we found that these agentic workflows are really a huge difference between working versus not working.”

3:54to medical diagnosis,
3:55to reasoning about complex legal documents,
3:58we found that these agentic workflows
4:00are really a huge difference between working versus not working.
4:04But a lot of the work that needs to be done,

“and more research. And by going round this loop over and over, it takes longer, but this results in a much better work output.”

8:16And this workflow looks more like doing some thinking
8:20or some research and then some revision,
8:22and then going back to do more thinking and more research.
8:25And by going round this loop over and over,
8:28it takes longer, but this results

“And by going around this loop many times, it is slower, but it delivers a much better work product.”

3:35where your model does some thinking and some research,
3:37does some revision, goes back to do more thinking.
3:40And by going around this loop many times,
3:42it is slower, but it delivers a much better work product.
3:46So for a lot of projects that AI fund has worked on,

“So detect the faces, detect the numbers, put it together.”

15:48can do better with an iterative workflow
15:51where you can approach this problem step-by-step.
15:54So detect the faces, detect the numbers, put it together.
15:57And so with this more iterative workflow,
16:00you can actually get an agent to do some planning,

“large language model-based agents, large multimodal-based agents can do better with an iterative workflow where you can approach this problem step-by-step.”

15:37You can actually have it, you know, look at the image
15:39and give you the numbers of the runners or something.
15:43But it turns out just as with large language
15:45model-based agents, large multimodal-based agents
15:48can do better with an iterative workflow

Linked topics