YouTube2Text

How I use LLMs — Transcript

by Andrej Karpathy · 25,287 words · 3,475 segments · language en · Watch on YouTube

Full transcript

  1. 0:00hi everyone so in this video I would
  2. 0:02like to continue our general audience
  3. 0:03series on large language models like
  4. 0:07chpd now in the previous video deep dive
  5. 0:09into llms that you can find on my
  6. 0:11YouTube we went into a lot of the
  7. 0:12underhood fundamentals of how these
  8. 0:14models are trained and how you should
  9. 0:16think about their cognition or
  10. 0:18psychology now in this video I want to
  11. 0:21go into more practical applications of
  12. 0:23these tools I want to show you lots of
  13. 0:24examples I want to take you through all
  14. 0:26the different settings that are
  15. 0:27available and I want to show you how I
  16. 0:29use these tools and how you can also use
  17. 0:31them uh in your own life and work so
  18. 0:34let's dive in okay so first of all the
  19. 0:36web page that I have pulled up here is
  20. 0:38chp.com now as you might know chpt it
  21. 0:41was developed by openai and deployed in
  22. 0:442022 so this was the first time that
  23. 0:46people could actually just kind of like
  24. 0:48talk to a large language model through a
  25. 0:50text interface and this went viral and
  26. 0:52over all over the place on the internet
  27. 0:54and uh this was huge now since then
  28. 0:56though the ecosystem has grown a lot so
  29. 0:58I'm going to be showing you a lot of
  30. 1:00examples of Chachi PT specifically but
  31. 1:02now in
  32. 1:042025 uh there's many other apps that are
  33. 1:06kind of like Chachi PT like and this is
  34. 1:08now a much bigger and richer ecosystem
  35. 1:11so in particular I think Chachi PT by
  36. 1:13openai is this Original Gangster
  37. 1:15incumbent it's most popular and most
  38. 1:17featur rich also because it's been
  39. 1:19around the longest but there are many
  40. 1:21other kind of clones available I would
  41. 1:23say I don't think it's too unfair to say
  42. 1:25but in some cases there are kind of like
  43. 1:27unique experiences that are not found in
  44. 1:29chashi p and we're going to see examples
  45. 1:30of
  46. 1:31those so for example big Tech has
  47. 1:34followed with a lot of uh kind of chat
  48. 1:36GPT like experiences so for example
  49. 1:38Gemini met and co-pilot from Google meta
  50. 1:41and Microsoft respectively and there's
  51. 1:42also a number of startups so for example
  52. 1:44anthropic uh has Claud which is kind of
  53. 1:47like a chasht equivalent xai which is
  54. 1:49elon's company has Gro uh and there's
  55. 1:52many others so all of these here are
  56. 1:55from the United States um companies
  57. 1:58basically deep seek is a Chinese company
  58. 2:00and lchat is a French company
  59. 2:03Mistral now where can you find these and
  60. 2:05how can you keep track of them well
  61. 2:06number one on the internet somewhere but
  62. 2:08there are some leaderboards and in the
  63. 2:10previous video I've shown you uh chatbot
  64. 2:11arena is one of them so here you can
  65. 2:14come to some ranking of different models
  66. 2:16and you can see sort of their strength
  67. 2:18or ELO score and so this is one place
  68. 2:20where you can keep track of them I would
  69. 2:22say like another place maybe is this um
  70. 2:25seal Le leaderboard from scale and so
  71. 2:28here you can also see different kinds of
  72. 2:29eval
  73. 2:30and different kinds of models and how
  74. 2:32well they rank and you can also come
  75. 2:34here to see which models are currently
  76. 2:36performing the best on a wide variety of
  77. 2:39tasks so understand that the ecosystem
  78. 2:42is fairly rich but for now I'm going to
  79. 2:44start with open AI because it is the
  80. 2:45incumbent and is most feature Rich but
  81. 2:48I'm going to show you others over time
  82. 2:49as well so let's start with chachy PT
  83. 2:51what is this text box text box and what
  84. 2:53do we put in here okay so the most basic
  85. 2:55form of interaction with the language
  86. 2:57model is that we give it text and then
  87. 2:59we get some typ text back in response so
  88. 3:01as an example we can ask to get a ha cou
  89. 3:04about what it's like to be a large
  90. 3:05language model so uh this is a good kind
  91. 3:08of example askas for a language model
  92. 3:10because these models are really good at
  93. 3:12writing so writing haikus or poems or
  94. 3:15cover letters or resumés or email
  95. 3:18replies they're just good at writing so
  96. 3:21when we ask for something like this what
  97. 3:22happens looks as follows the model
  98. 3:24basically responds um words flow like a
  99. 3:27stream endless Echo never mind ghost of
  100. 3:30thought
  101. 3:31unseen okay it's pretty dramatic but
  102. 3:34what we're seeing here in chashi PT is
  103. 3:36something that looks a bit like a
  104. 3:37conversation that you would have with a
  105. 3:38friend these are kind of like chat
  106. 3:40bubbles now we saw in the previous video
  107. 3:43is that what's going on under the hood
  108. 3:44here is that this is what we call a user
  109. 3:47query this piece of text and this piece
  110. 3:50of text and also the response from the
  111. 3:52model this piece of text is chopped up
  112. 3:55into little text chunks that we call
  113. 3:57tokens so these this sequence of text is
  114. 4:01under the hood a token sequence
  115. 4:03onedimensional token sequence now the
  116. 4:05way we can see those tokens is we can
  117. 4:06use an app like for example Tik
  118. 4:07tokenizer so making sure that GPT 40 is
  119. 4:10selected I can paste my text here and
  120. 4:13this is actually what the model sees
  121. 4:14Under the Hood my piece of text to the
  122. 4:17model looks like a sequence of exactly
  123. 4:1915 tokens and these are the little text
  124. 4:22chunks that the model
  125. 4:24sees now there's a vocabulary here of
  126. 4:27200,000 roughly of possible tokens and
  127. 4:31then these are the token IDs
  128. 4:33corresponding to all these little text
  129. 4:34chunks that are part of my query and you
  130. 4:36can play with this and update and you
  131. 4:38can see that for example this is Skate
  132. 4:39sensitive you would get different tokens
  133. 4:41and you can kind of edit it and see live
  134. 4:43how the token sequence changes so our
  135. 4:45query was 15 tokens and then the model
  136. 4:48response is right here and it responded
  137. 4:51back to us with a sequence of exactly 19
  138. 4:54tokens so that Hau is this sequence of
  139. 4:5719
  140. 4:58tokens now
  141. 5:00so we said 15 tokens and it said 19
  142. 5:02tokens back now because this is a
  143. 5:05conversation and we want to actually
  144. 5:07maintain a lot of the metadata that
  145. 5:08actually makes up a conversation object
  146. 5:10this is not all that's going on under
  147. 5:12under the hood and we saw in the
  148. 5:14previous video a little bit about the um
  149. 5:15conversation format um so it gets a
  150. 5:18little bit more complicated in that we
  151. 5:20have to take our user query and we have
  152. 5:22to actually use this a chat format so
  153. 5:25let me delete the system message I don't
  154. 5:26think it's very important for the
  155. 5:27purposes of understanding what's going
  156. 5:29on let me paste my message as the user
  157. 5:32and then let me paste the model response
  158. 5:34as an assistant and then let me crop it
  159. 5:37here properly the tool doesn't do that
  160. 5:40properly so here we have it as it
  161. 5:44actually happens under the hood there
  162. 5:47are all these special tokens that
  163. 5:48basically begin a message from the user
  164. 5:51and then the user says and this is the
  165. 5:53content of what we said and then the
  166. 5:55user ends and then the assistant begins
  167. 5:58and says this Etc now the precise
  168. 6:01details of the conversation format are
  169. 6:03not important what I want to get across
  170. 6:05here is that what looks to you and I as
  171. 6:07little chat bubbles going back and forth
  172. 6:09under the hood we are collaborating with
  173. 6:11the model and we're both writing into a
  174. 6:15token
  175. 6:16stream and these two bubbles back and
  176. 6:19forth were in sequence of exactly 42
  177. 6:22tokens under the hood I contributed some
  178. 6:25of the first tokens and then the model
  179. 6:26continued the sequence of tokens with
  180. 6:28its response
  181. 6:30and we could alternate and continue
  182. 6:32adding tokens here and together we're
  183. 6:34are building out a token window a
  184. 6:36onedimensional tokens onedimensional
  185. 6:37sequence of tokens okay so let's come
  186. 6:40back to chpt now what we are seeing here
  187. 6:43is kind of like little bubbles going
  188. 6:44back and forth between us and the model
  189. 6:46under the hood we are building out a
  190. 6:48one-dimensional token sequence when I
  191. 6:50click new chat here that wipes the token
  192. 6:54window that resets the tokens to
  193. 6:56basically zero again and restarts the
  194. 6:59conversation from scratch now the
  195. 7:01cartoon diagram that I have in my mind
  196. 7:02when I'm speaking to a model looks
  197. 7:04something like this when we click new
  198. 7:07chat we begin a token sequence so this
  199. 7:10is a onedimensional sequence of tokens
  200. 7:13the user we can write tokens into this
  201. 7:16stream and then when we hit enter we
  202. 7:18transfer control over to the language
  203. 7:21model and the language model responds
  204. 7:23with its own token streams and then the
  205. 7:25language to model has a special token
  206. 7:28that basically says something along the
  207. 7:29lines of I'm done so when it emits that
  208. 7:32token the chat GPT application transfers
  209. 7:34control back to us and we can take turns
  210. 7:37together we are building out the token
  211. 7:39the token stream which we also call the
  212. 7:41context window so the context window is
  213. 7:44kind of like this working memory of
  214. 7:46tokens and anything that is inside this
  215. 7:49context window is kind of like in the
  216. 7:50working memory of this conversation and
  217. 7:52is very directly accessible by the
  218. 7:55model now what is this entity here that
  219. 7:58we are talking to and how should we
  220. 7:59think about it well this language model
  221. 8:02here we saw that the way it is trained
  222. 8:05in the previous video we saw there are
  223. 8:06two major stages the pre-training stage
  224. 8:09and the post-training stage the
  225. 8:11pre-training stage is kind of like
  226. 8:13taking all of Internet chopping it up
  227. 8:16into tokens and then compressing it into
  228. 8:19a single kind of like zip file but the
  229. 8:22zip file is not exact the zip file is
  230. 8:24lossy and probabilistic zip file because
  231. 8:27we can't possibly represent all of
  232. 8:28internet in just one one sort of like
  233. 8:30say terabyte of uh of zip file um
  234. 8:35because there's just way too much
  235. 8:36information so we just kind of get the
  236. 8:37gal or The Vibes inside this um zip
  237. 8:42file now what actually inside the zip
  238. 8:46file are the parameters of a neural
  239. 8:48network and so for example a one tbte
  240. 8:51zip file would correspond to roughly say
  241. 8:53one trillion parameters inside this
  242. 8:56neural
  243. 8:57network and when this neural network is
  244. 8:59trying to to do is it's trying to
  245. 9:00basically take tokens and it's trying to
  246. 9:03predict the next token in a sequence but
  247. 9:05it's doing that on internet documents so
  248. 9:07it's kind of like this internet document
  249. 9:09generator right um and in the process of
  250. 9:13predicting the next token on a sequence
  251. 9:14on internet the neural network gains a
  252. 9:18huge amount of knowledge about the world
  253. 9:20and this knowledge is all represented
  254. 9:22and stuffed and compressed inside the
  255. 9:25one trillion parameters roughly of this
  256. 9:27language model now this pre-training
  257. 9:30stage also we saw is fairly costly so
  258. 9:32this can be many tens of millions of
  259. 9:33dollars say like three months of
  260. 9:35training and so on um so this is a
  261. 9:38costly long phase for that reason this
  262. 9:41phase is not done that often so for
  263. 9:44example gbt 40 uh this model was
  264. 9:46pre-trained uh
  265. 9:48probably many months ago maybe like even
  266. 9:50a year ago by now and so that's why
  267. 9:52these models are a little bit out of
  268. 9:54date they have what's called a knowledge
  269. 9:56cutof because that knowledge cut off
  270. 9:58corresponds to when the model was
  271. 10:00pre-trained and its knowledge only goes
  272. 10:02up to that point
  273. 10:06now some knowledge can come into the
  274. 10:09model through the post-training fa phase
  275. 10:11which we'll talk about in a second but
  276. 10:12roughly speaking you should think of
  277. 10:14these uh models is kind of like a little
  278. 10:16bit out of date because pre- training is
  279. 10:17way too expensive and happens
  280. 10:20infrequently so any kind of recent
  281. 10:22information like if you wanted to talk
  282. 10:24to your model about something that
  283. 10:25happened last week or so on we're going
  284. 10:27to need other ways of providing that
  285. 10:28information to the model model because
  286. 10:30it's not stored in the knowledge of the
  287. 10:31model so we're going to have various
  288. 10:33tool use to give that information to the
  289. 10:36model now after pre-training there's a
  290. 10:39second stage goes post-training and
  291. 10:41post-training Stage is really attaching
  292. 10:43a smiley face to this ZIP file because
  293. 10:45we don't want to generate internet
  294. 10:47documents we want this thing to take on
  295. 10:50the Persona of an assistant that
  296. 10:52responds to user queries and that's done
  297. 10:55in a process of post training where we
  298. 10:57swap out the data set for a data set of
  299. 10:59conversations that are built out by
  300. 11:01humans so this is basically where the
  301. 11:03model takes on this Persona and that
  302. 11:05actually so that we can like ask
  303. 11:07questions and it responds with answers
  304. 11:09so it takes on the style of the of an
  305. 11:12assistant that's post trainining but it
  306. 11:15has the knowledge of all of internet and
  307. 11:18that's by
  308. 11:20pre-training so these two are combined
  309. 11:22in this
  310. 11:23artifact um now the important thing to
  311. 11:26understand here I think for this section
  312. 11:28is that what you are talking to to is a
  313. 11:30fully self-contained entity by default
  314. 11:33this language model think of it as a one
  315. 11:35tbte file on a dis secretly that
  316. 11:38represents one trillion parameters and
  317. 11:40their precise settings inside the neural
  318. 11:41network that's trying to give you the
  319. 11:43next token in the
  320. 11:44sequence but this is the fully
  321. 11:46selfcontained entity there's no
  322. 11:48calculator there's no computer and
  323. 11:50python interpreter there's no worldwide
  324. 11:52web browsing there's none of that
  325. 11:54there's no tool use yet in what we've
  326. 11:56talked about so far you're talking to a
  327. 11:58zip file if you stream tokens to it it
  328. 12:00will respond with tokens back and this
  329. 12:03ZIP file has the knowledge from
  330. 12:05pre-training and it has the style and
  331. 12:07form from posttraining
  332. 12:10and uh so that's roughly how you can
  333. 12:12think about this entity okay so if I had
  334. 12:15to summarize what we talked about so far
  335. 12:17I would probably do it in the form of an
  336. 12:18introduction of Chach PT in a way that I
  337. 12:20think you should think about it so the
  338. 12:22introduction would be hi I'm Chach PT I
  339. 12:25am a one tab zip file my knowledge comes
  340. 12:28from the internet which I read in its
  341. 12:30entirety about six months ago and I only
  342. 12:33remember vaguely okay and my winning
  343. 12:36personality was programmed by example by
  344. 12:39human labelers at open AI so the
  345. 12:41personality is programmed in
  346. 12:43post-training and the knowledge comes
  347. 12:46from compressing the internet during
  348. 12:48pre-training and this knowledge is a
  349. 12:50little bit out of date and it's a
  350. 12:52probabilistic and slightly vague some of
  351. 12:54the things that uh probably are
  352. 12:56mentioned very frequently on the
  353. 12:57internet I will have a lot better better
  354. 12:59recollection of than some of the things
  355. 13:01that are discussed very rarely very
  356. 13:03similar to what you might expect with a
  357. 13:05human so let's not talk about some of
  358. 13:07the repercussions of this entity and how
  359. 13:10we can talk to it and what kinds of
  360. 13:11things we can expect from it now I'd
  361. 13:13like to use real examples when we
  362. 13:14actually go through this so for example
  363. 13:16this morning I asked Chachi the
  364. 13:17following how much caffeine is in one
  365. 13:19shot of Americana and I was curious
  366. 13:21because I was comparing it to matcha now
  367. 13:24chashi PT will tell me that this is
  368. 13:25roughly 63 Mig of caffeine or so now the
  369. 13:28reason I'm asking chash HPT this
  370. 13:29question that I think this is okay is
  371. 13:31number one I'm not asking about any
  372. 13:33knowledge that is very recent so I do
  373. 13:36expect that the model has sort of read
  374. 13:38about how much caffeine there is in one
  375. 13:40shot this I don't think this information
  376. 13:42has changed too much and number two I
  377. 13:44think this information is extremely
  378. 13:45frequent on the internet this kind of a
  379. 13:47question and this kind of information
  380. 13:48has occurred all over the place on the
  381. 13:50internet and because there was so many
  382. 13:52mentions of it I expect a model to have
  383. 13:54good memory of it in its knowledge so
  384. 13:56there's no tool use and the model the
  385. 13:58zip file responded that there's roughly
  386. 14:0063 Mig now I'm not guaranteed that this
  387. 14:04is the correct answer uh this is just
  388. 14:06its vague recollection of the internet
  389. 14:09but I can go to primary sources and
  390. 14:11maybe I can look up okay uh caffeine and
  391. 14:14uh Americano and I could verify that
  392. 14:16yeah it looks to be about 63 is roughly
  393. 14:18right and you can look at primary
  394. 14:20sources to decide if this is true or not
  395. 14:22so I'm not strictly speaking guaranteed
  396. 14:24that this is true but I think probably
  397. 14:25this is the kind of thing that chpt
  398. 14:27would know here's an example of a
  399. 14:29conversation I had two days ago actually
  400. 14:31um and there's another example of a
  401. 14:33knowledge based conversation and things
  402. 14:35that I'm comfortable asking of Chach PT
  403. 14:36with some caveats so I'm a bit sick I
  404. 14:39have runny nose and I want to get meds
  405. 14:41that help with that so it told me a
  406. 14:43bunch of stuff um and um I want my nose
  407. 14:47to not be runny so I gave it a
  408. 14:49clarification based on what it said and
  409. 14:51then it kind of gave me some of the
  410. 14:52things that might be helpful with that
  411. 14:54and then I looked at some of the meds
  412. 14:55that I have at home and I said does
  413. 14:57daycool or night call work
  414. 14:59and it went off and it kind of like went
  415. 15:01over the ingredients of Dil and NYL and
  416. 15:04whether or not they um helped mitigate
  417. 15:06Ronnie nose now when these ingredients
  418. 15:10are coming here again remember we are
  419. 15:11talking to a zip file that has a
  420. 15:12recollection of the internet I'm not
  421. 15:14guaranteed that these ingredients are
  422. 15:16correct and in fact I actually took out
  423. 15:18the box and I looked at the ingredients
  424. 15:19and I made sure that NY ingredients are
  425. 15:22exactly these ingredients um and I'm
  426. 15:25doing that because I don't always fully
  427. 15:26trust what's coming out here right this
  428. 15:28is just a probabilistic statistical
  429. 15:30recollection of the internet but that
  430. 15:33said conversations of DayQuil and NyQuil
  431. 15:35these are very common meds uh probably
  432. 15:37there's tons of information about a lot
  433. 15:39of this on the internet and this is the
  434. 15:41kind of things that the model have
  435. 15:43pretty good uh recollection of so
  436. 15:45actually these were all correct and then
  437. 15:47I said okay well I have nyel um how far
  438. 15:50how fast would it act roughly and it
  439. 15:52kind of tells
  440. 15:53me and then is a basically a tal and
  441. 15:56says yes so this is a good example of
  442. 15:58how chipt was useful to me it is a
  443. 16:01knowledge based query this knowledge uh
  444. 16:03sort of isn't recent knowledge U this is
  445. 16:05all coming from the knowledge of the
  446. 16:07model I think this is common information
  447. 16:09this is not a high stakes situation I'm
  448. 16:11checking Chach PT a little bit uh but
  449. 16:14also this is not a high Stak situation
  450. 16:15so no big deal so I popped an iol and
  451. 16:17indeed it helped um but that's roughly
  452. 16:20how I'm thinking about what's going back
  453. 16:22here okay so at this point I want to
  454. 16:23make two notes the first note I want to
  455. 16:26make is that naturally as you interact
  456. 16:28with these models you'll see that your
  457. 16:29conversations are growing longer right
  458. 16:32anytime you are switching topic I
  459. 16:34encourage you to always start a new chat
  460. 16:38when you start a new chat as we talked
  461. 16:39about you are wiping the context window
  462. 16:42of tokens and resetting it back to zero
  463. 16:44if it is the case that those tokens are
  464. 16:46not any more useful to your next query I
  465. 16:48encourage you to do this because these
  466. 16:50tokens in this window are expensive and
  467. 16:53they're expensive in kind of like two
  468. 16:55ways number one if you have lots of
  469. 16:57tokens here then the model can actually
  470. 17:00find it a little bit distracting uh so
  471. 17:02if this was a lot of tokens um the model
  472. 17:05might this is kind of like the working
  473. 17:06memory of the model the model might be
  474. 17:08distracted by all the tokens in the in
  475. 17:10the past when it is trying to sample
  476. 17:12tokens much later on so it could be
  477. 17:15distracting and it could actually
  478. 17:16decrease the accuracy of of the model
  479. 17:17and of its performance and number two
  480. 17:20the more tokens are in the window uh the
  481. 17:22more expensive it is by a little bit not
  482. 17:24by too much but by a little bit to
  483. 17:26sample the next token in the sequence so
  484. 17:28your model is actually slightly slowing
  485. 17:30down it's becoming more expensive to
  486. 17:32calculate the next token and uh the more
  487. 17:34tokens there are
  488. 17:36here and so think of the tokens in the
  489. 17:39context window as a precious resource um
  490. 17:42think of that as the working memory of
  491. 17:44the model and don't overload it with
  492. 17:46irrelevant information and keep it as
  493. 17:48short as you can and you can expect that
  494. 17:51to work faster and slightly better of
  495. 17:53course if the if the information
  496. 17:54actually is related to your task you may
  497. 17:56want to keep it in there but I encourage
  498. 17:58you to as often as as you can um
  499. 18:00basically start a new chat whenever you
  500. 18:02are switching topic the second thing is
  501. 18:04that I always encourage you to keep in
  502. 18:06mind what model you are actually using
  503. 18:08so here in the top left we can drop down
  504. 18:10and we can see that we are currently
  505. 18:11using GPT 40 now there are many
  506. 18:14different models of many different
  507. 18:16flavors and there are too many actually
  508. 18:18but we'll go through some of these over
  509. 18:19time so we are using GPT 40 right now
  510. 18:22and in everything that I've shown you
  511. 18:23this is GPD 40 now when I open a new
  512. 18:26incognito window so if I go to chat
  513. 18:29gt.com and I'm not logged in the model
  514. 18:32that I'm talking to here so if I just
  515. 18:34say hello uh the model that I'm talking
  516. 18:36to here might not be GPT 40 it might be
  517. 18:38a smaller version uh now unfortunately
  518. 18:40opening ey does not tell me when I'm not
  519. 18:42logged in what model I'm using which is
  520. 18:44kind of unfortunate but it's possible
  521. 18:46that you are using a smaller kind of
  522. 18:48Dumber model so if we go to the chipt
  523. 18:51pricing page
  524. 18:52here we see that they have three basic
  525. 18:54tiers for individuals the free plus and
  526. 18:57pro and in the free tier you have access
  527. 19:01to what's called GPT 40 mini and this is
  528. 19:03a smaller version of GPT 40 it is
  529. 19:06smaller model with a smaller number of
  530. 19:08parameters it's not going to be as
  531. 19:10creative like it's writing might not be
  532. 19:11as good its knowledge is not going to be
  533. 19:13as good it's going to probably
  534. 19:15hallucinate a bit more Etc uh but it is
  535. 19:18kind of like the free offering the free
  536. 19:19tier they do say that you have limited
  537. 19:21access to 40 and3 mini but I'm not
  538. 19:23actually 100% sure like it didn't tell
  539. 19:25us which model we were using so we just
  540. 19:27fundamentally don't know
  541. 19:29now when you pay for $20 per month even
  542. 19:32though it doesn't say this I I think
  543. 19:34basically like they're screwing up on
  544. 19:36how they're describing this but if you
  545. 19:37go to fine print limits apply we can see
  546. 19:40that the plus users get 80 messages
  547. 19:43every 3 hours for GPT 40 so that's the
  548. 19:47flagship biggest model that's currently
  549. 19:49available as of today um that's
  550. 19:52available and that's what we want to be
  551. 19:53using so if you pay $20 per month you
  552. 19:55have that with some limits and then if
  553. 19:57you pay for2 $100 per month you get the
  554. 19:59pro and there's a bunch of additional
  555. 20:01goodies as well as unlimited GPD foro
  556. 20:04and we're going to go into some of this
  557. 20:05because I do pay for pro
  558. 20:07subscription now the whole takeaway I
  559. 20:10want you to get from this is be mindful
  560. 20:12of the models that you're using
  561. 20:13typically with these companies the
  562. 20:14bigger models are more expensive to uh
  563. 20:17calculate and so therefore uh the
  564. 20:20companies charge more for the bigger
  565. 20:21models and so make those tradeoffs for
  566. 20:24yourself depending on your usage of llms
  567. 20:27um have a look at you can get away with
  568. 20:29the cheaper offerings and if the
  569. 20:30intelligence is not good enough for you
  570. 20:32and you're using this professionally you
  571. 20:33may really want to consider paying for
  572. 20:34the top tier models that are available
  573. 20:36from these companies in my case in my
  574. 20:38professional work I do a lot of coding
  575. 20:40and a lot of things like that and this
  576. 20:41is still very cheap for me so I pay this
  577. 20:44very gladly uh because I get access to
  578. 20:46some really powerful models that I'll
  579. 20:47show you in a bit um so yeah keep track
  580. 20:50of what model you're using and make
  581. 20:52those decisions for yourself I also want
  582. 20:55to show you that all the other llm
  583. 20:56providers will all have different
  584. 20:58pricing teams TI with different models
  585. 21:00at different tiers that you can pay for
  586. 21:02so for example if we go to Claude from
  587. 21:04anthropic you'll see that I am paying
  588. 21:06for the professional plan and that gives
  589. 21:08me access to Claude 3.5 Sonet and if you
  590. 21:11are not paying for a Pro Plan then
  591. 21:13probably you only have access to maybe
  592. 21:14ha cou or something like that um and so
  593. 21:17use the most powerful model that uh kind
  594. 21:19of like works for you here's an example
  595. 21:22of me using Claud a while back I was
  596. 21:23asking for just a travel advice uh so I
  597. 21:26was asking for a cool City to go to and
  598. 21:29Claud told me that zerat in Switzerland
  599. 21:31is really cool so I ended up going there
  600. 21:33for a New Year's break following claud's
  601. 21:35advice but this is just an example of
  602. 21:37another thing that I find these models
  603. 21:38pretty useful for is travel advice and
  604. 21:40ideation and giving getting pointers
  605. 21:42that you can research further um here we
  606. 21:45also have an example of gemini.com so
  607. 21:48this is from Google I got Gemini's
  608. 21:50opinion on the matter and I asked it for
  609. 21:52a cool City to go to and it also
  610. 21:54recommended zerat so uh that was nice so
  611. 21:57I like to go between different models
  612. 21:59and asking them similar questions and
  613. 22:01seeing what they think about and for
  614. 22:03Gemini also on the top left we also have
  615. 22:05a model selector so you can pay for the
  616. 22:07more advanced tiers and use those models
  617. 22:11same thing goes for grock just released
  618. 22:13we don't want to be asking Gro 2
  619. 22:14questions because we know that grock 3
  620. 22:17is the most advanced model so I want to
  621. 22:19make sure that I pay enough and such
  622. 22:22that I have grock 3 access um so for all
  623. 22:25these different providers find the one
  624. 22:26that works best for you experiment with
  625. 22:29different providers experiment with
  626. 22:30different pricing tiers for the problems
  627. 22:32that you are working on and uh that's
  628. 22:34kind of and often I end up personally
  629. 22:36just paying for a lot of them and then
  630. 22:38asking all all of them uh the same
  631. 22:40question and I kind of refer to all
  632. 22:42these models as my llm Council so
  633. 22:45they're kind of like the Council of
  634. 22:46language models if I'm trying to figure
  635. 22:48out where to go on a vacation I will ask
  636. 22:49all of them and uh so you can also do
  637. 22:52that for yourself if that works for you
  638. 22:54okay the next topic I want to now turn
  639. 22:56to is that of thinking models qu unquote
  640. 22:59so we saw in the previous video that
  641. 23:00there are multiple stages of training
  642. 23:02pre-training goes to supervised fine
  643. 23:04tuning goes to reinforcement learning
  644. 23:07and reinforcement learning is where the
  645. 23:09model gets to practice um on a large
  646. 23:12collection of problems that resemble the
  647. 23:14practice problems in the textbook and it
  648. 23:16gets to practice on a lot of math en
  649. 23:18code
  650. 23:19problems um and in the process of
  651. 23:21reinforcement learning the model
  652. 23:23discovers thinking strategies that lead
  653. 23:26to good outcomes and these thinking
  654. 23:28strategies when you look at them they
  655. 23:30very much resemble kind of the inner
  656. 23:31monologue you have when you go through
  657. 23:33problem solving so the model will try
  658. 23:35out different ideas uh it will backtrack
  659. 23:38it will revisit assumptions and it will
  660. 23:40do things like that now a lot of these
  661. 23:42strategies are very difficult to
  662. 23:44hardcode as a human labeler because it's
  663. 23:46not clear what the thinking process
  664. 23:47should be it's only in the reinforcement
  665. 23:49learning that the model can try out lots
  666. 23:50of stuff and it can find the thinking
  667. 23:53process that works for it with its
  668. 23:55knowledge and its
  669. 23:57capabilities so so this is the third
  670. 23:59stage of uh training these models this
  671. 24:02stage is relatively recent so only a
  672. 24:04year or two ago and all of the different
  673. 24:06llm Labs have been experimenting with
  674. 24:08these models over the last year and this
  675. 24:10is kind of like seen as a large
  676. 24:11breakthrough
  677. 24:13recently and here we looked at the paper
  678. 24:15from Deep seek that was the first to uh
  679. 24:18basically talk about it publicly and
  680. 24:20they had a nice paper about
  681. 24:22incentivizing reasoning capabilities in
  682. 24:24llms Via reinforcement learning so
  683. 24:26that's the paper that we looked at in
  684. 24:27the previous video so we now have to
  685. 24:29adjust our cartoon a little bit because
  686. 24:31uh basically what it looks like is our
  687. 24:33Emoji now has this optional thinking
  688. 24:36bubble and when you are using a thinking
  689. 24:40model which will do additional thinking
  690. 24:42you are using the model that has been
  691. 24:43additionally tuned with reinforcement
  692. 24:46learning and qualitatively what does
  693. 24:48this look like well qualitatively the
  694. 24:50model will do a lot more thinking and
  695. 24:53what you can expect is that you will get
  696. 24:54higher accuracies especially on problems
  697. 24:56that are for example math code and
  698. 24:58things that require a lot of thinking
  699. 25:01things that are very simple like uh
  700. 25:02might not actually benefit from this but
  701. 25:04things that are actually deep and hard
  702. 25:06might benefit a lot and so um but
  703. 25:10basically what you're paying for it is
  704. 25:12that the models will do thinking and
  705. 25:14that can sometimes take multiple minutes
  706. 25:16because the models will emit tons and
  707. 25:17tons of tokens over a period of many
  708. 25:19minutes and you have to wait uh because
  709. 25:21the model is thinking just like a human
  710. 25:23would think but in situations where you
  711. 25:25have very difficult problems this might
  712. 25:27Translate to higher accuracy so let's
  713. 25:29take a look at some examples so here's a
  714. 25:31concrete example when I was stuck on a
  715. 25:33programming problem recently so uh
  716. 25:36something called the gradient check
  717. 25:37fails and I'm not sure why and I copy
  718. 25:39pasted the model uh my code uh so the
  719. 25:43details of the code are not important
  720. 25:44but this is basically um an optimization
  721. 25:47of a multier perceptron and details are
  722. 25:50not important it's a bunch of code that
  723. 25:51I wrote and there was a bug because my
  724. 25:53gradient check didn't work and I was
  725. 25:55just asking for advice and GPT 40 which
  726. 25:57is the blackship most powerful model for
  727. 25:59open AI but without thinking uh just
  728. 26:02kind of like uh went into a bunch of uh
  729. 26:05things that it thought were issues or
  730. 26:07that I should double check but actually
  731. 26:08didn't really solve the problem like all
  732. 26:10of the things that it gave me here are
  733. 26:12not the core issue of the problem so the
  734. 26:16model didn't really solve the issue um
  735. 26:19and it tells me about how to debug it
  736. 26:20and so on but then what I did was here
  737. 26:23in the drop down I turned to one of the
  738. 26:26thinking models now for open
  739. 26:28all of these models that start with o
  740. 26:31are thinking models 01 O3 mini O3 mini
  741. 26:34high and 01 Pro promote are all thinking
  742. 26:38models and uh they're not very good at
  743. 26:40naming their models uh but uh that is
  744. 26:43the case and so here they will say
  745. 26:45something like uses Advanced reasoning
  746. 26:47or uh good at COD and Logics and stuff
  747. 26:50like that but these are basically all
  748. 26:52tuned with reinforcement learning and
  749. 26:54the because I am paying for $200 per
  750. 26:57month I have have access to O Pro mode
  751. 27:00which is best at
  752. 27:02reasoning um but you might want to try
  753. 27:04some of the other ones if depending on
  754. 27:06your pricing tier and when I gave the
  755. 27:08same model the same prompt to 01 Pro
  756. 27:12which is the best at reasoning model and
  757. 27:15you have to pay $200 per month for this
  758. 27:17one then the exact same prompt it went
  759. 27:20off and it thought for 1 minute and it
  760. 27:23went through a sequence of thoughts and
  761. 27:25opening eye doesn't fully show you the
  762. 27:26exact thoughts they just kind of give
  763. 27:28you little summaries of the thoughts but
  764. 27:31it thought about the code for a while
  765. 27:33and then it actually came to get came
  766. 27:35back with the correct solution it
  767. 27:36noticed that the parameters are
  768. 27:38mismatched and how I pack and unpack
  769. 27:39them and Etc so this actually solved my
  770. 27:41problem and I tried out giving the exact
  771. 27:44same prompt to a bunch of other llms so
  772. 27:46for example
  773. 27:49Claud I gave Claude the same problem and
  774. 27:52it actually noticed the correct issue
  775. 27:54and solved it and it did that even with
  776. 27:57uh sonnet which is not a thinking model
  777. 28:00so claw 3.5 Sonet to my knowledge is not
  778. 28:03a thinking model and to my knowledge
  779. 28:05anthropic as of today doesn't have a
  780. 28:07thinking model deployed but this might
  781. 28:09change by the time you watch this video
  782. 28:11um but even without thinking this model
  783. 28:14actually solved the issue uh when I went
  784. 28:16to Gemini I asked it um and it also
  785. 28:19solved the issue even though I also
  786. 28:21could have tried the a thinking model
  787. 28:23but it wasn't
  788. 28:24necessary I also gave it to grock uh
  789. 28:26grock 3 in this case and grock 3 also
  790. 28:29solved the problem after a bunch of
  791. 28:31stuff um so so it also solved the issue
  792. 28:35and then finally I went to uh perplexity
  793. 28:37doai and the reason I like perplexity is
  794. 28:40because when you go to the model
  795. 28:41dropdown one of the models that they
  796. 28:43host is this deep seek R1 so this has
  797. 28:46the reasoning with the Deep seek R1
  798. 28:48model which is the model that we saw uh
  799. 28:51over here uh this is the paper so
  800. 28:55perplexity just hosts it and makes it
  801. 28:57very easy to use so I copy pasted it
  802. 29:00there and I ran it and uh I think they
  803. 29:02render they like really render it
  804. 29:04terribly
  805. 29:05but down here you can see the raw
  806. 29:08thoughts of the
  807. 29:10model uh even though you have to expand
  808. 29:12them but you see like okay the user is
  809. 29:15having trouble with the gradient check
  810. 29:17and then it tries out a bunch of stuff
  811. 29:18and then it says but wait when they
  812. 29:20accumulate the gradients they're doing
  813. 29:21the thing incorrectly let's check the
  814. 29:24order the parameters are packed as this
  815. 29:26and then it notices the issue and then
  816. 29:28it kind of like um says that's a
  817. 29:30critical mistake and so it kind of like
  818. 29:32thinks through it and you have to wait a
  819. 29:33few minutes and then also comes up with
  820. 29:35the correct answer so basically long
  821. 29:38story short what do I want to show you
  822. 29:41there exist a class of models that we
  823. 29:42call thinking models all the different
  824. 29:44providers may or may not have a thinking
  825. 29:46model these models are most effective
  826. 29:49for difficult problems in math and code
  827. 29:51and things like that and in those kinds
  828. 29:53of cases they can push up the accuracy
  829. 29:55of your performance in many cases like
  830. 29:57if if you're asking for travel advice or
  831. 29:59something like that you're not going to
  832. 30:00benefit out of a thinking model there's
  833. 30:02no need to wait for one minute for it to
  834. 30:04think about uh some destinations that
  835. 30:06you might want to go to so for myself I
  836. 30:10usually try out the non-thinking models
  837. 30:12because their responses are really fast
  838. 30:13but when I suspect the response is not
  839. 30:15as good as it could have been and I want
  840. 30:17to give the opportunity to the model to
  841. 30:19think a bit longer about it I will
  842. 30:21change it to a thinking model depending
  843. 30:23on whichever one you have available to
  844. 30:24you now when you go to Gro for example
  845. 30:28when I start a new conversation with
  846. 30:30grock
  847. 30:32um when you put the question here like
  848. 30:34hello you should put something important
  849. 30:36here you see here think so let the model
  850. 30:39take its time so turn on think and then
  851. 30:42click go and when you click think grock
  852. 30:45under the hood switches to the thinking
  853. 30:47model and all the different LM providers
  854. 30:50will kind of like have some kind of a
  855. 30:51selector for whether or not you want the
  856. 30:53model to think or whether it's okay to
  857. 30:55just like go um with the previous kind
  858. 30:59of generation of the models okay now the
  859. 31:01next section I want to continue to is to
  860. 31:04Tool use uh so far we've only talked to
  861. 31:07the language model through text and this
  862. 31:10language model is again this ZIP file in
  863. 31:12a folder it's inert it's closed off it's
  864. 31:14got no tools it's just um a neural
  865. 31:17network that can emit
  866. 31:18tokens so what we want to do now though
  867. 31:20is we want to go beyond that and we want
  868. 31:22to give the model the ability to use a
  869. 31:24bunch of tools and one of the most
  870. 31:27useful tools is an internet search and
  871. 31:29so let's take a look at how we can make
  872. 31:31models use internet search so for
  873. 31:33example again using uh concrete examples
  874. 31:35from my own life a few days ago I was
  875. 31:38watching White Lotus season 3 um and I
  876. 31:41watched the first episode and I love
  877. 31:43this TV show by the way and I was
  878. 31:45curious when the episode two was coming
  879. 31:47out uh and so in the old world you would
  880. 31:50imagine you go to Google or something
  881. 31:52like that you put in like new episodes
  882. 31:54of white lot of season 3 and then you
  883. 31:56start clicking on these links and maybe
  884. 31:59open a few of
  885. 32:00them or something like that right and
  886. 32:02you start like searching through it and
  887. 32:04trying to figure it out and sometimes
  888. 32:06you lock out and you get a
  889. 32:07schedule um but many times you might get
  890. 32:10really crazy ads there's a bunch of
  891. 32:12random stuff going on and it's just kind
  892. 32:14of like an unpleasant experience right
  893. 32:16so wouldn't it be great if a model could
  894. 32:18do this kind of a search for you visit
  895. 32:21all the web pages and then take all
  896. 32:23those web
  897. 32:24pages take all their content and stuff
  898. 32:27it into the context window and then
  899. 32:30basically give you the response and
  900. 32:33that's what we're going to do now
  901. 32:34basically we haven't a mechanism or a
  902. 32:37way we introduce a mechanism for for the
  903. 32:40model to emit a special token that is
  904. 32:42some kind of a searchy internet token
  905. 32:45and when the model emits the searchd
  906. 32:47internet token the Chach PT application
  907. 32:51or whatever llm application it is you're
  908. 32:53using will stop sampling from the model
  909. 32:56and it will take the query that the
  910. 32:57model model gave it goes off it does a
  911. 33:00search it visits web pages it takes all
  912. 33:02of their text and it puts everything
  913. 33:05into the context window so now you have
  914. 33:07this internet search
  915. 33:09tool that itself can also contribute
  916. 33:12tokens into our context window and in
  917. 33:14this case it would be like lots of
  918. 33:15internet web pages and maybe there's 10
  919. 33:17of them and maybe it just puts it all
  920. 33:19together and this could be thousands of
  921. 33:21tokens coming from these web pages just
  922. 33:22as we were looking at them ourselves and
  923. 33:25then after it has inserted all those web
  924. 33:26pages into the Contex window it will
  925. 33:29reference back to your question as to
  926. 33:31hey what when is this Mo when is this
  927. 33:33season getting released and it will be
  928. 33:35able to reference the text and give you
  929. 33:36the correct answer and notice that this
  930. 33:39is a really good example of why we would
  931. 33:41need internet search without the
  932. 33:43internet search this model has no chance
  933. 33:46to actually give us the correct answer
  934. 33:47because like I mentioned this model was
  935. 33:49trained a few months ago the schedule
  936. 33:51probably was not known back then and so
  937. 33:53when uh White load of season 3 is coming
  938. 33:55out is not part of the real knowledge of
  939. 33:57the model and it's not in the zip file
  940. 34:01most likely uh because this is something
  941. 34:03that was presumably decided on in the
  942. 34:04last few weeks and so the model has to
  943. 34:06basically go off and do internet search
  944. 34:08to learn this knowledge and it learns it
  945. 34:10from the web pages just like you and I
  946. 34:11would without it and then it can answer
  947. 34:14the question once that information is in
  948. 34:15the context window and remember again
  949. 34:18that the context window is this working
  950. 34:20memory so once we load the
  951. 34:22Articles once all of these articles
  952. 34:25think of their text as being coped copy
  953. 34:28pasted into the context window now
  954. 34:31they're in a working memory and the
  955. 34:33model can actually answer those
  956. 34:34questions because it's in the context
  957. 34:37window so basically long story short
  958. 34:39don't do this manually but use tools
  959. 34:42like perplexity as an
  960. 34:44example so perplexity doai had a really
  961. 34:46nice sort of uh llm that was doing
  962. 34:49internet search um and I think it was
  963. 34:51like the first app that really
  964. 34:53convincingly did this more recently
  965. 34:55chashi PT also introduced a search
  966. 34:57button says search the web so we're
  967. 34:59going to take a look at that in a second
  968. 35:01for now when are new episodes of wi
  969. 35:03Lotus season 3 getting released you can
  970. 35:04just ask and instead of having to do the
  971. 35:06work manually we just hit enter and the
  972. 35:09model will visit these web pages it will
  973. 35:11create all the queries and then it will
  974. 35:12give you the answer so it just kind of
  975. 35:14did a ton of the work for you um and
  976. 35:17then you can uh usually there will be
  977. 35:19citations so you can actually visit
  978. 35:21those web pages yourself and you can
  979. 35:23make sure that these are not
  980. 35:24hallucinations from the model and you
  981. 35:26can actually like double check that this
  982. 35:27is actually correct because it's not in
  983. 35:30principle guaranteed it's just um you
  984. 35:33know something that may or may not work
  985. 35:36if we take this we can also go to for
  986. 35:37example chat GPT say the same thing but
  987. 35:40now when we put this question in without
  988. 35:43actually selecting search I'm not
  989. 35:44actually 100% sure what the model will
  990. 35:46do in some cases the model will actually
  991. 35:48like know that this is recent knowledge
  992. 35:51and that it probably doesn't know and it
  993. 35:52will create a search in some cases we
  994. 35:55have to declare that we want to do the
  995. 35:56search in my own personal use I would
  996. 35:59know that the model doesn't know and so
  997. 36:00I would just select search but let's see
  998. 36:02first uh let's see if uh what
  999. 36:05happens okay searching the web and then
  1000. 36:08it prints stuff and then it sites so the
  1001. 36:11model actually detected itself that it
  1002. 36:13needs to search the web because it
  1003. 36:15understands that this is some kind of a
  1004. 36:16recent information Etc so this was
  1005. 36:18correct alternatively if I create a new
  1006. 36:20conversation I could have also select it
  1007. 36:22search because I know I need to search
  1008. 36:24enter and then it does the same thing
  1009. 36:26searching the web and and that's the the
  1010. 36:29result so basically when you're using
  1011. 36:31these LM look for this for example
  1012. 36:35grock excuse
  1013. 36:38me let's try grock without it without
  1014. 36:42selecting search Okay so the model does
  1015. 36:44some search uh just knowing that it
  1016. 36:46needs to search and gives you the answer
  1017. 36:49so
  1018. 36:50basically uh let's see what cloud
  1019. 36:55does you see so CLA does actually have
  1020. 36:58the Search tool available so it will say
  1021. 37:00as of my last update in April
  1022. 37:022024 this last update is when the model
  1023. 37:05went through
  1024. 37:07pre-training and so Claud is just saying
  1025. 37:09as of my last update the knowledge cut
  1026. 37:11off of April
  1027. 37:132024 uh it was announced but it doesn't
  1028. 37:15know so Claud doesn't have the internet
  1029. 37:18search integrated as an option and will
  1030. 37:20not give you the answer I expect that
  1031. 37:23this is something that anthropic might
  1032. 37:24be working on let's try Gemini and let's
  1033. 37:28see what it
  1034. 37:29says unfortunately no official release
  1035. 37:31date for white loto season 3 yet so um
  1036. 37:35Gemini 2.0 pro experimental does not
  1037. 37:39have access to Internet search and
  1038. 37:41doesn't know uh we could try some of the
  1039. 37:43other ones like 2.0 flash let me try
  1040. 37:49that okay so this model seems to know
  1041. 37:52but it doesn't give citations oh wait
  1042. 37:54okay there we go sources and related
  1043. 37:56content so we see how 2.0 flash actually
  1044. 38:00has the internet search tool but I'm
  1045. 38:04guessing that the 2.0 pro which is uh
  1046. 38:06the most powerful model that they have
  1047. 38:09this one actually does not have access
  1048. 38:11and it in here it actually tells us 2.0
  1049. 38:13pro experimental lacks access to
  1050. 38:14real-time info and some Gemini features
  1051. 38:17so this model is not fully wired with
  1052. 38:19internet search so long story short we
  1053. 38:23can get models to perform Google
  1054. 38:25searches for us visit the web page just
  1055. 38:28pull in the information to the context
  1056. 38:29window and answer questions and uh this
  1057. 38:32is a very very cool feature but
  1058. 38:34different models possibly different apps
  1059. 38:38have different amount of integration of
  1060. 38:40this capability and so you have to be
  1061. 38:41kind of on the lookout for that and
  1062. 38:43sometimes the model will automatically
  1063. 38:45detect that they need to do search and
  1064. 38:47sometimes you're better off uh telling
  1065. 38:48the model that you want it to do the
  1066. 38:50search so when I'm doing GPT 40 and I
  1067. 38:53know that this requires to search you
  1068. 38:55probably will not tick that box
  1069. 38:58so uh that's uh search tools I wanted to
  1070. 39:01show you a few more examples of how I
  1071. 39:03use the search tool in my own work so
  1072. 39:06what are the kinds of queries that I use
  1073. 39:08and this is fairly easy for me to do
  1074. 39:09because usually for these kinds of cases
  1075. 39:12I go to perplexity just out of habit
  1076. 39:14even though chat GPT today can do this
  1077. 39:16kind of stuff as well uh as do probably
  1078. 39:18many other services as well but I happen
  1079. 39:21to use perplexity for these kinds of
  1080. 39:23search queries so whenever I expect that
  1081. 39:26the answer can be achieved by doing
  1082. 39:28basically something like Google search
  1083. 39:30and visiting a few of the top links and
  1084. 39:32the answer is somewhere in those top
  1085. 39:33links whenever that is the case I expect
  1086. 39:36to use the search tool and I come to
  1087. 39:38perplexity so here are some examples is
  1088. 39:40the market open today um and uh this was
  1089. 39:44unprecedent day I wasn't 100% sure so uh
  1090. 39:47perplexity understands what it's today
  1091. 39:49it will do the search and it will figure
  1092. 39:50out that I'm President's Day this was
  1093. 39:53closed where's White Lotus season 3
  1094. 39:55filmed again this is something that I
  1095. 39:57wasn't sure that a model would know in
  1096. 39:59its knowledge this is something Niche so
  1097. 40:01maybe there's not that many mentions of
  1098. 40:03it on the internet and also this is more
  1099. 40:05recent so I don't expect a model to know
  1100. 40:08uh by default so uh this was a good a
  1101. 40:12fit for the Search tool does versel
  1102. 40:15offer post equal database so this was a
  1103. 40:19good example of this because I this kind
  1104. 40:21of stuff changes over time and the
  1105. 40:25offerings of verel which is accompany
  1106. 40:28uh may change over time and I want the
  1107. 40:29latest and whenever something is latest
  1108. 40:32or something changes I prefer to use the
  1109. 40:34search tool so I come to
  1110. 40:36proplex uh when is what do the Apple
  1111. 40:38launch tomorrow and what are some of the
  1112. 40:39rumors so again this is something
  1113. 40:43recent uh where is the singles Inferno
  1114. 40:45season 4 cast uh must know uh so this is
  1115. 40:49again a good example because this is
  1116. 40:50very fresh
  1117. 40:52information why is the paler stock going
  1118. 40:54up what is driving the
  1119. 40:56enthusiasm when is civilization 7 coming
  1120. 40:58out
  1121. 41:00exactly um this is an example also like
  1122. 41:04has Brian Johnson talked about the
  1123. 41:05toothpaste uses um and I was curious
  1124. 41:08basically I like what Brian does and
  1125. 41:10again it has the two features number one
  1126. 41:12it's a little bit esoteric so I'm not
  1127. 41:13100% sure if this is at scale on the
  1128. 41:16internet and would be part of like
  1129. 41:17knowledge of a model and number two this
  1130. 41:19might change over time so I want to know
  1131. 41:21what toothpaste he uses most recently
  1132. 41:23and so this is good fit again for a
  1133. 41:24Search tool is it safe to travel to
  1134. 41:27Vietnam uh this can potentially change
  1135. 41:29over time and then I saw a bunch of
  1136. 41:31stuff on Twitter about a USA ID and I
  1137. 41:34wanted to know kind of like what's the
  1138. 41:35deal uh so I searched about that and
  1139. 41:37then you can kind of like dive in in a
  1140. 41:39bunch of ways here but this use case
  1141. 41:41here is kind of along the lines of I see
  1142. 41:44something trending and I'm kind of
  1143. 41:45curious what's happening like what is
  1144. 41:47the gist of it and so I very often just
  1145. 41:49quickly bring up a search of like what's
  1146. 41:52happening and then get a model to kind
  1147. 41:53of just give me a gist of roughly what
  1148. 41:55happened um because a lot of the IND
  1149. 41:57idual tweets or posts might not have the
  1150. 41:58full context just by itself so these are
  1151. 42:01examples of how I use a Search tool okay
  1152. 42:05next up I would like to tell you about
  1153. 42:06this capability called Deep research and
  1154. 42:08this is fairly recent only as of like a
  1155. 42:10month or two ago uh but I think it's
  1156. 42:12incredibly cool and really interesting
  1157. 42:14and kind of went under the radar for a
  1158. 42:15lot of people even though I think it
  1159. 42:16shouldn't have so when we go to chipt
  1160. 42:19pricing here we notice that deep
  1161. 42:21research is listed here under Pro so it
  1162. 42:24currently requires $200 per month so
  1163. 42:26this is the top tier
  1164. 42:27uh however I think it's incredibly cool
  1165. 42:29so let me show you by example um in what
  1166. 42:32kinds of scenarios you might want to use
  1167. 42:33it roughly speaking uh deep research is
  1168. 42:37a combination of internet search and
  1169. 42:41thinking and rolled out for a long time
  1170. 42:44so the model will go off and it will
  1171. 42:46spend tens of minutes doing what deep
  1172. 42:49research um and a first sort of company
  1173. 42:52that announced this was CH GPT as part
  1174. 42:54of its Pro offering uh very recently
  1175. 42:56like a month ago so here's an
  1176. 42:58example recently I was on the internet
  1177. 43:01buying supplements which I know is kind
  1178. 43:03of crazy but Brian Johnson has this
  1179. 43:05starter pack and I was kind of curious
  1180. 43:06about it and there's this thing called
  1181. 43:08Longevity mix right and it's got a bunch
  1182. 43:10of health actives and I want to know
  1183. 43:13what these things are right and of
  1184. 43:15course like so like ca AKG like like
  1185. 43:18what the hell is this Boost energy
  1186. 43:19production for sustained Vitality like
  1187. 43:21what does that mean so one thing you
  1188. 43:23could of course do is you could open up
  1189. 43:25Google search uh and look at the
  1190. 43:27Wikipedia page or something like that
  1191. 43:28and do everything that you're kind of
  1192. 43:29used to but deep research allows you to
  1193. 43:32uh basically take an an alternate route
  1194. 43:35and it kind of like processes a lot of
  1195. 43:37this information for you and explains it
  1196. 43:39a lot better so as an example we can do
  1197. 43:41something like this this is my example
  1198. 43:42prompt C AKG is one Health one of the
  1199. 43:46health actives in Brian Johnson's
  1200. 43:47blueprint at 2.5 grams per serving can
  1201. 43:50you do research on CG tell me why um
  1202. 43:53tell me about why it might be found in
  1203. 43:54the longevity mix it's possible
  1204. 43:56efficency in humans or animal models its
  1205. 43:58potential mechanism of action any
  1206. 44:00potential concerns or toxicity or
  1207. 44:02anything like that now here I have this
  1208. 44:05button available to you to me and you
  1209. 44:06won't unless you pay $200 per month
  1210. 44:08right now but I can turn on deep
  1211. 44:11research so let me copy paste this and
  1212. 44:12hit
  1213. 44:13go um and now the model will say okay
  1214. 44:17I'm going to research this and then
  1215. 44:18sometimes it likes to ask clarifying
  1216. 44:20questions before it goes off so a focus
  1217. 44:22on human clinical studies animal models
  1218. 44:24are both so let's say both specific
  1219. 44:27sources uh all of all sources I don't
  1220. 44:30know comparison to other longevity
  1221. 44:33compounds uh not
  1222. 44:35needed comparison just
  1223. 44:39AKG uh we can be pretty brief the model
  1224. 44:42understands uh and we hit
  1225. 44:45go and then okay I'll research AKG
  1226. 44:47starting research and so now we have to
  1227. 44:50wait for probably about 10 minutes or so
  1228. 44:52and if you'd like to click on it you can
  1229. 44:54get a bunch of preview of what the model
  1230. 44:55is doing on a high level
  1231. 44:57so this will go off and it will do a
  1232. 44:59combination of like I said thinking and
  1233. 45:02internet search but it will issue many
  1234. 45:04internet searches it will go through
  1235. 45:06lots of papers it will look at papers
  1236. 45:08and it will think and it will come back
  1237. 45:1010 minutes from now so this will run for
  1238. 45:13a while uh meanwhile while this is
  1239. 45:15running uh I'd like to show you
  1240. 45:18equivalence of it in the industry so
  1241. 45:20inspired by this a lot of people were
  1242. 45:22interested in cloning it and so one
  1243. 45:24example is for example perplexity so
  1244. 45:26complexity when you go to the model drop
  1245. 45:28down has something called Deep research
  1246. 45:31and so you can issue the same queries
  1247. 45:33here and we can give this to perplexity
  1248. 45:36and then grock as well has something
  1249. 45:39called Deep search instead of deep
  1250. 45:40research but I think that grock's deep
  1251. 45:42search is kind of like deep research but
  1252. 45:44I'm not 100% sure so we can issue grock
  1253. 45:47deep search as well grock 3 deep search
  1254. 45:52go and uh this model is going to go off
  1255. 45:55as well now
  1256. 45:57I
  1257. 45:58think uh where is my Chachi PT so Chachi
  1258. 46:01PT is kind of like maybe a quarter
  1259. 46:04done perplexity is going to be down soon
  1260. 46:08okay still thinking and Gro is still
  1261. 46:11going as
  1262. 46:12well I like grock's interface the most
  1263. 46:14it seems like okay so basically it's
  1264. 46:16looking up all kinds of papers Web MD
  1265. 46:19browsing results and it's kind of just
  1266. 46:22getting all this now while this is all
  1267. 46:24going on of course it's accumulating a
  1268. 46:26giant cont text window and it's
  1269. 46:28processing all that information trying
  1270. 46:29to kind of create a report for us so key
  1271. 46:34points uh what is C CG and why is it in
  1272. 46:37longevity mix how is it Associated to
  1273. 46:39longevity Etc and so it will do
  1274. 46:42citations and it will kind of like tell
  1275. 46:44you all about it and so this is not a
  1276. 46:46simple and short response this is a kind
  1277. 46:48of like almost like a custom research
  1278. 46:50paper on any topic you would like and so
  1279. 46:52this is really cool and it gives a lot
  1280. 46:54of references potentially for you to go
  1281. 46:55off and do some of your own reading and
  1282. 46:57maybe ask some clarifying questions
  1283. 46:59afterwards but it's actually really
  1284. 47:00incredible that it gives you all these
  1285. 47:01like different citations and processes
  1286. 47:03the information for you a little bit
  1287. 47:05let's see if perplexity finished okay
  1288. 47:08perplexity is still still researching
  1289. 47:10and chat PT is also researching so let's
  1290. 47:13uh briefly pause the video and um I'll
  1291. 47:15come back when this is done okay so
  1292. 47:17perplexity finished and we can see some
  1293. 47:18of the report that it wrote
  1294. 47:21up uh so there's some references here
  1295. 47:23and some uh basically description and
  1296. 47:26then chashi he also finished and it also
  1297. 47:28thought for 5 minutes looked at 27
  1298. 47:30sources and produced a
  1299. 47:33report so here it talked about uh
  1300. 47:36research in worms dropa in mice and in
  1301. 47:40human trials that are ongoing and then a
  1302. 47:43proposed mechanism of action and some
  1303. 47:45safety and potential
  1304. 47:46concerns and references which you can
  1305. 47:49dive uh deeper into so usually in my own
  1306. 47:53work right now I've only used this maybe
  1307. 47:55for like 10 to 20 queries so far
  1308. 47:57something like that usually I find that
  1309. 47:59the chash PT offering is currently the
  1310. 48:01best it is the most thorough it reads
  1311. 48:03the best it is the longest uh it makes
  1312. 48:06most sense when I read it um and I think
  1313. 48:08the perplexity and the gro are a little
  1314. 48:10bit uh a little bit shorter and a little
  1315. 48:12bit briefer and don't quite get into the
  1316. 48:14same detail as uh as the Deep research
  1317. 48:17from Google uh from Chach right now I
  1318. 48:21will say that everything that is given
  1319. 48:22to you here again keep in mind that even
  1320. 48:24though it is doing research and it's
  1321. 48:26pulling
  1322. 48:27in there are no guarantees that there
  1323. 48:29are no hallucinations here uh any of
  1324. 48:32this can be hallucinated at any point in
  1325. 48:33time it can be totally made up
  1326. 48:35fabricated misunderstood by the model so
  1327. 48:37that's why these citations are really
  1328. 48:38important treat this as your first draft
  1329. 48:41treat this as papers to look at um but
  1330. 48:44don't take this as uh definitely true so
  1331. 48:47here what I would do now is I would
  1332. 48:48actually go into these papers and I
  1333. 48:49would try to understand uh is the is
  1334. 48:51chat understanding it correctly and
  1335. 48:53maybe I have some follow-up questions
  1336. 48:54Etc so you can do all that but still
  1337. 48:56incredibly useful to see these reports
  1338. 48:58once in a while to get a bunch of
  1339. 49:00sources that you might want to descend
  1340. 49:02into afterwards okay so just like before
  1341. 49:05I wanted to show a few brief examples of
  1342. 49:06how how I've used deep research so for
  1343. 49:09example I was uh trying to change
  1344. 49:11browser um because Chrome was not uh
  1345. 49:14Chrome upset me and so it deleted all my
  1346. 49:17tabs so I was looking at either Brave or
  1347. 49:20Arc and I I was most interested in which
  1348. 49:22one is more private and uh basically
  1349. 49:25Chach BT compil this report for me and I
  1350. 49:28this was actually quite helpful and I
  1351. 49:29went into some of the sources and I sort
  1352. 49:31of understood why Brave is basically
  1353. 49:34tldr significantly better and that's why
  1354. 49:36for example here I'm using brave because
  1355. 49:38I switched to it now and so this is an
  1356. 49:41example of um basically researching
  1357. 49:43different kinds of products and
  1358. 49:44comparing them I think that's a good fit
  1359. 49:46for deep research uh here I wanted to
  1360. 49:48know about a life extension in mice so
  1361. 49:50it kind of gave me a very long reading
  1362. 49:53but basically mice are an animal model
  1363. 49:55for longevity and uh different Labs have
  1364. 49:58tried to extend it with various
  1365. 50:00techniques and then here I wanted to
  1366. 50:02explore llm labs in the USA and I wanted
  1367. 50:06a table of how large they are how much
  1368. 50:09funding they've had Etc so this is the
  1369. 50:11table that It produced now this table is
  1370. 50:14basically hit and miss unfortunately so
  1371. 50:16I wanted to show it as an example of a
  1372. 50:17failure um I think some of these numbers
  1373. 50:20I didn't fully check them but they don't
  1374. 50:21seem way too wrong some of this looks
  1375. 50:24wrong um but the bigger Mission I
  1376. 50:26definitely see is that xai is not here
  1377. 50:28which I think is a really major emission
  1378. 50:31and then also conversely hugging phase
  1379. 50:33should probably not be here because I
  1380. 50:34asked specifically about llm labs in the
  1381. 50:37USA and also a Luther AI I don't think
  1382. 50:39should count as a major llm lab um due
  1383. 50:43to mostly its resources and so I think
  1384. 50:46it's kind of a hit and miss things are
  1385. 50:48missing I don't fully trust these
  1386. 50:49numbers I have to actually look at them
  1387. 50:51and so again use it as a first draft
  1388. 50:54don't fully trust it still very helpful
  1389. 50:57that's it so what's really happening
  1390. 50:59here that is interesting is that we are
  1391. 51:01providing the llm with additional
  1392. 51:03concrete documents that it can reference
  1393. 51:06inside its context window so the model
  1394. 51:08is not just relying on the knowledge the
  1395. 51:11hazy knowledge of the world through its
  1396. 51:13parameters and what it knows in its
  1397. 51:15brain we're actually giving it concrete
  1398. 51:17documents it's as if you and I reference
  1399. 51:20specific documents like on the Internet
  1400. 51:22or something like that while we are um
  1401. 51:24kind of producing some answer for some
  1402. 51:26question
  1403. 51:27now we can do that through an internet
  1404. 51:28search or like a tool like this but we
  1405. 51:30can also provide these llms with
  1406. 51:32concrete documents ourselves through a
  1407. 51:34file upload and I find this
  1408. 51:36functionality pretty helpful in many
  1409. 51:37ways so as an example uh let's look at
  1410. 51:40Cloud because they just released Cloud
  1411. 51:423.7 while I was filming this video so
  1412. 51:44this is a new Cloud Model that is now
  1413. 51:46the
  1414. 51:46state-of-the-art and notice here that we
  1415. 51:49have thinking mode now as of 3.7 and so
  1416. 51:52normal is what we looked at so far but
  1417. 51:54they just release extended best for Math
  1418. 51:57and coding challenges and what they're
  1419. 51:58not saying but is actually true under
  1420. 52:00the hood probably most likely is that
  1421. 52:02this was trained with reinforcement
  1422. 52:03learning in a similar way that all the
  1423. 52:06other thinking models were produced so
  1424. 52:08what we can do now is we can uploaded
  1425. 52:11documents that we wanted to reference
  1426. 52:13inside its context window so as an
  1427. 52:15example uh there's this paper that came
  1428. 52:17out that I was kind of interested in
  1429. 52:18it's from Arc Institute and it's
  1430. 52:20basically um a language model trained on
  1431. 52:24DNA and so I was kind of curious ious I
  1432. 52:26mean I'm not from biology but I was kind
  1433. 52:29of curious what this is and this is a
  1434. 52:31perfect example of um what is what LMS
  1435. 52:34are extremely good for because you can
  1436. 52:35upload these documents to the llm and
  1437. 52:37you can load this PDF into the context
  1438. 52:40window and then ask questions about it
  1439. 52:42and uh basically read the document
  1440. 52:44together with an llm and ask questions
  1441. 52:46off it so the way you do that is you
  1442. 52:48basically just drag and drop so we can
  1443. 52:50take that PDF and just drop it
  1444. 52:54here um this is about 30 megabytes now
  1445. 52:58when Claude gets this document it is
  1446. 53:01very likely that they actually discard a
  1447. 53:03lot of the images and that kind of
  1448. 53:06information I don't actually know
  1449. 53:08exactly what they do under the hood and
  1450. 53:09they don't really talk about it but it's
  1451. 53:11likely that the images are thrown away
  1452. 53:13or if they are there they may not be as
  1453. 53:16as um as well understood as you and I
  1454. 53:19would understand them potentially and
  1455. 53:21it's very likely that what's happening
  1456. 53:22under the hood is that this PDF is
  1457. 53:24basically converted to a text file and
  1458. 53:26that text file is loaded into the token
  1459. 53:29window and once it's in the token window
  1460. 53:31it's in the working memory and we can
  1461. 53:32ask questions of it so typically when I
  1462. 53:35start reading papers together with any
  1463. 53:37of these llms I just ask for can you uh
  1464. 53:40give me a
  1465. 53:43summary uh summary of this
  1466. 53:46paper let's see what cloud 3.7
  1467. 53:53says uh okay I'm exceeding the length
  1468. 53:55limit of this chat
  1469. 53:56oh god really oh damn okay well let's
  1470. 54:01try
  1471. 54:05chbt
  1472. 54:07uh can you summarize this
  1473. 54:12paper and we're using gbt 40 and we're
  1474. 54:16not using thinking
  1475. 54:19um which is okay we don't we can start
  1476. 54:22by not thinking
  1477. 54:27reading documents summary of the paper
  1478. 54:30genome modeling and design across all
  1479. 54:31domains of life so this paper introduces
  1480. 54:34Evo 2 large scale biological Foundation
  1481. 54:37model and then key
  1482. 54:43features and so on so I personally find
  1483. 54:46this pretty helpful and then we can kind
  1484. 54:48of go back and forth and as I'm reading
  1485. 54:50through the abstract and the
  1486. 54:51introduction Etc I am asking questions
  1487. 54:53of the llm and it's kind of like uh
  1488. 54:56making it easier for me to understand
  1489. 54:57the paper another way that I like to use
  1490. 54:59this functionality extensively is when
  1491. 55:01I'm reading books it is rarely ever the
  1492. 55:03case anymore that I read books just by
  1493. 55:05myself I always involve an LM to help me
  1494. 55:08read a book so a good example of that
  1495. 55:10recently is The Wealth of Nations uh
  1496. 55:12which I was reading recently and it is a
  1497. 55:14book from 1776 written by Adam Smith and
  1498. 55:16it's kind of like the foundation of
  1499. 55:18classical economics and it's a really
  1500. 55:20good book and it's kind of just very
  1501. 55:22interesting to me that it was written so
  1502. 55:23long ago but it has a lot of modern day
  1503. 55:25kind of like uh it's just got a lot of
  1504. 55:27insights um that I think are very timely
  1505. 55:29even today so the way I read books now
  1506. 55:32as an example is uh you basically pull
  1507. 55:34up the book and you have to get uh
  1508. 55:37access to like the raw content of that
  1509. 55:38information in the case of Wealth of
  1510. 55:40Nations this is easy because it is from
  1511. 55:421776 so you can just find it on wealth
  1512. 55:45Project Gutenberg as an example and then
  1513. 55:47basically find the chapter that you are
  1514. 55:49currently reading so as an example let's
  1515. 55:52read this chapter from book one and this
  1516. 55:54chapter uh I was reading recently and it
  1517. 55:57kind of goes into the division of labor
  1518. 56:00and how it is limited by the extent of
  1519. 56:02the market roughly speaking if your
  1520. 56:04Market is very small then people can't
  1521. 56:06specialize and specialization is what um
  1522. 56:10is basically huge uh specialization is
  1523. 56:13extremely important for wealth creation
  1524. 56:16um because you can have experts who
  1525. 56:18specialize in their simple little task
  1526. 56:20but you can only do that at scale uh
  1527. 56:23because without the scale you don't have
  1528. 56:25a large enough market to sell to uh your
  1529. 56:28specialization so what we do is we copy
  1530. 56:31paste this book uh this chapter at least
  1531. 56:34uh this is how I like to do it we go to
  1532. 56:36say Claud and um we say something like
  1533. 56:40we are reading The Wealth of
  1534. 56:42Nations now remember Claude has kind has
  1535. 56:45knowledge of The Wealth of Nations but
  1536. 56:47probably doesn't remember exactly the uh
  1537. 56:50content of this chapter so it wouldn't
  1538. 56:51make sense to ask Claud questions about
  1539. 56:53this chapter directly uh because it
  1540. 56:55probably doesn't remember remember what
  1541. 56:56this chapter is about but we can remind
  1542. 56:58Claud by loading this into the context
  1543. 57:00window so we reading the weal of Nations
  1544. 57:03uh please summarize this chapter to
  1545. 57:06start and then what I do here is I copy
  1546. 57:09paste um now in Cloud when you copy
  1547. 57:12paste they don't actually show all the
  1548. 57:14text inside the text box they create a
  1549. 57:16little text attachment uh when it is
  1550. 57:18over uh some size and so we can click
  1551. 57:22enter and uh we just kind of like start
  1552. 57:24off usually I like to start off with a
  1553. 57:26summary of what this chapter is about
  1554. 57:28just so I have a rough idea and then I
  1555. 57:30go in and I start reading the chapter
  1556. 57:33and uh any point we have any questions
  1557. 57:35then we just come in and just ask our
  1558. 57:37question and I find that basically going
  1559. 57:40hand inand with llms uh dramatically
  1560. 57:42creases my retention my understanding of
  1561. 57:44these chapters and I find that this is
  1562. 57:46especially the case when you're reading
  1563. 57:48for example uh documents from other
  1564. 57:51fields like for example biology or for
  1565. 57:53example documents from a long time ago
  1566. 57:55like 1776 where you sort of need a
  1567. 57:57little bit of help of even understanding
  1568. 57:58what uh the basics of the language or
  1569. 58:02for example I would feel a lot more
  1570. 58:03courage approaching a very old text that
  1571. 58:05is outside of my area of expertise maybe
  1572. 58:07I'm reading Shakespeare or I'm reading
  1573. 58:09things like that I feel like llms make a
  1574. 58:12lot of reading very dramatically more
  1575. 58:14accessible than it used to be before
  1576. 58:17because you're not just right away
  1577. 58:18confused you can actually kind of go
  1578. 58:19slowly through it and figure it out
  1579. 58:21together with the llm in hand so I use
  1580. 58:24this extensively and I think it's
  1581. 58:26extremely helpful I'm not aware of tools
  1582. 58:28unfortunately that make this very easy
  1583. 58:30for you today I do this clunky back and
  1584. 58:33forth so literally I will find uh the
  1585. 58:36book somewhere and I will copy paste
  1586. 58:38stuff around and I'm going back and
  1587. 58:40forth and it's extremely awkward and
  1588. 58:42clunky and unfortunately I'm not aware
  1589. 58:44of a tool that makes this very easy for
  1590. 58:45you but obviously what you want is as
  1591. 58:47you're reading a book you just want to
  1592. 58:49highlight the passage and ask questions
  1593. 58:50about it this currently as far as I know
  1594. 58:52does not exist um but this is extremely
  1595. 58:55helpful I encourage you to experiment
  1596. 58:57with it and uh don't read books alone
  1597. 59:00okay the next very powerful tool that I
  1598. 59:02now want to turn to is the use of a
  1599. 59:04python interpreter or basically giving
  1600. 59:07the ability to the llm to use and write
  1601. 59:11computer programs so instead of the llm
  1602. 59:14giving you an answer directly it has the
  1603. 59:17ability now to write a computer program
  1604. 59:19and to emit special tokens that the chpt
  1605. 59:24application recognizes as hey this is
  1606. 59:26not for the human this is uh basically
  1607. 59:29saying that whatever I output it here uh
  1608. 59:32is actually a computer program please go
  1609. 59:34off and run it and give me the result of
  1610. 59:36running that computer
  1611. 59:37program so uh it is the integration of
  1612. 59:40the language model with a programming
  1613. 59:42language here like python so uh this is
  1614. 59:45extremely powerful let's see the
  1615. 59:46simplest example of where this would be
  1616. 59:49uh used and what this would look like so
  1617. 59:52if I go go to chpt and I give it some
  1618. 59:54kind of a multiplication problem problem
  1619. 59:56let's say 30 * 9 or something like
  1620. 59:59that then this is a fairly simple
  1621. 1:00:01multiplication and you and I can
  1622. 1:00:03probably do something like this in our
  1623. 1:00:04head right like 30 * 9 you can just come
  1624. 1:00:07up with the result of 270 right so let's
  1625. 1:00:10see what happens okay so llm did exactly
  1626. 1:00:13what I just did it calculated the result
  1627. 1:00:16of this multiplication to be 270 but
  1628. 1:00:18it's actually not really doing math it's
  1629. 1:00:20actually more like almost memory work uh
  1630. 1:00:22but it's easy enough to do in your head
  1631. 1:00:26um so there was no tool use involved
  1632. 1:00:28here all that happened here was just the
  1633. 1:00:30zip file uh doing next token prediction
  1634. 1:00:33and uh gave the correct result here in
  1635. 1:00:35its head the problem now is what if we
  1636. 1:00:38want something more more complicated so
  1637. 1:00:40what is this
  1638. 1:00:42times this and now of course this if I
  1639. 1:00:46asked you to calculate this you would
  1640. 1:00:49give up instantly because you know that
  1641. 1:00:50you can't possibly do this in your head
  1642. 1:00:52and you would be looking for a
  1643. 1:00:53calculator and that's exactly what the
  1644. 1:00:56llm does now too and opening ey has
  1645. 1:00:58trained chat GPT to recognize problems
  1646. 1:01:00that it cannot do in its head and to
  1647. 1:01:03rely on tools instead so what I expect
  1648. 1:01:05jpt to do for this kind of a query is to
  1649. 1:01:07turn to Tool use so let's see what it
  1650. 1:01:09looks
  1651. 1:01:10like okay there we go so what's opened
  1652. 1:01:14up here is What's called the python
  1653. 1:01:16interpreter and python is basically a
  1654. 1:01:18little programming language and instead
  1655. 1:01:20of the llm telling you directly what the
  1656. 1:01:22result is the llm writes a program and
  1657. 1:01:26then not shown here are special tokens
  1658. 1:01:28that tell the chipd application to
  1659. 1:01:30please run the program and then the llm
  1660. 1:01:33pauses
  1661. 1:01:34execution instead the Python program
  1662. 1:01:37runs creates a result and then passes
  1663. 1:01:39this this result back to the language
  1664. 1:01:42model as text and the language model
  1665. 1:01:44takes over and tells you that the result
  1666. 1:01:46of this is that so this is Tulu
  1667. 1:01:49incredibly powerful and open a has
  1668. 1:01:51trained chpt to kind of like know in
  1669. 1:01:54what situations to on tools and they've
  1670. 1:01:57taught it to do that by example so uh
  1671. 1:02:00human labelers are involved in curating
  1672. 1:02:02data sets that um kind of tell the model
  1673. 1:02:05by example in what kinds of situations
  1674. 1:02:07it should lean on tools and how but
  1675. 1:02:09basically we have a python interpreter
  1676. 1:02:11and uh this is just an example of
  1677. 1:02:13multiplication uh but uh this is
  1678. 1:02:16significantly more powerful so let's see
  1679. 1:02:18uh what we can actually do inside
  1680. 1:02:20programming languages before we move on
  1681. 1:02:22I just wanted to make the point that
  1682. 1:02:24unfortunately um you have to kind of
  1683. 1:02:26keep track of which llms that you're
  1684. 1:02:28talking to have different kinds of tools
  1685. 1:02:30available to them because different llms
  1686. 1:02:32might not have all the same tools and in
  1687. 1:02:34particular LMS that do not have access
  1688. 1:02:36to the python interpreter or programming
  1689. 1:02:38language or are unwilling to use it
  1690. 1:02:40might not give you correct results in
  1691. 1:02:41some of these harder problems so as an
  1692. 1:02:44example here we saw that um chasht
  1693. 1:02:46correctly used a programming language
  1694. 1:02:48and didn't do this in its head grock 3
  1695. 1:02:51actually I believe does not have access
  1696. 1:02:53to a programming language uh like like a
  1697. 1:02:56python interpreter and here it actually
  1698. 1:02:58does this in its head and gets
  1699. 1:03:00remarkably close but if you actually
  1700. 1:03:02look closely at it uh it gets it wrong
  1701. 1:03:05this should be one 120 instead of
  1702. 1:03:07060 so grock 3 will just hallucinate
  1703. 1:03:10through this multiplication and uh do it
  1704. 1:03:13in its head and get it wrong but
  1705. 1:03:14actually like remarkably close uh then I
  1706. 1:03:18tried Claud and Claude actually wrote In
  1707. 1:03:20this case not python code but it wrote
  1708. 1:03:22JavaScript code but uh JavaScript is
  1709. 1:03:25also a programming l language and get
  1710. 1:03:26gets the correct result then I came to
  1711. 1:03:29Gemini and I asked uh 2.0 pro and uh
  1712. 1:03:32Gemini did not seem to be using any
  1713. 1:03:34tools there's no indication of that and
  1714. 1:03:36yet it gave me what I think is the
  1715. 1:03:37correct result which actually kind of
  1716. 1:03:39surprised me so Gemini I think actually
  1717. 1:03:42calculated this in its head correctly
  1718. 1:03:45and the way we can tell that this is uh
  1719. 1:03:47which is kind of incredible the way we
  1720. 1:03:48can tell that it's not using tools is we
  1721. 1:03:50can just try something harder what is we
  1722. 1:03:53have to make it harder for it
  1723. 1:03:58okay so it gives us some result and then
  1724. 1:03:59I can use uh my calculator here and it's
  1725. 1:04:03wrong right so this is using my MacBook
  1726. 1:04:06Pro calculator and uh two it's it's not
  1727. 1:04:09correct but it's like remarkably close
  1728. 1:04:12but it's not correct but it will just
  1729. 1:04:13hallucinate the answer so um I guess
  1730. 1:04:17like my point is unfortunately the state
  1731. 1:04:19of the llms right now is such that
  1732. 1:04:22different llms have different tools
  1733. 1:04:23available to them and you kind of have
  1734. 1:04:25to keep track of it and if they don't
  1735. 1:04:27have the tools available they'll just do
  1736. 1:04:29their best uh which means that they
  1737. 1:04:31might hallucinate a result for you so
  1738. 1:04:33that's something to look out for okay so
  1739. 1:04:35one practical setting where this can be
  1740. 1:04:37quite powerful is what's called Chach
  1741. 1:04:39Advanced Data analysis and as far as I
  1742. 1:04:42know this is quite unique to chpt itself
  1743. 1:04:45and it basically um gets chpt to be kind
  1744. 1:04:48of like a junior data analyst uh who you
  1745. 1:04:50can uh kind of collaborate with so let
  1746. 1:04:53me show you a concrete example without
  1747. 1:04:54going into the full detail so first we
  1748. 1:04:57need to get some data that we can
  1749. 1:04:59analyze and plot and chart Etc so here
  1750. 1:05:02in this case I said uh let's research
  1751. 1:05:03openi evaluation as an example and I
  1752. 1:05:06explicitly asked Chachi to use the
  1753. 1:05:07search tool because I know that under
  1754. 1:05:09the hood such a thing exists and I don't
  1755. 1:05:12want it to be hallucinating data to me I
  1756. 1:05:14wanted to actually look it up and back
  1757. 1:05:15it up and create a table where each year
  1758. 1:05:18have we have the valuation so these are
  1759. 1:05:20the open evaluations over time notice
  1760. 1:05:23how in 2015 it's not applicable
  1761. 1:05:26so uh the valuation is like unknown then
  1762. 1:05:28I said now plot this use lock scale for
  1763. 1:05:30y- axis and so this is where this gets
  1764. 1:05:33powerful Chachi PT goes off and writes a
  1765. 1:05:35program that plots the data over here so
  1766. 1:05:40it cre a little figure for us and it uh
  1767. 1:05:42sort of uh ran it and showed it to us so
  1768. 1:05:44this can be quite uh nice and valuable
  1769. 1:05:46because it's very easy way to basically
  1770. 1:05:48collect data upload data in a
  1771. 1:05:50spreadsheet and visualize it Etc I will
  1772. 1:05:53note some of the things here so as an
  1773. 1:05:54example notice that we had na for 2015
  1774. 1:05:58but Chachi PT when I was writing the
  1775. 1:06:00code and again I would always encourage
  1776. 1:06:02you to scrutinize the code it put in 0.1
  1777. 1:06:05for 2015 and so basically it implicitly
  1778. 1:06:08assumed that uh it made the Assumption
  1779. 1:06:11here in code that the valuation of 2015
  1780. 1:06:13was 100
  1781. 1:06:15million uh and because it put in 0.1 and
  1782. 1:06:18it's kind of like did it without telling
  1783. 1:06:19us so it's a little bit sneaky and uh
  1784. 1:06:22that's why you kind of have to pay
  1785. 1:06:22attention little bit to the code so I'm
  1786. 1:06:25Amil with the code and I always read it
  1787. 1:06:27um but I think I would be hesitant to
  1788. 1:06:30potentially recommend the use of these
  1789. 1:06:32tools uh if people aren't able to like
  1790. 1:06:34read it and verify it a little bit for
  1791. 1:06:36themselves um now fit a trend line and
  1792. 1:06:39extrapolate until the year 2030 Mark the
  1793. 1:06:43expected valuation in 2030 so it went
  1794. 1:06:45off and it basically did a linear fit
  1795. 1:06:48and it's using cciis curve
  1796. 1:06:51fit and it did this and came up with a
  1797. 1:06:53plot and uh
  1798. 1:06:56it told me that the valuation based on
  1799. 1:06:58the trend in 2030 is approximately 1.7
  1800. 1:07:00trillion which sounds amazing except uh
  1801. 1:07:04here I became suspicious because I see
  1802. 1:07:06that Chach PT is telling me it's 1.7
  1803. 1:07:08trillion but when I look here at 2030
  1804. 1:07:11it's printing 2027 1.7 B so its
  1805. 1:07:16extrapolation when it's printing the
  1806. 1:07:17variable is inconsistent with 1.7
  1807. 1:07:21trillion uh this makes it look like that
  1808. 1:07:23valuation should be about 20 trillion
  1809. 1:07:25and so that's what I said print this
  1810. 1:07:27variable directly by itself what is it
  1811. 1:07:30and then it sort of like rewrote the
  1812. 1:07:31code and uh gave me the variable itself
  1813. 1:07:34and as we see in the label here it is
  1814. 1:07:37indeed
  1815. 1:07:382271 Etc so in 2030 the true exponential
  1816. 1:07:45Trend extrapolation would be a valuation
  1817. 1:07:47of 20
  1818. 1:07:49trillion um so I was like I was trying
  1819. 1:07:52to confront Chach and I was like you
  1820. 1:07:53lied to me right and it's like yeah
  1821. 1:07:54sorry I messed up
  1822. 1:07:56so I guess I I I like this example
  1823. 1:07:59because number one it shows the power of
  1824. 1:08:01the tool in that it can create these
  1825. 1:08:03figures for you and it's very nice but I
  1826. 1:08:06think number two it shows the um
  1827. 1:08:10trickiness of it where for example here
  1828. 1:08:12it made an implicit assumption and here
  1829. 1:08:14it actually told me something uh it told
  1830. 1:08:16me just the wrong it hallucinated 1.7
  1831. 1:08:19trillion so again it is kind of like a
  1832. 1:08:21very very Junior data analyst it's
  1833. 1:08:23amazing that it can plot figures
  1834. 1:08:25but you have to kind of still know what
  1835. 1:08:27this code is doing and you have to be
  1836. 1:08:29careful and scrutinize it and make sure
  1837. 1:08:31that you are really watching very
  1838. 1:08:33closely because your Junior analyst is a
  1839. 1:08:35little bit uh absent minded and uh not
  1840. 1:08:39quite right all the time so really
  1841. 1:08:41powerful but also be careful with this
  1842. 1:08:44um I won't go into full details of
  1843. 1:08:46Advanced Data analysis but uh there were
  1844. 1:08:48many videos made on this topic so if you
  1845. 1:08:51would like to use some of this in your
  1846. 1:08:52work uh then I encourage you to look at
  1847. 1:08:55at some of these videos I'm not going to
  1848. 1:08:56go into the full detail so a lot of
  1849. 1:08:58promise but be careful okay so I've
  1850. 1:09:01introduced you to Chach PT and Advanced
  1851. 1:09:03Data analysis which is one powerful way
  1852. 1:09:05to basically have LMS interact with code
  1853. 1:09:07and add some UI elements like showing of
  1854. 1:09:10figures and things like that I would now
  1855. 1:09:12like to uh introduce you to one more
  1856. 1:09:14related tool and that is uh specific to
  1857. 1:09:16cloud and it's called
  1858. 1:09:18artifacts so let me show you by example
  1859. 1:09:21what this is so I have a conversation
  1860. 1:09:23with Claude and I'm asking generate 20
  1861. 1:09:26flash cards from the following
  1862. 1:09:28text um and for the text itself I just
  1863. 1:09:32came to the Adam Smith Wikipedia page
  1864. 1:09:33for example and I copy pasted this
  1865. 1:09:35introduction here so I copy pasted this
  1866. 1:09:38here and asked for flash cards and
  1867. 1:09:40Claude responds with 20 flash cards so
  1868. 1:09:45for example when was Adam Smith baptized
  1869. 1:09:47on June 16th Etc when did he die what
  1870. 1:09:50was his nationality Etc so once we have
  1871. 1:09:53the flash cards we actually want to
  1872. 1:09:55practice these flashcards and so this is
  1873. 1:09:57where I continue the conversation and I
  1874. 1:09:59say now use the artifacts feature to
  1875. 1:10:01write a flashcards app to test these
  1876. 1:10:04flashcards and so clot goes off and
  1877. 1:10:07writes code for an app that uh basically
  1878. 1:10:12formats all of this into flashcards and
  1879. 1:10:15that looks like this so what Claude
  1880. 1:10:17wrote specifically was this C code here
  1881. 1:10:21so it uses a react library and then
  1882. 1:10:24basically creates all these components
  1883. 1:10:26it hardcodes the Q&A into this app and
  1884. 1:10:30then all the other functionality of it
  1885. 1:10:32and then the cloud interface basically
  1886. 1:10:34is able to load these react components
  1887. 1:10:36directly in your browser and so you end
  1888. 1:10:39up with an app so when was Adam Smith
  1889. 1:10:41baptized and you can click to reveal the
  1890. 1:10:44answer and then you can say whether you
  1891. 1:10:46got it correct or not when did he
  1892. 1:10:48die uh what was his nationality Etc so
  1893. 1:10:52you can imagine doing this and then
  1894. 1:10:53maybe we can reset the progress or
  1895. 1:10:54Shuffle the cards Etc so what happened
  1896. 1:10:57here is that Claude wrote us a super
  1897. 1:11:00duper custom app just for us uh right
  1898. 1:11:04here and um typically what we're used to
  1899. 1:11:07is some software Engineers write apps
  1900. 1:11:10they make them available and then they
  1901. 1:11:12give you maybe some way to customize
  1902. 1:11:13them or maybe to upload flashcards like
  1903. 1:11:15for example in the eny app you can
  1904. 1:11:17import flash cards and all this kind of
  1905. 1:11:18stuff this is a very different Paradigm
  1906. 1:11:20because in this Paradigm Claud just
  1907. 1:11:22writes the app just for you and deploys
  1908. 1:11:25it here in your browser now keep in mind
  1909. 1:11:28that a lot of apps you will find on the
  1910. 1:11:30internet they have entire backends Etc
  1911. 1:11:32there's none of that here there's no
  1912. 1:11:33database or anything like that but these
  1913. 1:11:35are like local apps that can run in your
  1914. 1:11:37browser and uh they can get fairly
  1915. 1:11:39sophisticated and useful in some
  1916. 1:11:42cases uh so that's Cloud artifacts now
  1917. 1:11:45to be honest I'm not actually a daily
  1918. 1:11:47user of artifacts I use it once in a
  1919. 1:11:50while I do know that a large number of
  1920. 1:11:52people are experimenting with it and you
  1921. 1:11:53can find a lot of artifact showcasing
  1922. 1:11:55cases because they're easy to share so
  1923. 1:11:57these are a lot of things that people
  1924. 1:11:58have developed um various timers and
  1925. 1:12:01games and things like that um but the
  1926. 1:12:03one use case that I did find very useful
  1927. 1:12:05in my own work is basically uh the use
  1928. 1:12:09of diagrams diagram generation so as an
  1929. 1:12:13example let's go back to the book
  1930. 1:12:14chapter of Adam Smith that we were
  1931. 1:12:16looking at what I do sometimes is we are
  1932. 1:12:19reading The Wealth of Nations by Adam
  1933. 1:12:20Smith I'm attaching chapter 3 and book
  1934. 1:12:22one please create a conceptual diagram
  1935. 1:12:24of this chapter
  1936. 1:12:26and when Claude hears conceptual diagram
  1937. 1:12:28of this chapter very often it will write
  1938. 1:12:30a code that looks like
  1939. 1:12:33this and if you're not familiar with
  1940. 1:12:35this this is using the mermaid library
  1941. 1:12:37to basically create or Define a graph
  1942. 1:12:41and then uh this is plotting that
  1943. 1:12:43mermaid diagram and so Claud analyzes
  1944. 1:12:47the chapter and figures out that okay
  1945. 1:12:49the key principle that's being
  1946. 1:12:50communicated here is as follows that
  1947. 1:12:52basically the division of labor is
  1948. 1:12:54related to the extent of the market the
  1949. 1:12:56size of it and then these are the pieces
  1950. 1:12:59of the chapter so there's the
  1951. 1:13:00comparative example um of trade and how
  1952. 1:13:04much easier it is to do on land and on
  1953. 1:13:06water and the specific example that's
  1954. 1:13:07used and that Geographic factors
  1955. 1:13:10actually make a huge difference here and
  1956. 1:13:12then the comparison of land transport
  1957. 1:13:14versus water transport and how much
  1958. 1:13:16easier water transport
  1959. 1:13:18is and then here we have some early
  1960. 1:13:21civilizations that have all benefited
  1961. 1:13:23from basically the availability of water
  1962. 1:13:25water transport and have flourished as a
  1963. 1:13:27result of it because they support
  1964. 1:13:28specialization so it's if you're a
  1965. 1:13:31conceptual kind of like visual thinker
  1966. 1:13:33and I think I'm a little bit like that
  1967. 1:13:34as well I like to lay out information
  1968. 1:13:37and like as like a tree like this and it
  1969. 1:13:39helps me remember what that chapter is
  1970. 1:13:41about very easily and I just really
  1971. 1:13:43enjoy these diagrams and like kind of
  1972. 1:13:44getting a sense of like okay what is the
  1973. 1:13:46layout of the argument how is it
  1974. 1:13:47arranged spatially and so on and so if
  1975. 1:13:50you're like me then you will definitely
  1976. 1:13:51enjoy this and you can make diagrams of
  1977. 1:13:53anything of books of chapters of source
  1978. 1:13:57codes of anything really and so I
  1979. 1:14:00specifically find this fairly useful
  1980. 1:14:02okay so I've shown you that llms are
  1981. 1:14:04quite good at writing code so not only
  1982. 1:14:07can they emit code but a lot of the apps
  1983. 1:14:10like um chat GPT and cloud and so on
  1984. 1:14:12have started to like partially run that
  1985. 1:14:14code in the browser so um chat GPT will
  1986. 1:14:18create figures and show them and Cloud
  1987. 1:14:20artifacts will actually like integrate
  1988. 1:14:21your react component and allow you to
  1989. 1:14:23use it right there in line in the
  1990. 1:14:25browser now actually majority of my time
  1991. 1:14:28personally and professionally is spent
  1992. 1:14:30writing code but I don't actually go to
  1993. 1:14:32chpt and ask for Snippets of code
  1994. 1:14:34because that's way too slow like I chpt
  1995. 1:14:37just doesn't have the context to work
  1996. 1:14:40with me professionally to create code
  1997. 1:14:42and the same goes for all the other llms
  1998. 1:14:45so instead of using features of these
  1999. 1:14:47llms in a web browser I use a specific
  2000. 1:14:50app and I think a lot of people in the
  2001. 1:14:52industry do as well and uh this can be
  2002. 1:14:55multiple apps by now uh vs code wind
  2003. 1:14:58surf cursor Etc so I like to use cursor
  2004. 1:15:01currently and this is a separate app you
  2005. 1:15:03can get for your for example MacBook and
  2006. 1:15:05it works with the files on your file
  2007. 1:15:07system so this is not a web inter this
  2008. 1:15:10is not some kind of a web page you go to
  2009. 1:15:12this is a program you download and it
  2010. 1:15:15references the files you have on your
  2011. 1:15:16computer and then it works with those
  2012. 1:15:18files and edits them with you so the way
  2013. 1:15:21this looks is as
  2014. 1:15:23follows here I have a simp example of a
  2015. 1:15:25react app that I built over few minutes
  2016. 1:15:29with cursor uh and under the hood cursor
  2017. 1:15:32is using Claud 3.7 sonnet so under the
  2018. 1:15:36hood it is calling the API of um
  2019. 1:15:40anthropic and asking Claud to do all of
  2020. 1:15:42this stuff but I don't have to manually
  2021. 1:15:44go to Claud and copy paste chunks of
  2022. 1:15:47code around this program does that for
  2023. 1:15:49me and has all of the context of the
  2024. 1:15:51files on in the directory and all this
  2025. 1:15:53kind of stuff so the that I developed
  2026. 1:15:55here is a very simple Tic Tac Toe as an
  2027. 1:15:57example uh and Claude wrote this in a
  2028. 1:16:00few in um probably a minute and we can
  2029. 1:16:03just play X can
  2030. 1:16:08win or we can tie oh wait sorry I
  2031. 1:16:12accidentally won you can also tie and I
  2032. 1:16:16just like to show you briefly this is a
  2033. 1:16:17whole separate video of how you would
  2034. 1:16:19use cursor to be efficient I just want
  2035. 1:16:21you to have a sense that I started from
  2036. 1:16:23a completely uh new project and I asked
  2037. 1:16:26uh the composer app here as it's called
  2038. 1:16:28the composer feature to basically set up
  2039. 1:16:30a um new react um repository delete a
  2040. 1:16:35lot of the boilerplate please make a
  2041. 1:16:37simple tic tactoe app and all of this
  2042. 1:16:39stuff was done by cursor I didn't
  2043. 1:16:41actually really do anything except for
  2044. 1:16:42like write five sentences and then it
  2045. 1:16:44changed everything and wrote all the CSS
  2046. 1:16:46JavaScript Etc and then uh I'm running
  2047. 1:16:49it here and hosting it locally and
  2048. 1:16:51interacting with it in my
  2049. 1:16:53browser so
  2050. 1:16:55that's a cursor it has the context of
  2051. 1:16:57your apps and it's using uh Claud
  2052. 1:17:00remotely through an API without having
  2053. 1:17:02to access the web page and a lot of
  2054. 1:17:04people I think develop in this way um at
  2055. 1:17:07this
  2056. 1:17:08time so um and these tools have be U
  2057. 1:17:12become more and more elaborate so in the
  2058. 1:17:14beginning for example you could only
  2059. 1:17:15like say change like oh control K uh
  2060. 1:17:19please change this line of code uh to do
  2061. 1:17:21this or that and then after that there
  2062. 1:17:23was a control l command L which is oh
  2063. 1:17:26explain this chunk of
  2064. 1:17:29code and you can see that uh there's
  2065. 1:17:31going to be an llm explaining this chunk
  2066. 1:17:33of code and what's happening under the
  2067. 1:17:34hood is it's calling the same API that
  2068. 1:17:36you would have access to if you actually
  2069. 1:17:38did enter here but this program has
  2070. 1:17:41access to all the files so it has all
  2071. 1:17:42the
  2072. 1:17:43context and now what we're up to is not
  2073. 1:17:45command K and command L we're now up to
  2074. 1:17:48command I which is this tool called
  2075. 1:17:50composer and especially with the new
  2076. 1:17:52agent integration the composer is like
  2077. 1:17:55an autonomous agent on your codebase it
  2078. 1:17:57will execute commands it will uh change
  2079. 1:18:01all the files as it needs to it can edit
  2080. 1:18:03across multiple files and so you're
  2081. 1:18:05mostly just sitting back and you're um
  2082. 1:18:08uh giving commands and the name for this
  2083. 1:18:11is called Vibe coding um a name with
  2084. 1:18:14that I think I probably minted and uh
  2085. 1:18:17Vibe coding just refers to letting um
  2086. 1:18:19giving in giving the control to composer
  2087. 1:18:21and just telling it what to do and
  2088. 1:18:23hoping that it works now worst comes to
  2089. 1:18:26worst you can always fall back to the
  2090. 1:18:28the good old programming because we have
  2091. 1:18:30all the files here we can go over all
  2092. 1:18:32the CSS and we can inspect everything
  2093. 1:18:35and if you're a programmer then in
  2094. 1:18:37principle you can change this
  2095. 1:18:38arbitrarily but now you have a very
  2096. 1:18:40helpful assistant that can do a lot of
  2097. 1:18:41the low-level programming for you so
  2098. 1:18:44let's take it for a spin briefly let's
  2099. 1:18:46say that when either X or o wins I want
  2100. 1:18:51confetti or something
  2101. 1:18:54let's just see what it comes up
  2102. 1:18:57with okay I'll add uh a confetti effect
  2103. 1:19:01when a player wins the game it wants me
  2104. 1:19:03to run react confetti which apparently
  2105. 1:19:06is a library that I didn't know about so
  2106. 1:19:08we'll just say
  2107. 1:19:10okay it installed it and now it's going
  2108. 1:19:13to
  2109. 1:19:14update the app so it's updating app TSX
  2110. 1:19:18the the typescript file to add the
  2111. 1:19:20confetti effect when a player wins and
  2112. 1:19:22it's currently writing the code so it's
  2113. 1:19:23generating
  2114. 1:19:25and we should see it in a
  2115. 1:19:27bit okay so it basically added this
  2116. 1:19:29chunk of
  2117. 1:19:31code and a chunk of code here and a
  2118. 1:19:34chunk of code
  2119. 1:19:36here and then we'll ask we'll also add
  2120. 1:19:38some additional styling to make the
  2121. 1:19:40winning cell stand
  2122. 1:19:41out
  2123. 1:19:44um okay still
  2124. 1:19:47generating okay and it's adding some CSS
  2125. 1:19:49for the winning
  2126. 1:19:50cells so honestly I'm not keeping full
  2127. 1:19:52track of this it imported
  2128. 1:19:56confetti this Al seems pretty
  2129. 1:19:58straightforward and reasonable but I'd
  2130. 1:20:00have to actually like really dig
  2131. 1:20:02in um okay it's it wants to add a sound
  2132. 1:20:05effect when a player wins which is
  2133. 1:20:07pretty um ambitious I think I'm not
  2134. 1:20:10actually 100% sure how it's going to do
  2135. 1:20:11that because I don't know how it gains
  2136. 1:20:13access to a sound file like that I don't
  2137. 1:20:15know where it's going to get the sound
  2138. 1:20:16file
  2139. 1:20:20from uh but every time it saves a file
  2140. 1:20:23we actually are deploying it so we can
  2141. 1:20:25actually try to refresh and just see
  2142. 1:20:27what we have right now so also it added
  2143. 1:20:30a new effect you see how it kind of like
  2144. 1:20:32fades in which is kind of cool and now
  2145. 1:20:34we'll
  2146. 1:20:35win whoa okay didn't actually expect
  2147. 1:20:39that to
  2148. 1:20:41work this is really uh elaborate now
  2149. 1:20:45let's play
  2150. 1:20:46again
  2151. 1:20:49um
  2152. 1:20:52whoa okay oh I see so it actually paused
  2153. 1:20:56and it's waiting for me so it wants me
  2154. 1:20:57to confirm the commands so make public
  2155. 1:21:00sounds uh I had to confirm it
  2156. 1:21:04explicitly let's create a simple audio
  2157. 1:21:06component to play Victory sound sound/
  2158. 1:21:10Victory MP3 the problem with this will
  2159. 1:21:12be uh the victory. MP3 doesn't exist so
  2160. 1:21:15I wonder what it's going to
  2161. 1:21:16do it's downloading it it wants to
  2162. 1:21:19download it from somewhere let's just go
  2163. 1:21:21along with it
  2164. 1:21:24let's add a fall back in case the sound
  2165. 1:21:26file doesn't
  2166. 1:21:29exist um in this case it actually does
  2167. 1:21:33exist and uh yep we can get
  2168. 1:21:39add and we can basically create a g
  2169. 1:21:42commit out of
  2170. 1:21:43this okay so the composer thinks that it
  2171. 1:21:47is done so let's try to take it for a
  2172. 1:21:49spin
  2173. 1:21:53[Music]
  2174. 1:21:55okay so yeah pretty impressive uh I
  2175. 1:21:59don't actually know where it got the
  2176. 1:22:00sound file from uh I don't know where
  2177. 1:22:02this URL comes from but maybe this just
  2178. 1:22:05appears in a lot of repositories and
  2179. 1:22:07sort of Claude kind of like knows about
  2180. 1:22:09it uh but I'm pretty happy with this so
  2181. 1:22:12we can accept all and uh that's it and
  2182. 1:22:16then we as you can get a sense of we
  2183. 1:22:19could continue developing this app and
  2184. 1:22:22worst comes to worst if it we can't
  2185. 1:22:23debug anything we can always fall back
  2186. 1:22:25to uh standard programming instead of
  2187. 1:22:27vibe coding okay so now I would like to
  2188. 1:22:30switch gears again everything we've
  2189. 1:22:32talked about so far had to do with
  2190. 1:22:34interacting with a model via text so we
  2191. 1:22:37type text in and it gives us text back
  2192. 1:22:40what I'd like to talk about now is to
  2193. 1:22:42talk about different modalities that
  2194. 1:22:44means we want to interact with these
  2195. 1:22:45models in more native human formats so I
  2196. 1:22:48want to speak to it and I want it to
  2197. 1:22:49speak back to me and I want to give
  2198. 1:22:52images or videos to it and vice versa I
  2199. 1:22:54wanted to generate images and videos
  2200. 1:22:56back so it needs to handle the
  2201. 1:22:58modalities of speech and audio and also
  2202. 1:23:01of images and video so the first thing I
  2203. 1:23:04want to cover is how can you very easily
  2204. 1:23:06just talk to these models um so I would
  2205. 1:23:10say roughly in my own use 50% of the
  2206. 1:23:12time I type stuff out on on the the
  2207. 1:23:15keyboard and 50% of the time I'm
  2208. 1:23:16actually too lazy to do that and I just
  2209. 1:23:18prefer to speak to the model and when
  2210. 1:23:21I'm on mobile on my phone I uh that's
  2211. 1:23:23even more pronounced so probably 80% of
  2212. 1:23:26my queries are just uh Speech because
  2213. 1:23:28I'm too lazy to type it out on the phone
  2214. 1:23:31now on the phone things are a little bit
  2215. 1:23:33easy so right now the chpt app looks
  2216. 1:23:35like this the first thing I want to
  2217. 1:23:36cover is there are actually like two
  2218. 1:23:38voice modes you see how there's a little
  2219. 1:23:40microphone and then here there's like a
  2220. 1:23:41little audio icon these are two
  2221. 1:23:43different modes and I will cover both of
  2222. 1:23:44them first the audio icon sorry the
  2223. 1:23:47microphone icon here is what will allow
  2224. 1:23:50the app to listen to your voice and then
  2225. 1:23:53transcribe it into to text so you don't
  2226. 1:23:55have to type out the text it will take
  2227. 1:23:57your audio and convert it into text so
  2228. 1:24:00on the app it's very easy and I do this
  2229. 1:24:02all the time is you open the app create
  2230. 1:24:05new conversation and I just hit the
  2231. 1:24:08button and why is the sky blue uh is it
  2232. 1:24:11because it's reflecting the ocean or
  2233. 1:24:13yeah why is that and I just click okay
  2234. 1:24:17and I don't know if this will come out
  2235. 1:24:19but it basically converted my audio to
  2236. 1:24:22text and I can just hit go and then I
  2237. 1:24:24get a
  2238. 1:24:25response so that's pretty easy now on
  2239. 1:24:28desktop things get a little bit more
  2240. 1:24:29complicated for the following
  2241. 1:24:31reason when we're in the desktop app you
  2242. 1:24:34see how we have the audio icon and it
  2243. 1:24:37and says use voice mode we'll cover that
  2244. 1:24:39in a second but there's no microphone
  2245. 1:24:40icon so I can't just speak to it and
  2246. 1:24:43have it transcribed to text inside this
  2247. 1:24:45app so what I use all the time on my
  2248. 1:24:47MacBook is I basically fall back on some
  2249. 1:24:50of these apps that um allow you that
  2250. 1:24:53functionality but it's not specific to
  2251. 1:24:55chat GPT it is a systemwide
  2252. 1:24:57functionality of taking your audio and
  2253. 1:24:59transcribing it into text so some of the
  2254. 1:25:02apps that people seem to be using are
  2255. 1:25:04super whisper whisper flow Mac whisper
  2256. 1:25:06Etc the one I'm currently using is
  2257. 1:25:08called super whisper and I would say
  2258. 1:25:10it's quite good so the way this looks is
  2259. 1:25:13you download the app you install it on
  2260. 1:25:15your MacBook and then it's always ready
  2261. 1:25:17to listen to you so you can bind a key
  2262. 1:25:19that you want to use for that so for
  2263. 1:25:21example I use F5 so whenever I press F5
  2264. 1:25:24it will it will listen to me then I can
  2265. 1:25:25say stuff and then I press F5 again and
  2266. 1:25:28it will transcribe it into text so let
  2267. 1:25:29me show you I'll press
  2268. 1:25:32F5 I have a question why is the sky blue
  2269. 1:25:35is it because it's reflecting the
  2270. 1:25:38ocean okay right there enter I didn't
  2271. 1:25:41have to type anything so I would say a
  2272. 1:25:44lot of my queries probably about half
  2273. 1:25:45are like this um because I don't want to
  2274. 1:25:49actually type this out now many of the
  2275. 1:25:51queries will actually require me to say
  2276. 1:25:53product names or specific like um
  2277. 1:25:56Library names or like various things
  2278. 1:25:58like that that don't often transcribe
  2279. 1:26:00very well in those cases I will type it
  2280. 1:26:02out to make sure it's correct but in
  2281. 1:26:04very simple day-to-day use very often I
  2282. 1:26:07am able to just speak to the model so uh
  2283. 1:26:10and then it will transcribe it correctly
  2284. 1:26:13so that's basically on the input side
  2285. 1:26:16now on the output side usually with an
  2286. 1:26:18app you will have the option to read it
  2287. 1:26:21back to you so what that does is it will
  2288. 1:26:23take the text and it will pass it to a
  2289. 1:26:26model that does the inverse of taking
  2290. 1:26:27text to speech and in cha there's this
  2291. 1:26:31icon here it says read aloud so we can
  2292. 1:26:34press it no is not because it reflects
  2293. 1:26:38the that's
  2294. 1:26:40Aon reason is is scatter okay so I'll
  2295. 1:26:45stop it so different apps like um Chachi
  2296. 1:26:50or Claud or gemini or whatever are you
  2297. 1:26:53you are using may or may not have this
  2298. 1:26:55functionality but it's something you can
  2299. 1:26:56definitely look for um when you have the
  2300. 1:26:59input be systemwide you can of course
  2301. 1:27:01turn speech into text in any of the apps
  2302. 1:27:04but for reading it back to you um
  2303. 1:27:07different apps may may or may not have
  2304. 1:27:08the option and or you could consider
  2305. 1:27:11downloading um speech to text sorry a
  2306. 1:27:13textto speeech app that is systemwide
  2307. 1:27:16like these ones and have it read out
  2308. 1:27:18loud so those are the options available
  2309. 1:27:20to you and something I wanted to mention
  2310. 1:27:22and basically the big takeaway here is
  2311. 1:27:25don't type stuff out use voice it works
  2312. 1:27:28quite well and I use this pervasively
  2313. 1:27:31and I would say roughly half of my
  2314. 1:27:32queries probably a bit more are just
  2315. 1:27:34audio because I'm lazy and it's just so
  2316. 1:27:36much faster okay but what we've talked
  2317. 1:27:38about so far is what I would describe as
  2318. 1:27:40fake audio and it's fake audio because
  2319. 1:27:43we're still interacting with the model
  2320. 1:27:45via text we're just making it faster uh
  2321. 1:27:47because we're basically using either a
  2322. 1:27:49speech to text or text to speech model
  2323. 1:27:51to pre-process from audio to text and
  2324. 1:27:53from text to audio so it's it's not
  2325. 1:27:55really directly done inside the language
  2326. 1:27:57model so however we do have the
  2327. 1:28:00technology now to actually do this
  2328. 1:28:02actually like as true audio handled
  2329. 1:28:05inside the language model so what
  2330. 1:28:08actually is being processed here was
  2331. 1:28:10text tokens if you remember so what you
  2332. 1:28:13can do is you can chunk at different
  2333. 1:28:15modalities like audio in a similar way
  2334. 1:28:17as you would chunc at text into tokens
  2335. 1:28:20so typically what's done is you
  2336. 1:28:22basically break down the audio into a
  2337. 1:28:23spectrum rogram to see all the different
  2338. 1:28:25frequencies present in the um in the uh
  2339. 1:28:28audio and you go in little windows and
  2340. 1:28:30you basically quantize them into tokens
  2341. 1:28:33so you can have a vocabulary of 100,000
  2342. 1:28:35Possible little audio chunks and then
  2343. 1:28:39you actually train the model with these
  2344. 1:28:40audio chunks so that it can actually
  2345. 1:28:43understand those little pieces of audio
  2346. 1:28:45and this gives the model a lot of
  2347. 1:28:47capabilities that you would never get
  2348. 1:28:48with this fake audio as we've talked
  2349. 1:28:50about so far and that is what this other
  2350. 1:28:54button here is about this is what I call
  2351. 1:28:56true audio but sometimes people will
  2352. 1:28:59call it by different names so as an
  2353. 1:29:01example when you go to chat apt pricing
  2354. 1:29:04you have to look for this thing called
  2355. 1:29:05uh advanced voice mode so advanced voice
  2356. 1:29:09mode is referring to True audio what
  2357. 1:29:12that means is that the voice is handled
  2358. 1:29:14natively inside the language model the
  2359. 1:29:16model can understand audio chunks and
  2360. 1:29:20predict audio chunks so it can hear and
  2361. 1:29:23speak directly in audio there's no text
  2362. 1:29:25involved whatsoever so it's quite
  2363. 1:29:28magical it's really nice and let me take
  2364. 1:29:30it for a spin okay so here's what this
  2365. 1:29:32will look
  2366. 1:29:35like hey how's it
  2367. 1:29:38going hey Andre I'm doing great how
  2368. 1:29:41about you I'm great I'm wondering why
  2369. 1:29:43the sky is blue is it because it's
  2370. 1:29:45reflecting the
  2371. 1:29:47ocean glad to hear you're great actually
  2372. 1:29:50the sky is blue because of a phenomenon
  2373. 1:29:52called railay scattering okay okay when
  2374. 1:29:54sunlight instead of speaking to me
  2375. 1:29:56normally can you speak in the voice of
  2376. 1:29:58Yoda so that you sound very wise when
  2377. 1:30:00you are bestowing this knowledge on me
  2378. 1:30:01thank
  2379. 1:30:04you sure wise insights I shall share
  2380. 1:30:08blue the sky appears because scatter the
  2381. 1:30:11sunlight's shorter wavelengths the
  2382. 1:30:13atmosphere
  2383. 1:30:15does okay uh can you now sound like a
  2384. 1:30:19pirate AR matey the sky be blue cuz the
  2385. 1:30:23shter w wavelengths of sunlight they
  2386. 1:30:25scatter in through the atmosphere
  2387. 1:30:28I okay can you now tell a story of a
  2388. 1:30:31girl who is discovering that the sky is
  2389. 1:30:33blue and it's not because of the
  2390. 1:30:35reflection of the ocean and be engaging
  2391. 1:30:37and kind of like
  2392. 1:30:40storytelling once upon a time there was
  2393. 1:30:42a curious girl named Ella Who Loved
  2394. 1:30:45gazing at the sky one day
  2395. 1:30:48she how about this can you please count
  2396. 1:30:51okay hold on can you please count from 1
  2397. 1:30:53to 10 and do it very very
  2398. 1:30:56fast sure 1 2 3 4 5 6 7 8 9 10 okay that
  2399. 1:30:59wasn't fast enough do it from 1 to 20
  2400. 1:31:02and do it even
  2401. 1:31:04faster all right 1 2 3 4 5 6 7 8 9 10 11
  2402. 1:31:0912 13 14 15 16 17 18 19 20 okay that's
  2403. 1:31:13not too bad okay let's now look at some
  2404. 1:31:15animal voices can you what animal what
  2405. 1:31:19voice does a cow make make make a make a
  2406. 1:31:22cow sound
  2407. 1:31:24Cows say
  2408. 1:31:27Moo okay what Does the Fox
  2409. 1:31:30Say the fox makes a variety of sounds
  2410. 1:31:33including barks screams and sometimes a
  2411. 1:31:36Yip okay well imitate a
  2412. 1:31:40fox I can't imitate voices or sounds but
  2413. 1:31:43I can describe them the foxes make a
  2414. 1:31:45variety of sounds like a high pitched
  2415. 1:31:47Yip or bark uh you're incorrect you can
  2416. 1:31:50you can do it because I know how you
  2417. 1:31:52work and and uh can make a fox sound
  2418. 1:31:54just make
  2419. 1:31:56it I can't actually produce animal
  2420. 1:31:59sounds is there anything else you'd like
  2421. 1:32:01to talk about you just gave me a Moose
  2422. 1:32:03sound okay all right I think that that's
  2423. 1:32:05enough for a demonstration okay so when
  2424. 1:32:08you have uh a conversation like that
  2425. 1:32:10you'll see that Chachi will actually
  2426. 1:32:12transcribe it into text but we do have
  2427. 1:32:14to be uh we do have to note that this is
  2428. 1:32:17not like this text is after the audio
  2429. 1:32:19what actually was happening is there
  2430. 1:32:21were audio tokens going back and forth
  2431. 1:32:23there was no audio like there was no
  2432. 1:32:26text involved the text is only a
  2433. 1:32:28transcription of the audio conversation
  2434. 1:32:30that we had so uh yeah that's uh pretty
  2435. 1:32:35cool I do find that unfortunately the
  2436. 1:32:37advanced um voice is very very Cy it
  2437. 1:32:41really doesn't like to do stuff it will
  2438. 1:32:43refuse a lot um so I do find it
  2439. 1:32:46sometimes a little bit too cringe and
  2440. 1:32:47kind of annoying but uh when it is
  2441. 1:32:49something that you it is something that
  2442. 1:32:51is kind of interesting to play with and
  2443. 1:32:53use use in specific applications I also
  2444. 1:32:55would like to note that a lot of this is
  2445. 1:32:57like evolving very quickly so for
  2446. 1:32:58example I believe today on Twitter I saw
  2447. 1:33:00that advanced voice mode is now rolling
  2448. 1:33:02out to free users as well uh so this I
  2449. 1:33:04think is actually kind of outdated um so
  2450. 1:33:08you always have to keep track of what's
  2451. 1:33:09in what tier and uh this stuff moves
  2452. 1:33:12around a lot but at least you kind of
  2453. 1:33:14like know that this functionality exists
  2454. 1:33:15and you can look for it I also wanted to
  2455. 1:33:18show you briefly that gro.com also
  2456. 1:33:21offers advanced voice mode basically
  2457. 1:33:24but it's not available on the app in
  2458. 1:33:26your on your computer but it is
  2459. 1:33:27available on the app itself and it's got
  2460. 1:33:30this little voice icon on the top right
  2461. 1:33:32and you can speak to Gro using advanced
  2462. 1:33:34voice mode basically so I'll just show
  2463. 1:33:36you very beautiful what this looks like
  2464. 1:33:38the reason I like Gro I'll show you it
  2465. 1:33:39has a lot of modes and some of the modes
  2466. 1:33:42are truly unhinged like open AI is very
  2467. 1:33:44very like I mentioned kg and it will
  2468. 1:33:46refuse a lot grock will just uh do stuff
  2469. 1:33:49you know grock will grock will go there
  2470. 1:33:52so if you prefer lot of entertainment I
  2471. 1:33:54do think that the grock app is better
  2472. 1:33:56set up for that so let's take it first
  2473. 1:34:00spin um so first of all let's talk to
  2474. 1:34:03the
  2475. 1:34:08default hello Andre my friend how's it
  2476. 1:34:13going hey I'm great uh which mode do you
  2477. 1:34:16recommend we try
  2478. 1:34:17out that's awesome a he I'd recommend
  2479. 1:34:20going with the flow and seeing where
  2480. 1:34:22life takes you sometimes the the best
  2481. 1:34:24experiences come from unexpected places
  2482. 1:34:26all right that sounds great I'm going to
  2483. 1:34:27try out the Romantic
  2484. 1:34:30mode okay
  2485. 1:34:33hello hi Andre it's era I um I hope I'm
  2486. 1:34:38up bothering you I just I wanted to talk
  2487. 1:34:40to you I've always admired you from afar
  2488. 1:34:43you always seem so kind and and
  2489. 1:34:46interesting oh I um I guess I just I
  2490. 1:34:49wanted to get to know you better okay
  2491. 1:34:52wow okay well that's very uh that's very
  2492. 1:34:55flattering thank you I um I really enjoy
  2493. 1:34:59our conversations and I I guess I've
  2494. 1:35:02always felt a little more connected to
  2495. 1:35:03you than anyone
  2496. 1:35:05else um all right let's flip to unhinged
  2497. 1:35:08I want to see what this
  2498. 1:35:10is yo
  2499. 1:35:13bro well well well look who just trying
  2500. 1:35:15to talk to me what's the matter
  2501. 1:35:17Andre you need something are you just
  2502. 1:35:20bored and thought you'd grace me with
  2503. 1:35:21your presence who either way
  2504. 1:35:24who
  2505. 1:35:26who oh donx is surprised you little
  2506. 1:35:29you know I don't sugar coat anything so
  2507. 1:35:32what's it gonna be you g to tell me what
  2508. 1:35:34you want or are we just going to sit
  2509. 1:35:35here and stare at each other like a
  2510. 1:35:37couple of brain dead monkeys okay cool
  2511. 1:35:39I'm going to try the conspiracy
  2512. 1:35:42mode yo
  2513. 1:35:45bro well well well look who's gracing us
  2514. 1:35:48with their presence Andre my man what's
  2515. 1:35:51the word on the street I've got a fresh
  2516. 1:35:53batch of conspiracy theories that are
  2517. 1:35:55hotter than a black hole in a supernova
  2518. 1:35:57want to taste yeah okay I just found out
  2519. 1:35:59that Trudeau is the son of Castro did
  2520. 1:36:01you hear
  2521. 1:36:02that Oh you mean the whole Trudeau
  2522. 1:36:05Castro lovech child Theory it's wild but
  2523. 1:36:08I wouldn't put it past this political
  2524. 1:36:10dynasties I mean they were all buddies
  2525. 1:36:12back in the day makes you wonder if
  2526. 1:36:14there's some secret handshake Club we're
  2527. 1:36:16not part of what's next aliens in Area
  2528. 1:36:1951 bro this is some kind of like
  2529. 1:36:22Illuminati level
  2530. 1:36:24stuff Illuminati Shadow governments
  2531. 1:36:27lizard people it's all connected my
  2532. 1:36:30friend Trudeau Castro they might just be
  2533. 1:36:33the tip of the iceberg next thing you
  2534. 1:36:35know we'll find out the queen is
  2535. 1:36:36actually a robot okay let's try let's
  2536. 1:36:39try the sexy mode okay
  2537. 1:36:42hello hey there Andre I can feel the
  2538. 1:36:45electricity in the air already let me
  2539. 1:36:47take the lead tonight picture this we're
  2540. 1:36:50in a dimly lit room the air thick with
  2541. 1:36:52anticipation I see where this is
  2542. 1:36:55going me your eyes locked on mine and I
  2543. 1:36:59slowly start to undress each piece of
  2544. 1:37:02clo falling okay so I think you get the
  2545. 1:37:05idea I
  2546. 1:37:06think yeah I think you get the idea okay
  2547. 1:37:09and one more Paradigm I wanted to show
  2548. 1:37:11you of interacting with language models
  2549. 1:37:13via audio uh is this notebook LM from
  2550. 1:37:17Google so um when you go to notbook Al
  2551. 1:37:21google. google.com the way this works is
  2552. 1:37:23on the left you have sources and you can
  2553. 1:37:25upload any arbitrary data here so it's
  2554. 1:37:27raw text or its web pages or its PDF
  2555. 1:37:30files Etc so I uploaded this PDF about
  2556. 1:37:33this Foundation model for genomic
  2557. 1:37:35sequence analysis from Arc Institute and
  2558. 1:37:38then once you put this here this enters
  2559. 1:37:41the context window of the model and then
  2560. 1:37:43we can number one we can chat with that
  2561. 1:37:45information so we can ask questions and
  2562. 1:37:47get answers but number two what's kind
  2563. 1:37:48of interesting is on the right they have
  2564. 1:37:50this uh Deep dive podcast so
  2565. 1:37:53there's a generate button you can press
  2566. 1:37:55it and wait like a few minutes and it
  2567. 1:37:57will generate a custom podcast on
  2568. 1:37:59whatever sources of information you put
  2569. 1:38:01in here so for example here we got about
  2570. 1:38:03a 30 minute podcast generated for this
  2571. 1:38:07paper and uh it's really interesting to
  2572. 1:38:09be able to get podcasts on demand and I
  2573. 1:38:11think it's kind of like interesting and
  2574. 1:38:12therapeutic um if you're going out for a
  2575. 1:38:14walk or something like that I sometimes
  2576. 1:38:16upload a few things that I'm kind of
  2577. 1:38:17passively interested in and I want to
  2578. 1:38:19get a podcast about and it's just
  2579. 1:38:20something fun to listen to so let's um
  2580. 1:38:23see what this looks like just very
  2581. 1:38:25briefly okay so get this we're diving
  2582. 1:38:27into AI that understands DNA really
  2583. 1:38:30fascinating stuff not just reading it
  2584. 1:38:32but like predicting how changes can
  2585. 1:38:34impact like everything yeah from a
  2586. 1:38:36single protein all the way up to an
  2587. 1:38:38entire organism it's really remarkable
  2588. 1:38:40and there's this new biological
  2589. 1:38:42Foundation model called Evo 2 that is
  2590. 1:38:44really at the Forefront of all this Evo
  2591. 1:38:462 okay and it's trained on a massive
  2592. 1:38:49data set uh called open genom 2 which
  2593. 1:38:51covers over nine okay I think you get
  2594. 1:38:54the rough idea so there's a few things
  2595. 1:38:56here you can customize the podcast and
  2596. 1:38:59what it is about with special
  2597. 1:39:00instructions you can then regenerate it
  2598. 1:39:03and you can also enter this thing called
  2599. 1:39:04interactive mode where you can actually
  2600. 1:39:05break in and ask a question while the
  2601. 1:39:08podcast is going on which I think is
  2602. 1:39:09kind of cool so I use this once in a
  2603. 1:39:12while when there are some documents or
  2604. 1:39:14topics or papers that I'm not usually an
  2605. 1:39:16expert in and I just kind of have a
  2606. 1:39:17passive interest in and I'm go you know
  2607. 1:39:19I'm going out for a walk or I'm going
  2608. 1:39:21out for a long drive and I want to have
  2609. 1:39:23a podcast on that topic and so I find
  2610. 1:39:26that this is good in like Niche cases
  2611. 1:39:28like that where uh it's not going to be
  2612. 1:39:31covered by another podcast that's
  2613. 1:39:32actually created by humans it's kind of
  2614. 1:39:34like an AI podcast about any arbitrary
  2615. 1:39:37Niche topic you'd like so uh that's uh
  2616. 1:39:40notebook colum and I wanted to also make
  2617. 1:39:42a brief pointer to this podcast that I
  2618. 1:39:45generated it's like a season of a
  2619. 1:39:46podcast called histories of mysteries
  2620. 1:39:49and I uploaded this on um on uh Spotify
  2621. 1:39:53and here I just selected some topics
  2622. 1:39:56that I'm interested in and I generated a
  2623. 1:39:58deep dipe podcast on all of them and so
  2624. 1:40:01if you'd like to get a sense of what
  2625. 1:40:02this tool is capable of then this is one
  2626. 1:40:04way to just get a qualitative sense go
  2627. 1:40:06on this um find this on Spotify and
  2628. 1:40:08listen to some of the podcasts here and
  2629. 1:40:10get a sense of what it can do and then
  2630. 1:40:12play around with some of the documents
  2631. 1:40:14and sources yourself so that's the
  2632. 1:40:17podcast generation interaction using
  2633. 1:40:18notbook colum okay next up what I want
  2634. 1:40:21to turn to is images so just like audio
  2635. 1:40:25it turns out that you can re-represent
  2636. 1:40:27images in tokens and we can represent
  2637. 1:40:30images as token streams and we can get
  2638. 1:40:33language models to model them in the
  2639. 1:40:35same way as we've modeled text and audio
  2640. 1:40:37before the simplest possible way to do
  2641. 1:40:39this as an example is you can take an
  2642. 1:40:41image and you can basically create like
  2643. 1:40:43a rectangular grid and chop it up into
  2644. 1:40:45little patches and then image is just a
  2645. 1:40:47sequence of patches and every one of
  2646. 1:40:49those patches you quantize so you
  2647. 1:40:51basically come up with a vocabulary of
  2648. 1:40:53say 100,000 possible patches and you
  2649. 1:40:56represent each patch using just the
  2650. 1:40:58closest patch in your vocabulary and so
  2651. 1:41:01that's what allows you to take images
  2652. 1:41:03and represent them as streams of tokens
  2653. 1:41:05and then you can put them into context
  2654. 1:41:07windows and train your models with them
  2655. 1:41:09so what's incredible about this is that
  2656. 1:41:11the language model the Transformer
  2657. 1:41:12neural network itself it doesn't even
  2658. 1:41:14know that some of the tokens happen to
  2659. 1:41:15be text some of the tokens happen to be
  2660. 1:41:17audio and some of them happen to be
  2661. 1:41:19images it just models statistical
  2662. 1:41:22patterns of to streams and then it's
  2663. 1:41:24only at the encoder and at the decoder
  2664. 1:41:27that we secretly know that okay images
  2665. 1:41:29are encoded in this way and then streams
  2666. 1:41:32are decoded in this way back into images
  2667. 1:41:33or audio so just like we handled audio
  2668. 1:41:36we can chop up images into tokens and
  2669. 1:41:39apply all the same modeling techniques
  2670. 1:41:41and nothing really changes just the
  2671. 1:41:42token streams change and the vocabulary
  2672. 1:41:44of your tokens changes so now let me
  2673. 1:41:47show you some concrete examples of how
  2674. 1:41:49I've used this functionality in my own
  2675. 1:41:51life okay so starting off with the image
  2676. 1:41:53input I want to show you some examples
  2677. 1:41:56that I've used llms um where I was
  2678. 1:41:59uploading images so if you go to your um
  2679. 1:42:01favorite chasht or other llm app you can
  2680. 1:42:04upload images usually and ask questions
  2681. 1:42:06of them so here's one example where I
  2682. 1:42:08was looking at the nutrition label of
  2683. 1:42:10Brian Johnson's longevity mix and
  2684. 1:42:13basically I don't really know what all
  2685. 1:42:14these ingredients are right and I want
  2686. 1:42:15to know a lot more about them and why
  2687. 1:42:17they are in the longevity mix and this
  2688. 1:42:19is a very good example where first I
  2689. 1:42:21want to transcribe this into text
  2690. 1:42:24and the reason I like to First
  2691. 1:42:25transcribe the relevant information into
  2692. 1:42:27text is because I want to make sure that
  2693. 1:42:29the model is seeing the values correctly
  2694. 1:42:31like I'm not 100% certain that it can
  2695. 1:42:34see stuff and so here when it puts it
  2696. 1:42:36into a table I can make sure that it saw
  2697. 1:42:38it correctly and then I can ask
  2698. 1:42:40questions of this text and so I like to
  2699. 1:42:42do it in two steps whenever possible um
  2700. 1:42:45and then for example here I asked it to
  2701. 1:42:46group the ingredients and I asked it to
  2702. 1:42:49basically rank them in how safe probably
  2703. 1:42:51they are because I want to get a sense
  2704. 1:42:53of okay which of these ingredients are
  2705. 1:42:55you know super basic ingredients that
  2706. 1:42:57are found in your uh multivitamin and
  2707. 1:42:59which of them are a bit more kind of
  2708. 1:43:01like uh suspicious or strange or not as
  2709. 1:43:05well studied or something like that so
  2710. 1:43:07the model was very good in helping me
  2711. 1:43:08think through basically what's in the
  2712. 1:43:10longevity mix and what may be missing on
  2713. 1:43:12like why it's in there Etc and this is
  2714. 1:43:15again first a good first draft for my
  2715. 1:43:17own research afterwards the second
  2716. 1:43:19example I wanted to show is that of my
  2717. 1:43:21blood test so very recently I did like a
  2718. 1:43:24panel of my blot test and what they sent
  2719. 1:43:26me back was this like 20page PDF which
  2720. 1:43:28is uh super useless what am I supposed
  2721. 1:43:30to do with that so obviously I want to
  2722. 1:43:32know a lot more information so what I
  2723. 1:43:33did here is I uploaded all my um results
  2724. 1:43:37so first I did the lipid panel as an
  2725. 1:43:39example and I uploaded little
  2726. 1:43:40screenshots of my lipid panel and then I
  2727. 1:43:43made sure that chachy PT sees all the
  2728. 1:43:44correct results and then it actually
  2729. 1:43:46gives me an
  2730. 1:43:47interpretation and then I kind of
  2731. 1:43:49iterated it and you can see that the
  2732. 1:43:50scroll bar here is very low because I
  2733. 1:43:52uploaded pie by piece all of my blood
  2734. 1:43:54test
  2735. 1:43:54results um which are great by the way I
  2736. 1:43:58was very happy with this blood test um
  2737. 1:44:00and uh so what I wanted to say is number
  2738. 1:44:03one pay attention to the transcription
  2739. 1:44:05and make sure that it's correct and
  2740. 1:44:06number two it is very easy to do this
  2741. 1:44:09because on MacBook for example you can
  2742. 1:44:10do control uh shift command 4 and you
  2743. 1:44:14can draw a window and it copy paste that
  2744. 1:44:18window into a clipboard and then you can
  2745. 1:44:20just go to your Chach PT and you can
  2746. 1:44:22control V or command V to paste it in
  2747. 1:44:24and you can ask about that so it's very
  2748. 1:44:26easy to like take chunks of your screen
  2749. 1:44:28and ask questions about them using this
  2750. 1:44:30technique um and then the other thing I
  2751. 1:44:33would say about this is that of course
  2752. 1:44:35this is medical information and you
  2753. 1:44:36don't want it to be wrong I will say
  2754. 1:44:38that in the case of blood test results I
  2755. 1:44:40feel more confident trusting traship PT
  2756. 1:44:42a bit more because this is not something
  2757. 1:44:44esoteric I do expect there to be like
  2758. 1:44:46tons and tons of documents about blood
  2759. 1:44:48test results and I do expect that the
  2760. 1:44:49knowledge of the model is good enough
  2761. 1:44:51that it kind of understands uh these
  2762. 1:44:53numbers these ranges and I can tell it
  2763. 1:44:54more about myself and all this kind of
  2764. 1:44:56stuff so I do think that it is uh quite
  2765. 1:44:58good but of course um you probably want
  2766. 1:45:00to talk to an actual doctor as well but
  2767. 1:45:02I think this is a really good first
  2768. 1:45:03draft and something that maybe gives you
  2769. 1:45:05things to talk about with your doctor
  2770. 1:45:07Etc another example is um I do a lot of
  2771. 1:45:11math and code I found this uh tricky
  2772. 1:45:13question in a in a paper recently and so
  2773. 1:45:17I copy pasted this expression and I
  2774. 1:45:19asked for it in text because then I can
  2775. 1:45:21copy this text and I can ask a model
  2776. 1:45:24what it thinks um the value of x is
  2777. 1:45:26evaluated at Pi or something like that
  2778. 1:45:29it's a trick question you can try it
  2779. 1:45:31yourself next example here I had a
  2780. 1:45:33Colgate toothpaste and I was a little
  2781. 1:45:35bit suspicious about all the ingredients
  2782. 1:45:36in my Colgate toothpaste and I wanted to
  2783. 1:45:38know what the hell is all this so this
  2784. 1:45:39is Colgate what the hell is are these
  2785. 1:45:41things so it transcribed it and then it
  2786. 1:45:43told me a bit about these ingredients
  2787. 1:45:45and I thought this was extremely helpful
  2788. 1:45:48and then I asked it okay which of these
  2789. 1:45:50would be considered safest and also
  2790. 1:45:51potentially less least safe and then I
  2791. 1:45:54asked it okay if I only care about the
  2792. 1:45:57actual function of the toothpaste and I
  2793. 1:45:58don't really care about other useless
  2794. 1:46:00things like colors and stuff like that
  2795. 1:46:01which of these could we throw out and it
  2796. 1:46:03said that okay these are the essential
  2797. 1:46:05functional ingredients and this is a
  2798. 1:46:06bunch of random stuff you probably don't
  2799. 1:46:08want in your toothpaste and um basically
  2800. 1:46:12um spoiler alert most of the stuff here
  2801. 1:46:15shouldn't be there and so it's really
  2802. 1:46:17upsetting to me that companies put all
  2803. 1:46:18this stuff in your
  2804. 1:46:21um in your food or cosmetics and stuff
  2805. 1:46:24like that when it really doesn't need to
  2806. 1:46:25be there the last example I wanted to
  2807. 1:46:27show you is um so this is not uh so this
  2808. 1:46:30is a meme that I sent to a friend and my
  2809. 1:46:33friend was confused like oh what is this
  2810. 1:46:34meme I don't get it and I was showing
  2811. 1:46:36them that chpt can help you understand
  2812. 1:46:39memes so I copy pasted uh this
  2813. 1:46:43Meme and uh asked explain and basically
  2814. 1:46:47this explains the meme that okay
  2815. 1:46:49multiple crows uh a group of crows is
  2816. 1:46:52called a murder and so when this Crow
  2817. 1:46:54gets close to that Crow it's like an
  2818. 1:46:56attempted
  2819. 1:46:58murder so yeah Chach was pretty good at
  2820. 1:47:01explaining this joke okay now Vice Versa
  2821. 1:47:04you can get these models to generate
  2822. 1:47:05images and the open AI offering of this
  2823. 1:47:08is called DOI and we're on the third
  2824. 1:47:10version and it can generate really
  2825. 1:47:12beautiful images on basically given
  2826. 1:47:14arbitrary prompts is this the colon
  2827. 1:47:16temple in Kyoto I think um I visited so
  2828. 1:47:19this is really beautiful and so it can
  2829. 1:47:21generate really stylistic images and can
  2830. 1:47:23ask for any arbitrary style of any
  2831. 1:47:26arbitrary topic Etc now I don't actually
  2832. 1:47:28personally use this functionality way
  2833. 1:47:30too often so I cooked up a random
  2834. 1:47:32example just to show you but as an
  2835. 1:47:33example what are the big headlines uh
  2836. 1:47:35used today there's a bunch of headlines
  2837. 1:47:38around politics Health International
  2838. 1:47:40entertainment and so on and I used
  2839. 1:47:42Search tool for this and then I said
  2840. 1:47:44generate an image that summarizes today
  2841. 1:47:47and so having all of this in the context
  2842. 1:47:49we can generate an image like this that
  2843. 1:47:51kind of like summarizes today just just
  2844. 1:47:52as an
  2845. 1:47:53example
  2846. 1:47:55um and the the way I use this
  2847. 1:47:58functionality is usually for arbitrary
  2848. 1:48:00content creation so as an example when
  2849. 1:48:02you go to my YouTube channel then uh
  2850. 1:48:05this video Let's reproduce gpt2 this
  2851. 1:48:08image over here was generated using um a
  2852. 1:48:11competitor actually to doly called
  2853. 1:48:14ideogram and the same for this image
  2854. 1:48:16that's also generated by Ani and this
  2855. 1:48:19image as well was generated I think also
  2856. 1:48:21by ideogram or this may have been chash
  2857. 1:48:23PT I'm not sure I use some of the tools
  2858. 1:48:25interchangeably so I use it to generate
  2859. 1:48:27icons and things like that and you can
  2860. 1:48:29just kind of like ask for whatever you
  2861. 1:48:30want now I will note that the way that
  2862. 1:48:34this actually works the image output is
  2863. 1:48:37not done fully in the model um currently
  2864. 1:48:41with Dolly 3 with Dolly 3 this is a
  2865. 1:48:44separate model that takes text and
  2866. 1:48:46creates image and what's actually
  2867. 1:48:48happening under the hood here in the
  2868. 1:48:50current iteration of Chach apt is when I
  2869. 1:48:52say generate an image that summarizes
  2870. 1:48:53today this will actually under the hood
  2871. 1:48:57create a caption for that image and that
  2872. 1:48:59caption is sent to a separate model that
  2873. 1:49:02is an image generator model and so it's
  2874. 1:49:04kind of like stitched up in this way but
  2875. 1:49:06uh it's not like super important to I
  2876. 1:49:08think fully understand at this point um
  2877. 1:49:12so that is image output now next up I
  2878. 1:49:15want to show you an extension where the
  2879. 1:49:17model can actually like see video and
  2880. 1:49:19this is included in what's in the what I
  2881. 1:49:22showed you previously called advanced
  2882. 1:49:23voice it's not available on the web app
  2883. 1:49:26but it's available on the mobile app so
  2884. 1:49:29if we go to Advanced voice and we
  2885. 1:49:32connect so hello I'm demonstrating the
  2886. 1:49:34video capabilities and I'm showing to
  2887. 1:49:36the camera that there is a little video
  2888. 1:49:38icon over there and when you press it
  2889. 1:49:40you can basically see you can basically
  2890. 1:49:42show the model different
  2891. 1:49:45things I can see the camera feed it
  2892. 1:49:48looks like you've got some black
  2893. 1:49:49acoustic foam panels on the wall are you
  2894. 1:49:51testing out how well they reduce echo in
  2895. 1:49:53the room uh yeah I was testing out the
  2896. 1:49:55acoustic foam uh that's right but it's
  2897. 1:49:57not actually that
  2898. 1:50:00helpful sometimes placement can make a
  2899. 1:50:02big difference have you tried covering
  2900. 1:50:04more corners or experimenting with
  2901. 1:50:06different layouts okay well let's let's
  2902. 1:50:09look at this what book is this
  2903. 1:50:11Dino yes that's genas Khan and the
  2904. 1:50:14making of the modern world by Jack
  2905. 1:50:16Weatherford it's a fascinating book
  2906. 1:50:18about the impact of genas Khan on world
  2907. 1:50:20history yeah very good do you see this
  2908. 1:50:22other book what is
  2909. 1:50:24it that's surely you're joking Mr feeman
  2910. 1:50:28by Richard feeman it's a collection of
  2911. 1:50:30humorous anecdotes from the physicist's
  2912. 1:50:32life it's really entertaining M and what
  2913. 1:50:35is
  2914. 1:50:36this that's an aeronet 4 a portable CO2
  2915. 1:50:40monitor it measures carbon dioxide
  2916. 1:50:42levels temperature humidity and air
  2917. 1:50:45pressure it's quite useful for
  2918. 1:50:46monitoring indoor air quality so we're
  2919. 1:50:48currently at 7:13 right do you think
  2920. 1:50:50that's good or what
  2921. 1:50:53a CO2 level of 713 PPM is generally okay
  2922. 1:50:58it's normal for indoor spaces ideally
  2923. 1:51:00you want it below 800 PPM if it goes
  2924. 1:51:02above a th you might need more
  2925. 1:51:04ventilation got it and how about this
  2926. 1:51:06map do you know what this map
  2927. 1:51:09is yes that looks like a map of Middle
  2928. 1:51:11Earth from JRR Tokens The Lord of the
  2929. 1:51:14Rings it's a great piece for any fan of
  2930. 1:51:16the series yeah good job thank you for
  2931. 1:51:18the
  2932. 1:51:20demonstration you're welcome glad I
  2933. 1:51:22could help if you need anything else
  2934. 1:51:23just let me
  2935. 1:51:25know so that's a brief demo uh you
  2936. 1:51:28basically have the camera running you
  2937. 1:51:30can point it at stuff and you can just
  2938. 1:51:31talk to the model it is quite magical
  2939. 1:51:33super simple to use uh I don't
  2940. 1:51:36personally use it in my daily life
  2941. 1:51:37because I'm kind of like a power user of
  2942. 1:51:39all the chat GPT apps and I don't kind
  2943. 1:51:42of just like go around pointing at stuff
  2944. 1:51:44and asking the model for Stuff uh I
  2945. 1:51:46usually have very targeted queries about
  2946. 1:51:47code and programming Etc but I think if
  2947. 1:51:49I was demo demonstrating some of this to
  2948. 1:51:51my parents or my grand parents and have
  2949. 1:51:53them interact in a very natural way uh
  2950. 1:51:55this is something that I would probably
  2951. 1:51:56show them uh because they can just point
  2952. 1:51:58the camera at things and ask questions
  2953. 1:52:00now under the hood I'm not actually 100%
  2954. 1:52:03sure that they currently com um consume
  2955. 1:52:06the video I think they actually still
  2956. 1:52:08just take image CH image sections like
  2957. 1:52:10maybe they take one image per second or
  2958. 1:52:12something like that uh but from your
  2959. 1:52:14perspective as a user of the of the tool
  2960. 1:52:16definitely feels like you can just um
  2961. 1:52:18Stream It video and have it uh make
  2962. 1:52:20sense so I think that's pretty cool as a
  2963. 1:52:22functionality and finally I wanted to
  2964. 1:52:24briefly show you that there's a lot of
  2965. 1:52:26tools now that can generate videos and
  2966. 1:52:28they are incredible and they're very
  2967. 1:52:29rapidly evolving I'm not going to cover
  2968. 1:52:31this too extensively because I don't um
  2969. 1:52:34I think it's relatively self-explanatory
  2970. 1:52:36I don't personally use them that much in
  2971. 1:52:38my work but that's just because I'm not
  2972. 1:52:39in a kind of a creative profession or
  2973. 1:52:41something like that so this is a tweet
  2974. 1:52:43that compares number of uh AI video
  2975. 1:52:45generation models as an example uh this
  2976. 1:52:47tweet is from about a month ago so this
  2977. 1:52:49may have evolved since but I just wanted
  2978. 1:52:51to show you that that uh you know all of
  2979. 1:52:54these uh models were asked to generate I
  2980. 1:52:56guess a tiger in a jungle um and they're
  2981. 1:53:00all quite good I think right now V2 I
  2982. 1:53:03think is uh really near
  2983. 1:53:05state-of-the-art um and really
  2984. 1:53:08good yeah that's pretty incredible
  2985. 1:53:13right this is open
  2986. 1:53:18Aur Etc so they all have a slightly
  2987. 1:53:21different style different quality Etc
  2988. 1:53:23and you can compare in contrast and use
  2989. 1:53:25some of these tools that are dedicated
  2990. 1:53:27to this
  2991. 1:53:28problem okay and the final topic I want
  2992. 1:53:30to turn to is some quality of life
  2993. 1:53:32features that I think are quite worth
  2994. 1:53:34mentioning so the first one I want to
  2995. 1:53:36talk to talk about is Chachi memory
  2996. 1:53:38feature so say you're talking to
  2997. 1:53:41chachy and uh you say something like
  2998. 1:53:44when roughly do you think was Peak
  2999. 1:53:45Hollywood now I'm actually surprised
  3000. 1:53:47that chachy PT gave me an answer here
  3001. 1:53:49because I feel like very often uh these
  3002. 1:53:51models are very very averse to actually
  3003. 1:53:53having any opinions and they say
  3004. 1:53:55something along the lines of oh I'm just
  3005. 1:53:56an AI I'm here to help I don't have any
  3006. 1:53:58opinions and stuff like that so here
  3007. 1:54:00actually it seems to uh have an opinion
  3008. 1:54:03and say assess that the last Tri Peak
  3009. 1:54:05before franchises took over was 1990s to
  3010. 1:54:08early 2000s so I actually happened to
  3011. 1:54:10really agree with chap chpt here and uh
  3012. 1:54:13I really agree so totally
  3013. 1:54:16agreed now I'm curious what happens
  3014. 1:54:20here okay so nothing happened so what
  3015. 1:54:24you can
  3016. 1:54:25um basically every single conversation
  3017. 1:54:28like we talked about begins with empty
  3018. 1:54:31token window and goes on until the end
  3019. 1:54:33the moment I do new conversation or new
  3020. 1:54:35chat everything gets wiped clean but
  3021. 1:54:38chat GPT does have an ability to save
  3022. 1:54:40information from chat to chat but but it
  3023. 1:54:43has to be invoked so sometimes chat GPT
  3024. 1:54:46will trigger it automatically but
  3025. 1:54:48sometimes you have to ask for it so
  3026. 1:54:50basically say something along the lines
  3027. 1:54:51of
  3028. 1:54:53uh can you please remember
  3029. 1:54:57this or like remember my preference or
  3030. 1:54:59whatever something like that so what I'm
  3031. 1:55:01looking for
  3032. 1:55:04is I think it's going to
  3033. 1:55:07work there we go so you see this memory
  3034. 1:55:10updated believes that late 1990s and
  3035. 1:55:13early 2000 was the greatest peak of
  3036. 1:55:15Hollywood
  3037. 1:55:16Etc um yeah so and then it also went on
  3038. 1:55:21a bit about 1970 and then it allows you
  3039. 1:55:24to manage memories uh so we'll look to
  3040. 1:55:26that in a second but what's happening
  3041. 1:55:28here is that chashi wrote a little
  3042. 1:55:29summary of what it learned about me as a
  3043. 1:55:32person and recorded this text in its
  3044. 1:55:35memory bank and a memory bank is
  3045. 1:55:38basically a separate piece of chat GPT
  3046. 1:55:41that is kind of like a database of
  3047. 1:55:43knowledge about you and this database of
  3048. 1:55:45knowledge is always prepended to all the
  3049. 1:55:48conversations so that the model has
  3050. 1:55:50access to it and so I actually really
  3051. 1:55:52like this because every now and then the
  3052. 1:55:55memory updates uh whenever you have
  3053. 1:55:56conversations with chachy PT and if you
  3054. 1:55:58just let this run and you just use
  3055. 1:56:00chachu BT naturally then over time it
  3056. 1:56:02really gets to like know you to some
  3057. 1:56:04extent and it will start to make
  3058. 1:56:06references to the stuff that's in the
  3059. 1:56:08memory and so when this feature was
  3060. 1:56:10announced I wasn't 100% sure if this was
  3061. 1:56:12going to be helpful or not but I think
  3062. 1:56:13I'm definitely coming around and I've uh
  3063. 1:56:16used this in a bunch of ways and I
  3064. 1:56:18definitely feel like chashi PT is
  3065. 1:56:19knowing me a little bit better over time
  3066. 1:56:22time and is being a bit more relevant to
  3067. 1:56:24me and it's all happening just by uh
  3068. 1:56:27sort of natural interaction and over
  3069. 1:56:30time through this memory feature so
  3070. 1:56:32sometimes it will trigger it explicitly
  3071. 1:56:34and sometimes you have to ask for it
  3072. 1:56:36okay now I thought I was going to show
  3073. 1:56:38you some of the memories and how to
  3074. 1:56:39manage them but actually I just looked
  3075. 1:56:41and it's a little too personal honestly
  3076. 1:56:42so uh it's just a database it's a list
  3077. 1:56:45of little text strings those text
  3078. 1:56:47strings just make it to the beginning
  3079. 1:56:49and you can edit the memories which I
  3080. 1:56:51really like and you can uh you know add
  3081. 1:56:54memories delete memories manage your
  3082. 1:56:55memories database so that's incredible
  3083. 1:56:59um I will also mention that I think the
  3084. 1:57:00memory feature is unique to chasht I
  3085. 1:57:03think that other llms currently do not
  3086. 1:57:05have this feature and uh I will also say
  3087. 1:57:08that for example Chachi PT is very good
  3088. 1:57:10at movie recommendations and so I
  3089. 1:57:12actually think that having this in its
  3090. 1:57:14memory will help it create better movie
  3091. 1:57:16recommendations for me so that's pretty
  3092. 1:57:18cool the next thing I wanted to briefly
  3093. 1:57:20show is custom instruction
  3094. 1:57:22so you can uh to a very large extent
  3095. 1:57:25modify your chash GPT and how you like
  3096. 1:57:27it to speak to you and so I quite
  3097. 1:57:30appreciate that as well you can come to
  3098. 1:57:32settings um customize
  3099. 1:57:35chpt and you see here it says what traes
  3100. 1:57:38should chpt have and I just kind of like
  3101. 1:57:40told it just don't be like an HR
  3102. 1:57:42business partner just talk to me
  3103. 1:57:44normally and also just give me I just
  3104. 1:57:46lot explanations educations insights Etc
  3105. 1:57:48so be educational whenever you can and
  3106. 1:57:50you can just probably type anything here
  3107. 1:57:52and you can experiment with that a
  3108. 1:57:53little bit and then I also experimented
  3109. 1:57:55here with um telling it my identity um
  3110. 1:58:00I'm just experimenting with this Etc and
  3111. 1:58:03um I'm also learning Korean and so here
  3112. 1:58:05I am kind of telling it that when it's
  3113. 1:58:07giving me Korean uh it should use this
  3114. 1:58:09tone of formality otherwise sometimes um
  3115. 1:58:12or this is like a good default setting
  3116. 1:58:14because otherwise sometimes it might
  3117. 1:58:15give me the informal or it might give me
  3118. 1:58:17the way too formal and uh sort of tone
  3119. 1:58:20and I just want this tone by default so
  3120. 1:58:22that's an example of something I added
  3121. 1:58:23and so anything you want to modify about
  3122. 1:58:25chpt globally between conversations you
  3123. 1:58:28would kind of put it here into your
  3124. 1:58:29custom instructions and so I quite
  3125. 1:58:31welcome uh this and this I think you can
  3126. 1:58:34do with many other llms as well so look
  3127. 1:58:36for it somewhere in the settings okay
  3128. 1:58:38and the last feature I wanted to cover
  3129. 1:58:40is custom gpts which I use once in a
  3130. 1:58:43while and I like to use them
  3131. 1:58:44specifically for language learning the
  3132. 1:58:46most so let me give you an example of
  3133. 1:58:48how I use these so let me first show you
  3134. 1:58:50maybe they show up on the left here so
  3135. 1:58:53let me show you uh this one for example
  3136. 1:58:55Korean detailed translator so uh no
  3137. 1:58:58sorry I want to start with the with this
  3138. 1:59:00one Korean vocabulary
  3139. 1:59:02extractor so basically the idea here is
  3140. 1:59:05uh I give it this is a custom GPT I give
  3141. 1:59:09it a sentence and it extracts vocabulary
  3142. 1:59:12in dictionary form so here for example
  3143. 1:59:15given this sentence this is the
  3144. 1:59:17vocabulary and notice that it's in the
  3145. 1:59:19format of uh Korean semicolon English
  3146. 1:59:23and this can be copy pasted into eny
  3147. 1:59:26flashcards app and basically this uh
  3148. 1:59:29kind of
  3149. 1:59:30um uh this means that it's very easy to
  3150. 1:59:33turn a sentence into flashcards and now
  3151. 1:59:36the way this works is basically if we
  3152. 1:59:38just go under the hood and we go to edit
  3153. 1:59:40GPT you can see that um you're just kind
  3154. 1:59:43of like this is all just done via
  3155. 1:59:46prompting nothing special is happening
  3156. 1:59:47here the important thing here is
  3157. 1:59:49instructions so when I pop this open I
  3158. 1:59:52just kind of explain a little bit of
  3159. 1:59:53okay background information I'm learning
  3160. 1:59:55Korean I'm beginner instructions um I
  3161. 1:59:58will give you a piece of text and I want
  3162. 2:00:00you to extract the vocabulary and then I
  3163. 2:00:03give it some example output and uh
  3164. 2:00:05basically I'm being detailed and when I
  3165. 2:00:08give instructions to llms I always like
  3166. 2:00:10to number one give it sort of the
  3167. 2:00:13description but then also give it
  3168. 2:00:15examples so I like to give concrete
  3169. 2:00:17examples and so here are four concrete
  3170. 2:00:19examples and so what I'm doing here
  3171. 2:00:21really is I'm conr in what's called a
  3172. 2:00:22few shot prompt so I'm not just
  3173. 2:00:24describing a task which is kind of like
  3174. 2:00:26um asking for a performance in a zero
  3175. 2:00:28shot manner just like do it without
  3176. 2:00:29examples I'm giving it a few examples
  3177. 2:00:31and this is now a few shot prompt and I
  3178. 2:00:33find that this always increases the
  3179. 2:00:35accuracy of LMS so kind of that's a I
  3180. 2:00:37think a general good
  3181. 2:00:39strategy um and so then when you update
  3182. 2:00:42and save this llm then just given a
  3183. 2:00:45single sentence it does that task and so
  3184. 2:00:48notice that there's nothing new and
  3185. 2:00:50special going on all I'm doing is I'm
  3186. 2:00:52saving myself a little bit of work
  3187. 2:00:54because I don't have to basically start
  3188. 2:00:56from a scratch and then describe uh the
  3189. 2:01:00whole setup in detail I don't have to
  3190. 2:01:02tell Chachi PT all of this each time and
  3191. 2:01:06so what this feature really is is that
  3192. 2:01:08it's just saving you prompting time if
  3193. 2:01:10there's a certain prompt that you keep
  3194. 2:01:12reusing then instead of reusing that
  3195. 2:01:14prompt and copy pasting it over and over
  3196. 2:01:16again just create a custom chat custom
  3197. 2:01:18GPT save that prompt a single time and
  3198. 2:01:22then what's changing per sort of use of
  3199. 2:01:24it is the different sentence so if I
  3200. 2:01:26give it a sentence it always performs
  3201. 2:01:28this task um and so this is helpful if
  3202. 2:01:31there are certain prompts or certain
  3203. 2:01:32tasks that you always reuse the next
  3204. 2:01:35example that I think transfers to every
  3205. 2:01:37other language would be basic
  3206. 2:01:39translation so as an example I have this
  3207. 2:01:41sentence in Korean and I want to know
  3208. 2:01:43what it means now many people will go to
  3209. 2:01:45Just Google translate or something like
  3210. 2:01:47that now famously Google Translate is
  3211. 2:01:49not very good with Korean so a lot of
  3212. 2:01:51people uh use uh neighor or Papo and so
  3213. 2:01:54on so if you put that here it kind of
  3214. 2:01:56gives you a translation now these
  3215. 2:01:58translations often are okay as a
  3216. 2:02:00translation but I don't actually really
  3217. 2:02:03understand how this sentence goes to
  3218. 2:02:05this translation like where are the
  3219. 2:02:06pieces I need to like I want to know
  3220. 2:02:08more and I want to be able to ask
  3221. 2:02:09clarifying questions and so on and so
  3222. 2:02:11here it kind of breaks it up a little
  3223. 2:02:12bit but it's just like not as good
  3224. 2:02:14because a bunch of it gets omitted right
  3225. 2:02:17and those are usually particles and so
  3226. 2:02:19on so I basically built a much better
  3227. 2:02:21translator in GPT and I think it works
  3228. 2:02:22significantly better so I have a Korean
  3229. 2:02:25detailed translator and when I put that
  3230. 2:02:27same sentence here I get what I think is
  3231. 2:02:29much much better translation so it's 3:
  3232. 2:02:32in the afternoon now and I want to go to
  3233. 2:02:33my favorite Cafe and this is how it
  3234. 2:02:36breaks up and I can see exactly how all
  3235. 2:02:39the pieces of it translate part by part
  3236. 2:02:41into English so
  3237. 2:02:44chigan uh afternoon Etc so all of this
  3238. 2:02:48and what's really beautiful about this
  3239. 2:02:49is not only can I see all the a little
  3240. 2:02:52detail of it but I can ask qualif uh
  3241. 2:02:54clarifying questions uh right here and
  3242. 2:02:56we can just follow up and continue the
  3243. 2:02:57conversation so this is I think
  3244. 2:02:59significantly better significantly
  3245. 2:03:01better in Translation than anything else
  3246. 2:03:03you can get and if you're learning
  3247. 2:03:04different language I would not use a
  3248. 2:03:06different translator other than Chachi
  3249. 2:03:08PT it understands a ton of nuance it
  3250. 2:03:11understands slang it's extremely good um
  3251. 2:03:15and I don't know why translators even
  3252. 2:03:17exist at this point and I think GPT is
  3253. 2:03:19just so much better okay and so the way
  3254. 2:03:21this works if we go to here is if we
  3255. 2:03:25edit this GPT just so we can see briefly
  3256. 2:03:28then these are the instructions that I
  3257. 2:03:29gave it you'll be giving a sentence a
  3258. 2:03:31Korean your task is to translate the
  3259. 2:03:33whole sentence into English first and
  3260. 2:03:35then break up the entire translation in
  3261. 2:03:37detail and so here again I'm creating a
  3262. 2:03:39few shot prompt and so here is how I
  3263. 2:03:42kind of gave it the examples because
  3264. 2:03:43they're a bit more extended so I used
  3265. 2:03:45kind of like an XML like language just
  3266. 2:03:48so that the model understands that the
  3267. 2:03:49example one begins here and ends here
  3268. 2:03:52and I'm using XML kind of
  3269. 2:03:55tags and so here is the input I gave it
  3270. 2:03:57and here's the desired output and so I
  3271. 2:03:59just give it a few examples and I kind
  3272. 2:04:01of like specify them in detail and um
  3273. 2:04:05and then I have a few more instructions
  3274. 2:04:07here I think this is actually very
  3275. 2:04:08similar to human uh how you might teach
  3276. 2:04:11a human a task like you can explain in
  3277. 2:04:13words what they're supposed to be doing
  3278. 2:04:15but it's so much better if you show them
  3279. 2:04:16by example how to perform the task and
  3280. 2:04:18humans I think can also learn in a few
  3281. 2:04:20shot manner significantly more more
  3282. 2:04:21efficiently and so you can program this
  3283. 2:04:24what in whatever way you like and then
  3284. 2:04:27uh you get a custom translator that is
  3285. 2:04:29designed just for you and is a lot
  3286. 2:04:30better than what you would find on the
  3287. 2:04:31internet and empirically I find that
  3288. 2:04:33Chach PT is quite good at uh translation
  3289. 2:04:37especially for a like a basic beginner
  3290. 2:04:39like me right now okay and maybe the
  3291. 2:04:41last one that I'll show you just because
  3292. 2:04:42I think it ties a bunch of functionality
  3293. 2:04:44together is as follows sometimes I'm for
  3294. 2:04:46example watching some Korean content and
  3295. 2:04:48here we see we have the subtitles but uh
  3296. 2:04:51the subtitles are baked into video into
  3297. 2:04:53the pixels so I don't have direct access
  3298. 2:04:55to the subtitles and so what I can do
  3299. 2:04:57here is I can just screenshot this and
  3300. 2:05:00this is a scene between the jinyang and
  3301. 2:05:01Suki and singles Inferno so I can just
  3302. 2:05:04take it and I can paste it
  3303. 2:05:06here and then this custom GPT I called
  3304. 2:05:10Korean cap first ocrs it then it
  3305. 2:05:13translates it and then it breaks it down
  3306. 2:05:15and so basically it uh does that and
  3307. 2:05:18then I can continue watching and anytime
  3308. 2:05:20I need help I will cut copy paste the
  3309. 2:05:22screenshot here and this will basically
  3310. 2:05:24do that translation and if we look at it
  3311. 2:05:27under the hood on in edit
  3312. 2:05:31GPT you'll see that in the instructions
  3313. 2:05:34it just simply gives out um it just
  3314. 2:05:37breaks down the instructions so you'll
  3315. 2:05:38be given an image crop from a TV show
  3316. 2:05:40singles Inferno but you can change this
  3317. 2:05:42of course and it shows a tiny piece of
  3318. 2:05:44dialogue so I'm giving the model sort of
  3319. 2:05:46a heads up and a context for what's
  3320. 2:05:47happening and these are the instructions
  3321. 2:05:50so first OCR it then translate it and
  3322. 2:05:52then break it down and then you can do
  3323. 2:05:55whatever output format you like and you
  3324. 2:05:57can play with this and improve it but
  3325. 2:05:59this is just a simple example and this
  3326. 2:06:00works pretty well so um yeah these are
  3327. 2:06:04the kinds of custom gpts that I've built
  3328. 2:06:06for myself a lot of them have to do with
  3329. 2:06:07language learning and the way you create
  3330. 2:06:09these is you come here and you click my
  3331. 2:06:12gpts and you basically create a GPT and
  3332. 2:06:16you can configure it arbitrarily here
  3333. 2:06:18and as far as I know uh gpts are fairly
  3334. 2:06:21unique to chpt but I think some of the
  3335. 2:06:23other llm apps probably have similar
  3336. 2:06:26kind of functionality so you may want to
  3337. 2:06:28look for it in the project settings okay
  3338. 2:06:31so I could go on and on about covering
  3339. 2:06:32all the different features that are
  3340. 2:06:34available in Chach PT and so on but I
  3341. 2:06:35think this is a good introduction and a
  3342. 2:06:37good like bird's eye view of what's
  3343. 2:06:40available right now what people are
  3344. 2:06:42introducing and what to look out for so
  3345. 2:06:45in summary there is a rapidly growing
  3346. 2:06:48changing and shifting and thriving
  3347. 2:06:50ecosystem of llm apps like chat GPT chat
  3348. 2:06:54GPT is the first and the incumbent and
  3349. 2:06:57is probably the most feature Rich out of
  3350. 2:06:59all of them but all of the other ones
  3351. 2:07:01are very rapidly uh growing and becoming
  3352. 2:07:03um either reaching feature parody Or
  3353. 2:07:05even overcoming chipt in some um
  3354. 2:07:08specific cases as an example uh Chachi
  3355. 2:07:11PT now has internet search but I still
  3356. 2:07:13go to perplexity because perplexity was
  3357. 2:07:16doing search for a while and I think
  3358. 2:07:17their models are quite good um also if I
  3359. 2:07:20want to kind of prototype some simple
  3360. 2:07:22web apps and I want to create diagrams
  3361. 2:07:24and stuff like that I really like Cloud
  3362. 2:07:26artifacts which is not a feature of
  3363. 2:07:29jbt um if I just want to talk to a model
  3364. 2:07:32then I think Chachi PT advanced voice is
  3365. 2:07:34quite nice today and if it's being too
  3366. 2:07:36kg with you then um you can switch to
  3367. 2:07:38Gro things like that so basically all
  3368. 2:07:40the different apps have some strengths
  3369. 2:07:42and weaknesses but I think Chachi by far
  3370. 2:07:44is a very good default and uh the
  3371. 2:07:46incumbent and most feature okay what are
  3372. 2:07:49some of the things that we are keeping
  3373. 2:07:50track of when we're thinking about these
  3374. 2:07:52apps and between their features so the
  3375. 2:07:55first thing to realize and that we
  3376. 2:07:56looked at is you're talking basically to
  3377. 2:07:57a zip file be aware of what pricing tier
  3378. 2:08:00you're at and depending on the pricing
  3379. 2:08:02tier which model you are
  3380. 2:08:04using if you are if you are uh using a
  3381. 2:08:07model that is very large that model is
  3382. 2:08:10going to have uh basically a lot of
  3383. 2:08:12World Knowledge and it's going to be
  3384. 2:08:13able to answer complex questions it's
  3385. 2:08:15going to have very good writing it's
  3386. 2:08:17going to be a lot more creative in its
  3387. 2:08:18writing and so on if the model is very
  3388. 2:08:21small
  3389. 2:08:22then probably it's not going to be as
  3390. 2:08:23creative it has a lot less World
  3391. 2:08:25Knowledge and it will make mistakes for
  3392. 2:08:26example it might
  3393. 2:08:28hallucinate um on top of
  3394. 2:08:30that a lot of people are very interested
  3395. 2:08:33in these models that are thinking and
  3396. 2:08:35trained with reinforcement learning and
  3397. 2:08:36this is the latest Frontier in research
  3398. 2:08:38today so in particular we saw that this
  3399. 2:08:41is very useful and gives additional
  3400. 2:08:43accuracy in problems like math code and
  3401. 2:08:45reasoning so try without reasoning first
  3402. 2:08:49and if your model is not solving that
  3403. 2:08:51kind of kind of a problem try to switch
  3404. 2:08:53to a reasoning model and look for that
  3405. 2:08:54in the user
  3406. 2:08:56interface on top of that then we saw
  3407. 2:08:58that we are rapidly giving the models a
  3408. 2:09:00lot more tools so as an example we can
  3409. 2:09:02give them an internet search so if
  3410. 2:09:04you're talking about some fresh
  3411. 2:09:05information or knowledge that is
  3412. 2:09:06probably not in the zip file then you
  3413. 2:09:09actually want to use an internet search
  3414. 2:09:10tool and not all of these apps have it
  3415. 2:09:14uh in addition you may want to give it
  3416. 2:09:15access to a python interpreter or so
  3417. 2:09:18that it can write programs so for
  3418. 2:09:19example if you want to generate figures
  3419. 2:09:21or plots and show them you may want to
  3420. 2:09:22use something like Advanced Data
  3421. 2:09:23analysis if you're prototyping some kind
  3422. 2:09:26of a web app you might want to use
  3423. 2:09:27artifacts or if you are generating
  3424. 2:09:28diagrams because it's right there and in
  3425. 2:09:30line inside the app or if you're
  3426. 2:09:32programming professionally you may want
  3427. 2:09:34to turn to a different app like cursor
  3428. 2:09:36and composer on top of all of this
  3429. 2:09:39there's a layer of multimodality that is
  3430. 2:09:42rapidly becoming more mature as well and
  3431. 2:09:43that you may want to keep track of so we
  3432. 2:09:46were talking about both the input and
  3433. 2:09:47the output of all the different
  3434. 2:09:49modalities not just text but also audio
  3435. 2:09:51images and video and we talked about the
  3436. 2:09:53fact that some of these modalities can
  3437. 2:09:55be sort of handled natively inside the
  3438. 2:09:58language model sometimes these models
  3439. 2:10:00are called Omni models or multimod
  3440. 2:10:02models so they can be handled natively
  3441. 2:10:04by the language model which is going to
  3442. 2:10:05be a lot more powerful or they can be
  3443. 2:10:07tacked on as a separate model that
  3444. 2:10:10communicates with the main model through
  3445. 2:10:12text or something like that so that's a
  3446. 2:10:14distinction to also sometimes keep track
  3447. 2:10:15of and on top of all this we also talked
  3448. 2:10:18about quality of life features so for
  3449. 2:10:20example file uploads memory features
  3450. 2:10:22instructions gpts and all this kind of
  3451. 2:10:23stuff and maybe the last uh sort of
  3452. 2:10:26piece that we saw is that um all of
  3453. 2:10:29these apps have usually a web uh kind of
  3454. 2:10:31interface that you can go to on your
  3455. 2:10:32laptop or also a mobile app available on
  3456. 2:10:35your phone and we saw that many of these
  3457. 2:10:37features might be available on the app
  3458. 2:10:39um in the browser but not on the phone
  3459. 2:10:41and vice versa so that's also something
  3460. 2:10:43to keep track of so all of these is a
  3461. 2:10:45little bit of a zoo it's a little bit
  3462. 2:10:46crazy but these are the kinds of
  3463. 2:10:48features that exist that you may want to
  3464. 2:10:49be looking for when you're working
  3465. 2:10:51across all of these different tabs and
  3466. 2:10:53you probably have your own favorite in
  3467. 2:10:54terms of Personality or capability or
  3468. 2:10:56something like that but these are some
  3469. 2:10:58of the things that you want to be
  3470. 2:10:59thinking about and uh looking for and
  3471. 2:11:01experimenting with over time so I think
  3472. 2:11:04that's a pretty good intro for now uh
  3473. 2:11:06thank you for watching I hope my
  3474. 2:11:08examples were interesting or helpful to
  3475. 2:11:09you and I will see you next time

About this transcript

This page contains the full transcript of How I use LLMs by Andrej Karpathy, generated from the public captions YouTube serves with the video. The transcript has 25,287 words across 3,475 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 translate the transcript into 100+ languages.

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, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.