YouTube2Text

wk06 2 PromptEng iat111 — Transcript

by ivizlab · 6,511 words · 970 segments · language en · Watch on YouTube

Full transcript

  1. 0:00Welcome to week six of IIT 111. I'm
  2. 0:04Steve DePaulo. Today we're going to
  3. 0:08generally finish off with large language
  4. 0:10models and AI used as words. There's AI
  5. 0:14in so many other areas. And surely the
  6. 0:16visual area is one we haven't fully
  7. 0:19discussed yet. Um, I will be definitely
  8. 0:22talking about more details with large
  9. 0:24language models, but more so um
  10. 0:28very new ways to work with them.
  11. 0:31So, um
  12. 0:33surely we've talked about how large
  13. 0:36language models are moving beyond words
  14. 0:38and are being very multimedia oriented.
  15. 0:40Um, you're
  16. 0:42uh if you're taking the class,
  17. 0:44assignment two is due
  18. 0:47um this week.
  19. 0:49Um
  20. 0:50and then we're going to move very
  21. 0:51quickly to assignment three. I'm going
  22. 0:53to be talking about both of those
  23. 0:56today. Not just from an assignment
  24. 0:58standpoint, but from literally
  25. 1:01uh uh
  26. 1:02foundations of AI point. So, um
  27. 1:06assignment two is prompt engineering.
  28. 1:09I'm going to review it one more time.
  29. 1:11And if you're using those techniques, I
  30. 1:13think you're about 90% better than most
  31. 1:16people using prompt engineering. But
  32. 1:19assignment three will be these new
  33. 1:21techniques. In this I I've been doing
  34. 1:24workshops on it. So, I call it activity
  35. 1:27one and activity two. So, in our class
  36. 1:29it's assignment two and three that's
  37. 1:31due, but you'll see um
  38. 1:34I'll write it the other way. So, let's
  39. 1:36look at this in large language wrap up,
  40. 1:38a little bit about visuals, and then
  41. 1:40moving on to these new ways of doing
  42. 1:42things. So, surely we've made it pretty
  43. 1:44clear that these large language models
  44. 1:47are moving way beyond simple or even
  45. 1:50reasoning, and they're moving into
  46. 1:52autonomous agents. We've talked a lot
  47. 1:54from an ethics standpoint. And in the
  48. 1:57news version of what the issues are with
  49. 2:00agents.
  50. 2:01We don't always refer to it that way,
  51. 2:03but an agent is something surely that
  52. 2:05can access different things, but surely
  53. 2:07the web,
  54. 2:08doing code, and I'll be starting to talk
  55. 2:10more and more about vibe coding in
  56. 2:12classes
  57. 2:13in the class, and other forms. So, let's
  58. 2:17look at this new convergence where LLMs
  59. 2:20are now reasoning plus tool use and
  60. 2:23multimedia. And in a way changing how
  61. 2:26they think from sense to reasoning to
  62. 2:28act or reflect. Notice this is a very a
  63. 2:30more human way of of how we're
  64. 2:33intelligent that we're starting to build
  65. 2:35into our systems that just started
  66. 2:38started as systems that you know, came
  67. 2:41up with the next word and then again and
  68. 2:42again.
  69. 2:44So, we're beyond just a prompt and you
  70. 2:47get an answer. Now we have persistent
  71. 2:49context that remembers your prior chats,
  72. 2:52docs, um maybe even your style. All
  73. 2:55those things if you haven't and you're
  74. 2:57using some of these systems, you're able
  75. 2:59to build into the system.
  76. 3:02There There are settings where you can
  77. 3:03say this is the style I like. I don't
  78. 3:05want to see end dashes. I want to be
  79. 3:07thinking this way. It'll put all that in
  80. 3:10for you.
  81. 3:11Um including getting rid of things that
  82. 3:13it
  83. 3:14that it knows about you that maybe you
  84. 3:16think
  85. 3:17isn't helpful.
  86. 3:18Uh we talked about tool orchestration,
  87. 3:21multimedia, live web retrieval. Um
  88. 3:25and where it's getting to the point of
  89. 3:26almost a type of reflection system
  90. 3:30hopefully for you and your drafts. And
  91. 3:33into vibe coding, which I'll show you
  92. 3:34examples of.
  93. 3:37Um
  94. 3:39So, we definitely have the core model.
  95. 3:41Um now this agentic layer going out and
  96. 3:43doing these things, the memory and
  97. 3:45context manager, and [clears throat]
  98. 3:48something processing when a visual shows
  99. 3:51up. Remember when it goes to the web or
  100. 3:53it has to analyze a picture that just
  101. 3:56might be in your PDF, it is doing
  102. 3:58specialized stuff and typically just
  103. 4:01getting the the text description of
  104. 4:03those things, processing it separately,
  105. 4:06and then putting it back in the context
  106. 4:08window that we've talked about a lot.
  107. 4:11Um
  108. 4:13So, if you say summarize this PDF and
  109. 4:15make a chart and draft a report, it's
  110. 4:18got to read and parse an uploaded PDF.
  111. 4:21If there's vision, you know, using text,
  112. 4:23but if it sees an image, it might switch
  113. 4:25over to a vision system, turn that back
  114. 4:27into text, run maybe some Python program
  115. 4:30to plot that data,
  116. 4:32uh write a summary for you, maybe cite
  117. 4:35sources on the web. So, it's really
  118. 4:38starting to act like a research
  119. 4:39assistant, not a chatbot. We want to
  120. 4:41start using more and more of that.
  121. 4:43Besides that, um
  122. 4:45it's doing a lot of reflective
  123. 4:47reasoning. And the most obvious one is
  124. 4:50Anthropic's Claude. It rather than just
  125. 4:52say, you know, with with guidelines of
  126. 4:55don't do that, [clears throat] don't do
  127. 4:56this, um do that and do this, it
  128. 4:59actually now has constitutional AI
  129. 5:01that's been in there for a while, where
  130. 5:03it's a training method that teaches the
  131. 5:05AI how to be most helpful and harmless
  132. 5:07and honest by following some ethical
  133. 5:10principles or constitution.
  134. 5:12It hasn't
  135. 5:14totally been a lifesaver where
  136. 5:16everyone's thinking, "Wow, that's
  137. 5:17wonderful. We should be using it, too."
  138. 5:19But it is a technique to give it kind of
  139. 5:22a bigger document about this is the way
  140. 5:25an AI should act.
  141. 5:28So, you're no longer just chatting,
  142. 5:30you're orchestrating, and that's what
  143. 5:31I'm mainly going to be talking about
  144. 5:33today in what I call assignment three or
  145. 5:35activity two.
  146. 5:36Uh you find, you analyze, you visualize,
  147. 5:38you summarize, you refine. Who's doing
  148. 5:40that? There's a way that you could just
  149. 5:42have an agent do that and get an answer
  150. 5:44back to you. I'm saying, "No, that's not
  151. 5:47this newer what I call human in the loop
  152. 5:50or cognitive conducting that we've now
  153. 5:52in our my research lab and others have
  154. 5:55put into our work. Um I'm going to use
  155. 5:58show you a system called FURK, which is
  156. 6:00a way to to do this. I'm [clears throat]
  157. 6:03on a paper on it with others. I work
  158. 6:05with people in Denmark. I'm really
  159. 6:07rethinking the lab. Where does this come
  160. 6:09in
  161. 6:10quite significantly? Well, it comes in
  162. 6:12with this notion this ethical problem
  163. 6:15along with energy and privacy and
  164. 6:18stealing your data. Um it comes in with
  165. 6:22something you've seen me talk about a
  166. 6:23lot, which is this cognitive decline
  167. 6:25that that if you're doing nothing but
  168. 6:28asking it to do your homework or to get
  169. 6:31answers, you know, you're not really
  170. 6:33being the human you're supposed to be.
  171. 6:35Instead, this conducting is this notion
  172. 6:38that you have many AIs all there to help
  173. 6:41you think. So, we'll talk more about
  174. 6:43that. But, it's always tricky when
  175. 6:47um
  176. 6:47who the agency is. Are you doing it or
  177. 6:50are you you're letting it
  178. 6:52>> [clears throat]
  179. 6:52>> uh uh an agent do part of it? So, we'll
  180. 6:54talk more about that. Uh are you
  181. 6:56approving the actions? Um
  182. 6:58what happens when it goes off and does
  183. 7:00something you don't want? Remember the
  184. 7:02name agent is an interesting term. If
  185. 7:05you think of celebrities or movie stars,
  186. 7:08they have agents. And those agents can
  187. 7:11act uh less ethical
  188. 7:14than So, if Brad Pitt says to a famous
  189. 7:17director,
  190. 7:19um I anything, I want to be in your
  191. 7:21movie. And the famous director says, I
  192. 7:23don't have the budget. And Brad Pitt
  193. 7:26says, I don't care. I'm here for you.
  194. 7:28That all sounds good. But, then the
  195. 7:31director's company gets on the phone and
  196. 7:34the agent says, Brad needs more money
  197. 7:36and can't do it. You have to hold off on
  198. 7:38the movie till this. And he's is one who
  199. 7:40plays hardball. So, there is this notion
  200. 7:43that the agents don't have to be,
  201. 7:45{quote} as nice or ethical as the people
  202. 7:49asking them to do. This happens in
  203. 7:51business and and other places as well,
  204. 7:53too. Do we want that? How much so?
  205. 7:56Um, just getting back to reminding about
  206. 7:59a large language model that it's
  207. 8:01encoding things like dog into some kind
  208. 8:04of vector representation, some numerical
  209. 8:07representation. And it's doing that for
  210. 8:09all the words, um,
  211. 8:11or part of a word. A token is is a word
  212. 8:13or a part of a word. Um, and that's what
  213. 8:16brings the speed and the the the ability
  214. 8:19to do the logic that's in deep learning.
  215. 8:23Um, I showed you a lot with neural
  216. 8:25networks. I just want to remind you that
  217. 8:26neural networks are no longer one neural
  218. 8:29network. It's a number of small things
  219. 8:32all doing pieces. This is an example of
  220. 8:35an encoder-decoder.
  221. 8:38You know, where each one of these, uh,
  222. 8:40blue or orange things are actually very
  223. 8:44simple
  224. 8:45um, neural networks that have a job to
  225. 8:47do. I showed you last week this notion
  226. 8:51of we're starting to move towards
  227. 8:53meaning because when you can do text and
  228. 8:55image pairs, so with text of, you know,
  229. 8:59a puppy in the grass,
  230. 9:01um,
  231. 9:02that would be, again as I've mentioned,
  232. 9:04the text would be that statement. And
  233. 9:07then this would be the picture. This
  234. 9:08would get a perfect one because the text
  235. 9:10matches. And then there could be one of
  236. 9:13a
  237. 9:14a cat, uh, a jumping. So, that would be
  238. 9:17this text and there would be a picture
  239. 9:19of it. And that would be a perfect one.
  240. 9:21But, how would it be if it's the text
  241. 9:24talking about the cat, but showing the
  242. 9:26dog picture? We run these things,
  243. 9:29um, quite significantly through
  244. 9:31everything and we're getting this this
  245. 9:33nearness waiting now, where certain
  246. 9:35things are more similar than others. So,
  247. 9:38we're moving towards meaning in a way.
  248. 9:40We call this an embedding space, and
  249. 9:43often this embedding space um we don't
  250. 9:46always, when we do a new model, start
  251. 9:48from scratch. We might have a good
  252. 9:50embedding space, and if we only wanted
  253. 9:52to write, say, a tool where you could um
  254. 9:58put your camera up to trees and leaves
  255. 10:02in the BC area, so it could understand
  256. 10:05what kind of tree it is just by showing
  257. 10:06it, we would put that on top of this
  258. 10:09embedding space. So, it's learning in
  259. 10:10general about the world, and then we
  260. 10:13would put our details on it. So, this is
  261. 10:15almost always what happens now. If you,
  262. 10:18maybe for your project, are trying to do
  263. 10:20a new kind of model, you wouldn't start
  264. 10:23from scratch at all. You'd find the
  265. 10:25closest embedded um
  266. 10:28vector space to your area, and there's
  267. 10:30tons of them out there. Um so, an
  268. 10:32embedding space is a vector space where
  269. 10:35similar meanings are positioned close to
  270. 10:36each other, like we just talked about.
  271. 10:38It's a simple way of saying
  272. 10:40uh um these are built up, and then we
  273. 10:42only tend to find the closest one to
  274. 10:45what we want. Maybe in that case,
  275. 10:47there's something about all trees and
  276. 10:50and flowers and leaves, and you just
  277. 10:52have to put the um
  278. 10:55the BC uh your smaller trained thing on
  279. 10:58top of it. That's what we're doing now.
  280. 11:00We're building the top of of the space
  281. 11:03now. But again, I wanted to remind you
  282. 11:05then that it's using that nearness now
  283. 11:08with things, including positioning
  284. 11:11encoding. So, that would be that it LM
  285. 11:14builds up not just like what the word
  286. 11:16is, but where the word um builds up the
  287. 11:18first the word, the position of the word
  288. 11:20in the in the sentence word in the
  289. 11:22sentence or phrase or a meaning based on
  290. 11:25the text image pair. And this is why um
  291. 11:28these systems are getting smarter and
  292. 11:30smarter, that it's it's where and how
  293. 11:33that works.
  294. 11:35And you get we get different vectors
  295. 11:37attention vectors
  296. 11:39for these. So it seems like it's just
  297. 11:41dog but there's different variants of
  298. 11:43dogs. And I've talked about this in
  299. 11:45other ways
  300. 11:46with this and this is in my grad class
  301. 11:49we get into this this attention we call
  302. 11:51it.
  303. 11:52Very famous paper called attention is
  304. 11:54all you need as a way to get some of
  305. 11:56this to work. But you know it's the
  306. 11:59understanding this two words litter
  307. 12:01here. You know this is the cat litter.
  308. 12:04So this litter is tied to who is using
  309. 12:07the litter where this this litter is
  310. 12:10you know
  311. 12:11these are my mates.
  312. 12:13Um
  313. 12:14The use is you know what what's left
  314. 12:16what's left behind. So all this is
  315. 12:19getting smarter. Each one of these cat
  316. 12:21would start with one vector of the word
  317. 12:23cat and then would grow to all these
  318. 12:25other meanings.
  319. 12:27So we do other things in modern
  320. 12:30because that's a good for training but
  321. 12:32as we're starting to get something we
  322. 12:33want to clean it up. We're actually
  323. 12:35giving it documents and having it almost
  324. 12:38dream a new document and seeing gets the
  325. 12:40next word. It feeds that back does it
  326. 12:43again. And in a way it's it's dreaming
  327. 12:45these documents and then it's testing
  328. 12:47it. Is this a good document or bad
  329. 12:48document? So we're doing everything we
  330. 12:51can to make
  331. 12:53the final large language model
  332. 12:56or the model in general strong. Here is
  333. 12:58the model here's the word dog here or
  334. 13:00this there or that there. And it just
  335. 13:02get pulled to different directions and
  336. 13:04how do we own this best? Like why is it
  337. 13:06going in a particular place for the next
  338. 13:08word or phrase or thinking? And I think
  339. 13:11I've told you that it's used
  340. 13:12reinforcement learning with human
  341. 13:13feedback. It started with this human
  342. 13:15feedback where we're giving these things
  343. 13:17to people to kind of go is did we write
  344. 13:19this well? How would you write it
  345. 13:20better? We have so many of them now
  346. 13:23we're using a different kind of AI
  347. 13:24called reinforcement learning that kind
  348. 13:27of is built on rewards and errors.
  349. 13:29Um it's a mean machine learning that
  350. 13:31technique that aligns models to the
  351. 13:33human values by human feedback, by rank,
  352. 13:36rate, and refine options. Rate is
  353. 13:39sometimes oh, we're going to give a
  354. 13:41human two choices and they prefer this
  355. 13:43one and we're going to learn from that.
  356. 13:45So, step one is these these document
  357. 13:47these words. Step two is question
  358. 13:50questions about the answers. Was this
  359. 13:52good? Um and then can we refine that and
  360. 13:55make it better? [clears throat] So, it's
  361. 13:57literally trained by people with Q&As
  362. 13:59now. Sometimes you get this yourself and
  363. 14:02you know, Claude or chat PT say, I'll
  364. 14:04give you two answers, which one do you
  365. 14:05like better? So, they're even doing that
  366. 14:08testing
  367. 14:09um to general users.
  368. 14:12So, we know we have the pre-training
  369. 14:13which uses a huge amount of information.
  370. 14:16I pulled slides that I talked to about
  371. 14:18my grad class.
  372. 14:19Uh if you're interested, we can always
  373. 14:20talk about it more. Exactly how big this
  374. 14:23data set is, how many GPUs you need, and
  375. 14:26then just this gives you a base model.
  376. 14:28And then we clean that base model with
  377. 14:31understanding uh um
  378. 14:33exactly what are good phrases and
  379. 14:36sentences and humans coming in cleaning
  380. 14:38that. So, the training is very
  381. 14:40expensive. It used to take over a year.
  382. 14:43We're down to that. And then the fine
  383. 14:45tune fine tuning takes a you know, a
  384. 14:47month or two. Uh fixes bad behavior,
  385. 14:51uh puts in corporate bias and other
  386. 14:53things. I talked about it with llama in
  387. 14:55a deeper way. Here's this comparison
  388. 14:58thing. Which one of these do you like
  389. 15:00better? We you know, they were paying
  390. 15:02people to decide that and really
  391. 15:04cleaning up what people would like to
  392. 15:06see. Um so, and then starting to do that
  393. 15:09automatically.
  394. 15:11Um so, that's again I just did a kind of
  395. 15:14review with a little bit extra of what
  396. 15:17makes a modern word-based system. So,
  397. 15:20what about as we get into visuals? Well,
  398. 15:22some of the things are very similar.
  399. 15:24It's still deep learning. It's still a
  400. 15:26large data set. Now, it's doing pattern
  401. 15:28recognition as well, but more in the
  402. 15:30visual space. And it's definitely doing
  403. 15:32generation, generating pictures.
  404. 15:35Uh but instead of predicting next world,
  405. 15:37the visual AI is learning to create
  406. 15:40images from noise. So, remember this
  407. 15:44neural network that we've always talked
  408. 15:46about. And this is the visual space that
  409. 15:49at some point you want to understand um
  410. 15:51the notions of what this is by doing the
  411. 15:54low level to the high level. We went
  412. 15:56through that. So, they don't want to
  413. 15:58keep going there. But, what we're going
  414. 16:00to start next week is this notion of um
  415. 16:04that large language models generally use
  416. 16:06that transformer encoder-decoder that I
  417. 16:08just showed you.
  418. 16:10Um and that predicts predicts the next
  419. 16:12token or word in the sequence. Visual AI
  420. 16:16and this is a little bit older. It's
  421. 16:18done a little bit differently now, but I
  422. 16:20need to explain it kind of how it was a
  423. 16:22year ago. Uses a diffusion model, which
  424. 16:25is a different kind of system. So, a
  425. 16:27diffusion model remove removes noise
  426. 16:30step-by-step to reveal an image.
  427. 16:33Um so, transformers versus diffusion.
  428. 16:36Transformers are used for words.
  429. 16:38Diffusion is is used to um come up with
  430. 16:42images by by doing this noise technique.
  431. 16:45Again, I don't want to get into it now,
  432. 16:47but uh as we get into it, we're starting
  433. 16:50to change this where we're using
  434. 16:51transformers
  435. 16:53to also predict pictures that are still
  436. 16:56using diffusion. So, the we're starting
  437. 16:58to do both for the images. So, what do
  438. 17:00we mean by diffusion? AI gets a picture
  439. 17:04and uses a particular technique to
  440. 17:07gradually add noise to it to it as
  441. 17:09nothing but noise. And there's an
  442. 17:11equation
  443. 17:13kind of a Markov chain is is this
  444. 17:15mathematical equation to actually get
  445. 17:17there. Then we just have the noise and
  446. 17:20you can reverse that process.
  447. 17:22We call it denoising. You'll see that in
  448. 17:24a lot of tools. How much denoising, how
  449. 17:27many steps you take to go back to to go
  450. 17:29back. Because we broke this down with an
  451. 17:32equation starting from noise, this is
  452. 17:35now very fast. We don't even have to
  453. 17:37save all those images anymore. We just
  454. 17:40save the equations that brought it to
  455. 17:43noise and then we can go back which This
  456. 17:45is great because everything, every image
  457. 17:48when it's trained goes to noise plus the
  458. 17:51equation that got it there. Therefore,
  459. 17:53you're just keeping little equations.
  460. 17:56And then everything starts from noise.
  461. 17:59So if you wanted to do a cat that looks
  462. 18:01like Einstein, you would have the noise
  463. 18:04both of them would start from noise and
  464. 18:06you would just kind of develop their
  465. 18:07equation to get next. That's generally
  466. 18:10how those systems work. I'm going to
  467. 18:12hold off on that. You know I do a lot of
  468. 18:15work and have a number of papers on
  469. 18:17visual systems including real-time
  470. 18:19visual systems and and the problems with
  471. 18:22these systems. Um we'll hold off on that
  472. 18:25till next week. So now I'm just going to
  473. 18:28That was my little review. I'm going to
  474. 18:29go right to
  475. 18:32uh the last of large language models
  476. 18:34which is all about prompt engineering.
  477. 18:36So this is the part of course where I
  478. 18:38get you to be a better user of AI. I was
  479. 18:42just explaining AI to you. What I call
  480. 18:44foundation work, but this is now how
  481. 18:47could you be better?
  482. 18:48So first of all, things have shifted
  483. 18:50since 2026. We definitely have multiple
  484. 18:53multi-agent orchestration, this
  485. 18:55iterative and reflective things, and the
  486. 18:58notion of a rag which is again is a way
  487. 19:00to put a very big document in by
  488. 19:02chunking it into pieces and only using
  489. 19:05the meaning pieces that are needed at
  490. 19:08that moment. So that today's two
  491. 19:10activities, I'm calling them activity
  492. 19:12one and two, even though your assignment
  493. 19:16uh sorry, activity two uh sorry,
  494. 19:19assignment two and three, activity one
  495. 19:21and two. Um is how you can shift from
  496. 19:25what we've been talking about, this
  497. 19:27special this specialized assistant, to
  498. 19:29this much more structured human AI way.
  499. 19:32I think everyone should be doing this
  500. 19:34more complex way. It really will put
  501. 19:37humans back in the driver's seat, stop
  502. 19:41the cognitive decline that's happening
  503. 19:43in high schools and other places by
  504. 19:45using AI. So, I'm going to first root
  505. 19:48So,
  506. 19:49um
  507. 19:50as we get into it, I'll just remind you,
  508. 19:52we now know these external apps and we
  509. 19:55know that this this this this agent way
  510. 19:59has risks, but it's moving from advising
  511. 20:02to acting now. Um and we've talked about
  512. 20:04the agentic system again. I know I do a
  513. 20:07lot of review, but we have people at all
  514. 20:09levels in this class, so I'm trying to
  515. 20:11make sure I don't lose people. So, the
  516. 20:13agent system can go out there and it has
  517. 20:15the AI chains, and we talked about the
  518. 20:18real problems, current problems. But we
  519. 20:20know with that, we can put in PDFs and
  520. 20:23URLs and videos now, so this is the
  521. 20:25multimedia side. It isn't just It isn't
  522. 20:28just text anymore. And we can build
  523. 20:31those up and we can do things with them.
  524. 20:33And in activity two, you'll see that
  525. 20:35you're going to now create all this. So,
  526. 20:38um we know that these these models have
  527. 20:42a cutoff date. So, sometimes they have
  528. 20:45to go out on the web to get new
  529. 20:46information or specialized information.
  530. 20:49So, if you run a particular company or
  531. 20:52for your project, you you want to
  532. 20:55uh give it specialized information that
  533. 20:57you're not sure the main model would get
  534. 20:59right, you would use these rags learning
  535. 21:02from documents. I will talk more about
  536. 21:04how in my lab, we're doing very specific
  537. 21:08technique with very advanced rags like
  538. 21:11we have with Mango and others where
  539. 21:13we're we go with domain expertise
  540. 21:16in a field. So if you're domain expert
  541. 21:19of
  542. 21:20stock trading or something like that,
  543. 21:22you could put in a rag that isn't just
  544. 21:24to grab the information, but it's almost
  545. 21:26like you're in there
  546. 21:28helping the AI be
  547. 21:32get stuff that is you. Um
  548. 21:35the context window is only so big. So
  549. 21:38this is where we use the rag and we've
  550. 21:41talked a bit about this. So we now know
  551. 21:44that these systems have persistent
  552. 21:45memory. They know about prior chats and
  553. 21:47docs and user styles. We know that
  554. 21:49they're doing this level of
  555. 21:50orchestration. And with all that, it's
  556. 21:53this web retrieval and self-reflection
  557. 21:56that I want you to start thinking of.
  558. 21:58So we're no longer chatting, we're
  559. 22:00co-orchestrating.
  560. 22:02Reasoning agency,
  561. 22:04multimedia, and the blur of you letting
  562. 22:07your agent do it or you're keeping an
  563. 22:10eye on your agent and you're doing it
  564. 22:11yourself. This assignment is to think
  565. 22:14through these cuz there's real ethical
  566. 22:16issues how you do that.
  567. 22:18Um
  568. 22:19So we've talked about rags before and
  569. 22:22the context window, so I'll just do this
  570. 22:23quickly. Again, a rag is cutting up a
  571. 22:26document into pieces and then and then
  572. 22:29saving it so when you're giving a query,
  573. 22:33it could it could kind of go, "Hey,
  574. 22:37chunks of the document,
  575. 22:39does anyone have something to say about
  576. 22:42this current issue?" And they go, "Oh
  577. 22:43yeah, chunk five, 10, and 100." So then
  578. 22:47it could use those and that's how it
  579. 22:49it's smarter without putting the entire
  580. 22:51document in.
  581. 22:52So let's now go to the activities.
  582. 22:55So for those in the class right at this
  583. 22:57moment, reading it this week, you
  584. 22:59actually have assignment to do in days,
  585. 23:03so you might have done it already, but
  586. 23:05I'll do a quick recap. So, when I get to
  587. 23:07activity two, which is assignment three,
  588. 23:10you'll you'll be ready for it. So, I'm
  589. 23:12going to do this very quickly. So, the
  590. 23:14key is vague in is AI slop out. So, the
  591. 23:17more you can explain things the better.
  592. 23:20My new thing is, if you don't have the
  593. 23:22domain expertise, people with domain
  594. 23:24expertise in an area using Claude or
  595. 23:27ChatGPT really do well. People without
  596. 23:30it don't cuz it if you just give it
  597. 23:32vague stuff, you'll get some really
  598. 23:35basic moving towards the most pop
  599. 23:38culture slop. So, how do we do that with
  600. 23:41persona assignment chain of thought few
  601. 23:43shot? I've talked about this many times.
  602. 23:45I just have it in here to kind of help
  603. 23:48remind you. Persona, you give it a
  604. 23:50specific role identity, it does better
  605. 23:53because of that. Chain of thought is the
  606. 23:55step-by-step system, so you're trying to
  607. 23:58get reasoning. This is the one that
  608. 24:00we're changing in 2026.
  609. 24:02And I, you know, when you could be
  610. 24:04thinking about this for your assignment,
  611. 24:06it's still nice to give it steps and
  612. 24:07explain what you want it to do, but it's
  613. 24:09kind of doing that anyway. So, the
  614. 24:11better one
  615. 24:13with this is to give the model the
  616. 24:15actual document to reason over. So,
  617. 24:18rather than say I want you to do this,
  618. 24:19that, and that, you you actually do a
  619. 24:22document. Now, when you're doing this
  620. 24:23well, what you're really doing is you're
  621. 24:26using AI, you're getting to some new
  622. 24:29idea that you never had before. And you
  623. 24:31stop at that point and you tell the AI
  624. 24:33AI, "Let's summarize this into a nice
  625. 24:37markdown file.
  626. 24:39Uh and I will use that in in, you know,
  627. 24:41when I come back." So, this is the
  628. 24:43notion that you have to start getting
  629. 24:45into. Did something good just happen? I
  630. 24:47should be saving that into a document.
  631. 24:50And I never say just summarize it in the
  632. 24:52middle of a big thread with Claude. I
  633. 24:55always say, "Hey, don't bother with this
  634. 24:58part and that part, but these three
  635. 24:59things we did are really good. And I
  636. 25:01don't I don't want to go back and figure
  637. 25:03out what it all is. You do that for me,
  638. 25:05but I want to see one this, two that,
  639. 25:07this, and write it in a way at this
  640. 25:09level." And I get this amazing document
  641. 25:12that then I could reuse again. And I
  642. 25:14have a lot of those, and I just keep
  643. 25:16doing it. So, that's kind of the
  644. 25:17slightly newer chain of thought.
  645. 25:19Few-shot again is this notion of just
  646. 25:21give it examples. How would you have
  647. 25:24answered the question? What do you want
  648. 25:26to see in example form? This one
  649. 25:29I think works the best out of these
  650. 25:31three. So,
  651. 25:33um
  652. 25:34since models reason on their own, the
  653. 25:36step-by-step thinking is less important.
  654. 25:39It's a little bit better than these
  655. 25:40documents. Long chats get noisy. So,
  656. 25:43this is saying what I already said. Go
  657. 25:46into a long chat, take the best part of
  658. 25:48it, make it a document, maybe go to a
  659. 25:50new AI, and start it all over again.
  660. 25:54Okay. So, um
  661. 25:56and then this the reason is and you can
  662. 25:58spend time reading this again is that
  663. 26:01because the context window gets too big
  664. 26:03and really smart
  665. 26:05documents that you're putting in, it's
  666. 26:07not only seeing everything in the
  667. 26:09document, it's using it by retrieving
  668. 26:12the important thing at the time. This is
  669. 26:14why this is really the best thing to be
  670. 26:16doing.
  671. 26:18Uh you put all those three together, and
  672. 26:20that's your assignment, your
  673. 26:21professional warm department
  674. 26:23coordinating with clear and concise
  675. 26:25messages. Let's think, first do this,
  676. 26:27then that. Here's some examples of what
  677. 26:29I want to see. This is what we expect.
  678. 26:32Um these are the three techniques. I
  679. 26:34call this the specialist. I did that
  680. 26:36quick because I want to move on now. Um
  681. 26:39so, I I did it here, create a 6-week
  682. 26:42physics tutorial, and I have examples of
  683. 26:44both of these. I think I've showed you
  684. 26:46this in class. So, I'm now going to move
  685. 26:48on. So, that's what's due in assignment
  686. 26:51two.
  687. 26:52And I'm calling that activity one
  688. 26:53because this is what I do in workshops
  689. 26:56and sometimes to staff in your very
  690. 26:58schools.
  691. 27:00Surely for business and
  692. 27:03other other schools. So again, as we now
  693. 27:06move on, so that's what you're still
  694. 27:08doing
  695. 27:09assignment two,
  696. 27:11just do that and don't get confused
  697. 27:13about these next things. This is for
  698. 27:15assignment three, but this is how I like
  699. 27:16everyone to think and when I do
  700. 27:18workshops for those workshops I do for
  701. 27:21the vice president research
  702. 27:24to to this to people in the school. So
  703. 27:27that we could be the best school in AI,
  704. 27:30blah blah blah. So old thinking, AI
  705. 27:33write me a report, accept whatever I
  706. 27:35give you, you know, I'll accept whatever
  707. 27:37it is, one prompt, one output. No, no,
  708. 27:39no. Now you're the conductor, AI is the
  709. 27:42orchestra. Imagine you're in front of a
  710. 27:45lot of AIs and you can say, "Hey, the
  711. 27:47violin section, I want you to summarize
  712. 27:49this this section. I want you to see
  713. 27:51what they did and, you know, do the
  714. 27:54octave above it or, you know, do it." So
  715. 27:57AI help me with research X. Now
  716. 27:59critique it.
  717. 28:01Now double-check a specific
  718. 28:03claim. So let's look at this in detail.
  719. 28:06Um so it's directing a collaboration. So
  720. 28:10in one, you just gave it a role and
  721. 28:12examples. You still can use the
  722. 28:14techniques of of the specialist
  723. 28:18technique that was in assignment two for
  724. 28:20this new one, but now you're going to be
  725. 28:22using this human AI collaboration. I
  726. 28:25call it human in the loop. There's
  727. 28:27several ways to do that. I like to be
  728. 28:29creative, so I don't always like to be
  729. 28:31locked into one way. It turns out my
  730. 28:34colleagues in Denmark and I
  731. 28:37um are using this FURK method. So I've
  732. 28:40decided this is the best one where
  733. 28:42you're framing the problem.
  734. 28:44You're then exploring ideas of it.
  735. 28:46You're fighting it. You're commit. So,
  736. 28:48you go through these stages one by one
  737. 28:50and you don't just get a direct answer.
  738. 28:53It's human in a loop. It's now
  739. 28:55systematic as a way to you work through
  740. 28:57it. So, fur comes from the hybrid
  741. 28:59intelligence research project. If you
  742. 29:01want to see more of it, they have a lot
  743. 29:02there. We're trying to do some user
  744. 29:04studies
  745. 29:06um and you can always read our paper on
  746. 29:07it as well. So, frame
  747. 29:10explore, find, commit. Frame is
  748. 29:12articulate the content. You know, it's
  749. 29:13usually saying get me
  750. 29:17get me five papers on the thing I care
  751. 29:19about and maybe tell me the most
  752. 29:22important things about them. Maybe get
  753. 29:24me, you know, five
  754. 29:27um
  755. 29:29uh quarterly reports on chip
  756. 29:32manufacturers cuz I'm thinking of maybe
  757. 29:34seeing where chip manufacturing is
  758. 29:37going. Get me the Nvidia one and the and
  759. 29:39the this one and that one. And read all
  760. 29:42the papers or the and
  761. 29:44and maybe uh see where they agree and
  762. 29:46where they disagree disagree and give me
  763. 29:48that. Uh so, you're exploring with that.
  764. 29:52Where I will not give you credit and um
  765. 29:55if you do nothing but do these things
  766. 29:57and never make human decisions in
  767. 29:59between them. So, the whole point of
  768. 30:01this, whether you're in the class or
  769. 30:02not, is to say, "Oh, I just You just
  770. 30:05gave me the five top things that I was
  771. 30:07looking for. I just read them
  772. 30:10uh in summary form and I don't like I
  773. 30:13never thought about four. Like and I
  774. 30:15don't think much of two. So, let's never
  775. 30:17talk about two again and four is
  776. 30:19amazing. Maybe I'll just Maybe we just
  777. 30:22do the whole assignment over again based
  778. 30:24on four. Why don't you get me four
  779. 30:25papers just on what we learned in point
  780. 30:28four and then they're going to come back
  781. 30:29again.
  782. 30:30Uh or I like four and two and three. I'm
  783. 30:33just going to use those and there seems
  784. 30:35to be this really interesting thing.
  785. 30:37Let's go back and [clears throat] you
  786. 30:38just keep refining and at some point
  787. 30:41when you think close, you do the stress
  788. 30:44test revising. So one of them things is
  789. 30:46you are hot you what I suggest at times
  790. 30:50is you take when you're close, you
  791. 30:52either go to a completely different
  792. 30:56large language model so it knows nothing
  793. 30:57about the past.
  794. 30:58>> [clears throat]
  795. 30:59>> And you say you're an expert in this
  796. 31:00space and you can use the old techniques
  797. 31:02to do that. Here's a document I'm
  798. 31:04writing critique it. What's wrong with
  799. 31:06it? What's good about it? So this is the
  800. 31:08stepwise you do. So in a way you have a
  801. 31:12co-creative assistant not an oracle
  802. 31:14anymore. And the assistant should you
  803. 31:16should use it for what it does best.
  804. 31:18What it does best is it goes out and
  805. 31:20gets information. Tell me about this new
  806. 31:22thing that Apple did. Look you know and
  807. 31:25and so and so and so and so. Okay, but I
  808. 31:27think I I want to think about how I
  809. 31:30would do it. So you never ask it to
  810. 31:32deliver your first draft. You never use
  811. 31:35AI as a complete knowledge expert so
  812. 31:37that you're not uh
  813. 31:39have some kind of expertise in this is
  814. 31:42assignment. I'm going to give you one
  815. 31:44that you do first. Then I'm going to ask
  816. 31:46you to do one in your space.
  817. 31:48You know that could be the school you're
  818. 31:49in or some kind of expertise you have,
  819. 31:52but it's always better that uh use work
  820. 31:54as a human, you know, for human
  821. 31:57authorship. It's about you. Uh break the
  822. 31:59interaction loop at any time. The small
  823. 32:02pieces and where you're making
  824. 32:04decisions.
  825. 32:06Okay. So I'm actually going to give you
  826. 32:08a entire worksheet to do this on your
  827. 32:11own. So this is a little complicated.
  828. 32:14The worksheet I've color coded and I'm
  829. 32:16going to get it's going to be really
  830. 32:17easy cuz you just I'm just giving you a
  831. 32:20problem and the exact things to say and
  832. 32:22you just drop them into frame and then
  833. 32:25explore and then refine and then commit.
  834. 32:28Once you do that once, then I'm going to
  835. 32:30say do it for yourself. So look through
  836. 32:33the handout. Um um
  837. 32:35and I did this particular goal of of
  838. 32:38give me a one-page brief on Canadian
  839. 32:40post-secondary education. I'm going to
  840. 32:42give you three
  841. 32:44We're going to give the system three
  842. 32:45sources.
  843. 32:46And then you're going to see how you go
  844. 32:48through it. Now, I actually have those
  845. 32:50sources up on
  846. 32:52um
  847. 32:54Canvas files Ferk. So, all that's in the
  848. 32:57assignment instructions right now. This
  849. 32:59is I'm talking about the high-level
  850. 33:01stuff. And then you're going to fill
  851. 33:02that all out in this table.
  852. 33:05So, you're going to do it once
  853. 33:07with me showing you every step, still
  854. 33:09with some things to think about. I don't
  855. 33:11need that handed in. I only need once
  856. 33:14you learn all these things to do it on
  857. 33:16your own. And you could decide I want to
  858. 33:19do the stress test or the framing a
  859. 33:20different ways. You really have to think
  860. 33:22about how it makes sense for you. Okay,
  861. 33:25so that that handout is there. Um
  862. 33:28You're then going to try it on your own.
  863. 33:32Um you can use any I bring up Copilot
  864. 33:34here, but you can use any system that
  865. 33:37you want to do to do it. And um I have
  866. 33:39more information here. I don't need to
  867. 33:41go through all this. You know, but with
  868. 33:43framing, you can see it's it's
  869. 33:46a frame, explore. This is where you do a
  870. 33:49stress test and think about drafts.
  871. 33:51You're starting to now
  872. 33:53uh um
  873. 33:54refine.
  874. 33:55Uh
  875. 33:56and then commit. Um sorry, I have this
  876. 33:58backwards. So, refine is a good place
  877. 34:00for the hostile critic or what what
  878. 34:03assumptions did I leave out? Um
  879. 34:06So, you can go Oh, actually, I just had
  880. 34:07commit twice. Okay, so that's what you
  881. 34:10need to do. Um if you want,
  882. 34:13um almost for extra credit, is the way
  883. 34:15I'm doing it, you might add other
  884. 34:17things. You might decide somewhere I
  885. 34:18don't like your voice. We're getting
  886. 34:20places, but I don't like the voice.
  887. 34:22Change the voice. And at some point, you
  888. 34:24might decide to go back to framing when
  889. 34:26you change the voice. So, and then I
  890. 34:28really like the hostile critic. The
  891. 34:30dumbest hostile critic would say be a
  892. 34:32hostile critic. How would it know what
  893. 34:34to do? So, the people who do this the
  894. 34:36best I'm sorry about that. I just
  895. 34:37knocked out ourselves out. Let me just
  896. 34:40go back in again.
  897. 34:42The people who do this the best
  898. 34:45Uh
  899. 34:46I have lost control here. Give me a
  900. 34:48second.
  901. 34:51Ah,
  902. 34:52jumped out again.
  903. 34:54Cuz it's the last frame.
  904. 34:58The people who do the hostile critic the
  905. 34:59best
  906. 35:01um
  907. 35:03actually spend time writing a hostile
  908. 35:05critic. I will show you this in the
  909. 35:06class, but I was just writing a grant
  910. 35:09with somebody in the UK and they had
  911. 35:11four hostile critics on our work. None
  912. 35:15of them were telling us None of them
  913. 35:17were changing it and doing it for us.
  914. 35:19They were just informing us, "Hey, your
  915. 35:22EDI section is weak and this part needs
  916. 35:26to be better." Why does she Why does she
  917. 35:28have four? Well, one looks at the many
  918. 35:32pages of how the grant needs to be done
  919. 35:34with this and that. So, it's a great
  920. 35:36hostile critic saying you didn't follow
  921. 35:38the rules of the grant. She's got
  922. 35:40another one which is, "I've been on
  923. 35:42committees for so long, I know what the
  924. 35:45UK wants to see or not." A different
  925. 35:47hostile critic. Another one is, "I've
  926. 35:49taken all my old grants and the way I
  927. 35:52talk and I want it to look like that."
  928. 35:55So, you can imagine if you're really
  929. 35:57good at this, you will build up your
  930. 35:59hostile critics um
  931. 36:01to be you. They're They're a version of
  932. 36:03you that's smart enough to know what you
  933. 36:05want to see and what you don't. So, this
  934. 36:07is what we're uh asking for within
  935. 36:11assignment three. More so, this is this
  936. 36:14FURCS system is a a much better way to
  937. 36:19work uh
  938. 36:20in the future. So, remember we're we're
  939. 36:23down we're back to these two things. I
  940. 36:26gave you the this the first assignment I
  941. 36:29tend to call it the specialist which
  942. 36:31still is 90% better than almost everyone
  943. 36:34out there. And then we then move out
  944. 36:38from that to this new way of
  945. 36:40orchestrating. Most people are not doing
  946. 36:42this orchestration. It doesn't even have
  947. 36:44a good name whether it's called human in
  948. 36:47the loop or furc or or cognitive
  949. 36:49conducting. We've built it into our AI
  950. 36:51system and we're we're using it in a bit
  951. 36:55that way. And I'll talk more about it
  952. 36:57later and live coding. So this gets you
  953. 37:00on your way to finish your assignment
  954. 37:02two if you have it but also
  955. 37:05moving on to your assignment three.
  956. 37:07Please do not add all these assignment
  957. 37:10three
  958. 37:11ideas in assignment two. Just be good
  959. 37:13with assignment two
  960. 37:15understanding this. In fact, we still
  961. 37:17can use this locally in assignment
  962. 37:19three. And then wait till you do
  963. 37:21assignment three to learn this better
  964. 37:23way. This again this is the 90% great
  965. 37:26way of doing it. A lot of times this is
  966. 37:28what you have time for but when you're
  967. 37:30doing heavy duty research you really
  968. 37:32want to move to our our furc and human
  969. 37:35in the loop method.
  970. 37:37Thanks, Steve DePalma.

About this transcript

This page contains the full transcript of wk06 2 PromptEng iat111 by ivizlab, generated from the public captions YouTube serves with the video. The transcript has 6,511 words across 970 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.