YouTube2Text

Costruisco un Second Brain Avanzato prima che scoppi la Bolla AI | EP. 2 — Transcript

by Antonio Guadagno · 2,907 words · 478 segments · language en · Watch on YouTube

Full transcript

  1. 0:00Today we are going to build a "second
  2. 0:03brain" together, a digital brain that
  3. 0:05can literally remember every piece of
  4. 0:07information about us.
  5. 0:10Who we are, what we do for a living,
  6. 0:12what projects we are working on, and so
  7. 0:14on.
  8. 0:15And the reason we are building this
  9. 0:18second brain is so that we can then
  10. 0:21connect it to our AI agents, so that
  11. 0:23when we ask one of these agents a
  12. 0:26question, it won't give us a generic,
  13. 0:28trivial response, but will instead query
  14. 0:31the second brain, find the information
  15. 0:34it needs, and give us personalized
  16. 0:36answers relevant to our context.
  17. 0:41In this video, therefore, I will guide
  18. 0:44you step by step in creating a second
  19. 0:47brain that we can use with any agent,
  20. 0:49Claude, Copilot, Codex, ChatGPT, and
  21. 0:52many others.
  22. 0:55Specifically, I will be using it with my
  23. 0:58Hermes Agent, and that's because this
  24. 1:01video is part of a series I'm doing on
  25. 1:04the channel where I build my own custom
  26. 1:07AI agent.
  27. 1:09This is the second episode.
  28. 1:11If you missed the first one, I'll leave
  29. 1:13it below in the description, and if you
  30. 1:14don't want to miss the next ones,
  31. 1:16subscribe to the channel.
  32. 1:18First of all, what is a second brain?
  33. 1:21In practical terms, it is a personal
  34. 1:24knowledge base that concerns us, our
  35. 1:26work, and our context, which is managed
  36. 1:29and consulted by artificial intelligence
  37. 1:33.
  38. 1:33The advantages offered by a second brain
  39. 1:35are, in fact, two.
  40. 1:37First, that the information is managed
  41. 1:40by AI, meaning we dump our raw files in
  42. 1:42there as they are, and it is the AI that
  43. 1:45cleans them, organizes them, links them
  44. 1:48together, and so on.
  45. 1:52The second advantage is that by working
  46. 1:55with clean, organized knowledge with the
  47. 1:58right connections, it becomes much
  48. 2:00easier to find the correct information
  49. 2:03and we are also much faster at finding
  50. 2:06what we need.
  51. 2:10Regarding the structure we will give our
  52. 2:13second brain, I personally like to use
  53. 2:15this model called LLM Wiki proposed by
  54. 2:18Andrej Karpathy, formerly of OpenAI and
  55. 2:21a brilliant mind in artificial
  56. 2:23intelligence.
  57. 2:25According to this model, our second
  58. 2:27brain is divided.
  59. 2:30into three folders: raw, wiki, and
  60. 2:33output.
  61. 2:35The "raw" folder is the entry point to
  62. 2:38our second brain, meaning we upload our
  63. 2:41raw files here just as they are—those
  64. 2:43files we want to clean and bring into
  65. 2:46our second brain.
  66. 2:49These files are cleaned and organized by
  67. 2:52artificial intelligence, not by us, and
  68. 2:55are moved into the "wiki," which
  69. 2:58contains the processed, organized, and
  70. 3:01structured knowledge.
  71. 3:04We can therefore say that the wiki is,
  72. 3:05for all intents and purposes, our second
  73. 3:07brain.
  74. 3:10Finally, we have the "output" folder,
  75. 3:12which will contain any answers to the
  76. 3:15questions we ask whenever those answers
  77. 3:18require the production of a report, a
  78. 3:20summary, a document, and so on.
  79. 3:24Getting into more detail, the structure
  80. 3:26of the wiki is composed as follows.
  81. 3:29We have a main folder with a file called
  82. 3:32index.
  83. 3:33MD. We will return to this shortly.
  84. 3:36Inside this folder, we have many
  85. 3:38subfolders, specifically one subfolder
  86. 3:42per topic.
  87. 3:44For example, we have the client
  88. 3:46subfolder which will then contain all
  89. 3:49documents regarding clients, or the
  90. 3:51meetings subfolder which will contain
  91. 3:53all documents regarding meetings.
  92. 3:58Besides subfolders, another key element
  93. 4:01of the wiki are the indexes, which act
  94. 4:03as a compass that the artificial
  95. 4:05intelligence uses to navigate within
  96. 4:08this second brain.
  97. 4:11Indeed, we have a main index under the
  98. 4:14wiki folder and then many indexes, one
  99. 4:16for each subfolder.
  100. 4:19The main index describes the list of all
  101. 4:22the wikis, meaning all the subfolders,
  102. 4:25and explains which types of documents
  103. 4:28are contained in each subfolder.
  104. 4:32As for the subfolder indexes, these
  105. 4:35explain which files are contained in
  106. 4:37that subfolder and what type of
  107. 4:40information these files contain.
  108. 4:45Essentially, when we ask our AI agent a
  109. 4:47question, it enters the second brain,
  110. 4:50does not read every single document, but
  111. 4:53instead reads the indexes, and by
  112. 4:55reading the indexes, it understands
  113. 4:57which subfolder to go to and then which
  114. 5:00files are relevant to effectively answer
  115. 5:03the question we asked.
  116. 5:06With the concept understood, let's get
  117. 5:08our hands dirty and create this second
  118. 5:10brain.
  119. 5:12To create the second brain, I will use
  120. 5:14Herms Agent within VS Code.
  121. 5:19Actually, VS Code isn't really necessary
  122. 5:21; I only use it because, at least here
  123. 5:23on the left, we can see the files,
  124. 5:25folders, and so on, and therefore this
  125. 5:27video becomes easier to understand and
  126. 5:29follow.
  127. 5:31But you have the possibility to do
  128. 5:33everything directly from the Claude
  129. 5:36application, ChatGPT, or whatever agent
  130. 5:39you prefer. The first request I make is
  131. 5:42this one.
  132. 5:44Simply with this prompt, I ask the
  133. 5:46artificial intelligence to create the
  134. 5:49tree structure of my second brain,
  135. 5:51specifically the raw, wiki, and output
  136. 5:54folders and other files needed for the
  137. 5:56second brain.
  138. 6:00together.
  139. 6:02You can find this prompt below in the
  140. 6:04description; it is absolutely free, and
  141. 6:06you will also find the link to my
  142. 6:08Telegram group and my WhatsApp group,
  143. 6:10which are free as well.
  144. 6:12So, what do I do?
  145. 6:14I copy and paste this prompt, go back to
  146. 6:16Herms, paste it, press enter, and wait a
  147. 6:19few seconds.
  148. 6:21And so here is the structure of our
  149. 6:23second brain.
  150. 6:25We have raw, wiki, and output, and then
  151. 6:28we have two very, very important files
  152. 6:32called agents.md and log.md. The
  153. 6:34agents.md file will contain the
  154. 6:37instructions needed for Herms Agent,
  155. 6:40Claude, Codex, and so on, to understand
  156. 6:43how to manage and consult the second
  157. 6:46brain.
  158. 6:48And I will give you these instructions
  159. 6:50now.
  160. 6:51As for the log.md file.
  161. 6:56Inside this file, the artificial
  162. 6:59intelligence will write down every
  163. 7:01change it makes to the second brain, so
  164. 7:04that if necessary, we can read this file
  165. 7:07and understand what has changed.
  166. 7:11The instructions to put inside agents.md
  167. 7:14are these, and you can find them for
  168. 7:16free in the description below.
  169. 7:19First, we explain to the agent what its
  170. 7:21role is.
  171. 7:22It will be the librarian that manages
  172. 7:24this knowledge base.
  173. 7:26We then go on to explain how this
  174. 7:28knowledge base is structured.
  175. 7:31We explain that there is the raw folder
  176. 7:33containing raw files, the wiki
  177. 7:35containing the second brain articles,
  178. 7:37and the output folder to be used for
  179. 7:39responses.
  180. 7:41We then go into detail on how the wiki
  181. 7:44folder works with the indices, the
  182. 7:46structure of the articles, the links
  183. 7:48between them, and so on.
  184. 7:52And then, scrolling to the bottom, we
  185. 7:54also have the description of how the log
  186. 7:56works and the description of the three
  187. 7:58main actions you can perform with the
  188. 8:00second brain:
  189. 8:04compilation, consultation, and audit.
  190. 8:07As for compilation, it allows you to
  191. 8:10take files from the raw folder, clean
  192. 8:12them, organize them, and then move them
  193. 8:15into the wiki.
  194. 8:18As for consultation, it is used to
  195. 8:20search for information within the second
  196. 8:22brain, first by analyzing the indices,
  197. 8:25then analyzing the files, and so on.
  198. 8:29And finally, we have the audit or lint
  199. 8:32command, which is used to clean up our
  200. 8:35second brain, meaning that sometimes we
  201. 8:38want to check for inconsistencies, data
  202. 8:40that isn't coherent, files that might be
  203. 8:43old, therefore no longer current or
  204. 8:46valid, and so on.
  205. 8:49At the bottom, as I mentioned, there is
  206. 8:52also the description of how the log.md
  207. 8:55file works and therefore how it must be
  208. 8:57managed and how events that modify the
  209. 9:00second brain must be stored.
  210. 9:04What we do with this large prompt, very
  211. 9:07simply, is paste it into agents.md.
  212. 9:12We then save this file with command S,
  213. 9:15and at this point, we have the structure
  214. 9:18of our second brain and have written the
  215. 9:21operating rules.
  216. 9:23The only thing left to do is to run some
  217. 9:26tests.
  218. 9:27We will then load some files into the
  219. 9:30raw folder to compile them and see how
  220. 9:33they are handled.
  221. 9:36The most attentive and tech-savvy among
  222. 9:38you will have noticed that I am not
  223. 9:40using Obsidian, which for many is
  224. 9:42synonymous with Second Brain.
  225. 9:46The fact is that that tool is not
  226. 9:48functional for building a second brain,
  227. 9:50but at most, it serves to visualize
  228. 9:52files and see that nice graph with the
  229. 9:55files and connections.
  230. 9:57In practical terms, however, it is not
  231. 10:00essential for what we are doing right
  232. 10:02now. Currently, therefore, I don't feel
  233. 10:04the need for it, so I won't use it.
  234. 10:08If in the future I want to view my
  235. 10:10second brain files more easily, then I
  236. 10:13will add it by selecting it as a
  237. 10:15voltrain.
  238. 10:18To test this second brain, I uploaded
  239. 10:22three files to the row folder containing
  240. 10:26made-up transcripts of a phantom client
  241. 10:29that doesn't actually exist, as they are
  242. 10:33transcripts I had the artificial
  243. 10:36intelligence create. What do I want to
  244. 10:39do?
  245. 10:40I want to take these transcripts and
  246. 10:43move them into the wiki, organizing and
  247. 10:46structuring them in a more defined way
  248. 10:48that is easier to consult.
  249. 10:53So, I go to chat with Hermes and write:
  250. 10:56"If you look inside row, you will find
  251. 10:59three files
  252. 11:04containing call transcripts with the
  253. 11:07client Meridiana
  254. 11:13Assicurazioni."
  255. 11:16I want you to take these three
  256. 11:20transcripts, process them with the
  257. 11:24compile command, and move them into the
  258. 11:28wiki in a folder dedicated to the client
  259. 11:33Meridiana Assicurazioni.
  260. 11:38I press enter and I want you to note the
  261. 11:41level of detail I used for this prompt.
  262. 11:45I didn't just tell it to run the compile
  263. 11:48command and see what it could come up
  264. 11:51with; knowing how I work and that I want
  265. 11:53a wiki for every client, I am the one
  266. 11:56who imposed my way of working and
  267. 11:58managing the second brain on the AI.
  268. 12:02I told it how to create the wiki.
  269. 12:05In my opinion, this isn't a flaw, but
  270. 12:08simply a way of ensuring that artificial
  271. 12:11intelligence adapts to our processes and
  272. 12:14the way we work.
  273. 12:16And so, Hermes Agent has finished its
  274. 12:19work.
  275. 12:20We have the wiki folder containing the
  276. 12:23Meridiana Assicurazioni wiki.
  277. 12:26We have one file for assessment, one for
  278. 12:28training, and one for governance.
  279. 12:32We obviously have an index.md that
  280. 12:34explains the content of each file, and
  281. 12:37the interesting thing is that for each
  282. 12:40file we see the creation date, update
  283. 12:43date, we see the sources of this file,
  284. 12:46and then, of course, we see the content
  285. 12:49, which has been cleaned and structured
  286. 12:52ad hoc.
  287. 12:55We also have an update to the wiki index
  288. 12:58, explaining what the Meridiana
  289. 13:00Assicurazioni wiki contains, such as
  290. 13:03information on the client's AI adoption
  291. 13:06project with assessment, pilot design,
  292. 13:08and so on.
  293. 13:12And obviously, inside the log file, we
  294. 13:14have the operation I performed, which is
  295. 13:17this one, with all the information on
  296. 13:19the changes that were made, which are
  297. 13:22quite a few.
  298. 13:25Essentially, therefore, our second brain
  299. 13:28is ready, and what I will do now is
  300. 13:30delete these example documents and
  301. 13:32instead populate it with my personal
  302. 13:34documents, which I obviously won't show
  303. 13:37you because they are private.
  304. 13:40At this point, we have our second brain
  305. 13:43.
  306. 13:45As long as we're working with 10, 100,
  307. 13:47or 1,000 files, it works perfectly, but
  308. 13:49then, at a certain point, its
  309. 13:51performance worsens.
  310. 13:55Because, yes, it's true that we have
  311. 13:57indices that act a bit like a compass,
  312. 14:00but to find information, our agent still
  313. 14:03has to read these documents; and so,
  314. 14:05when the files we work with start to
  315. 14:08become too many, the performance of the
  316. 14:10second brain drops drastically, and it's
  317. 14:13better to use solutions like, for
  318. 14:15example, RAG, or Retrieval-Augmented
  319. 14:18Generation.
  320. 14:21To solve this problem a bit, the CEO of
  321. 14:24Shopify came up with a solution called
  322. 14:27QMD.
  323. 14:29For those who don't know what QMD is,
  324. 14:32the acronym stands for Query Markdown
  325. 14:34Documents.
  326. 14:36Essentially, it is a semantic search
  327. 14:39system, a keyword search system.
  328. 14:42within the markdown documents that make
  329. 14:45up our second brain.
  330. 14:48To put it simply, it's as if we were
  331. 14:51unlocking a Ctrl + F, a keyword search,
  332. 14:54but one powered by artificial
  333. 14:56intelligence.
  334. 14:59So, to find a certain paragraph or a
  335. 15:01specific topic that interests us, we
  336. 15:04don't need to type the exact words from
  337. 15:06that paragraph.
  338. 15:09Just a few keywords are enough, and our
  339. 15:11artificial intelligence will be able to
  340. 15:14find that information accurately without
  341. 15:17needing to read the entire document from
  342. 15:20top to bottom.
  343. 15:22Basically, it's as if we combined the
  344. 15:25second brain with a RAG system, allowing
  345. 15:27us to find precise information while
  346. 15:30consuming fewer tokens.
  347. 15:33And it is precisely this QMD system that
  348. 15:36we are now going to implement in our
  349. 15:39second brain, and the prompt we are
  350. 15:41using to set up this QMD system is this
  351. 15:44one, which, like all the others, is free
  352. 15:47below in the description.
  353. 15:50The first thing we do is specify which
  354. 15:53folder needs to be indexed, which is the
  355. 15:56wiki.
  356. 15:57We ask Hermes to install QMD.
  357. 16:02We ask to be asked for confirmation
  358. 16:05before each step, and we specify that we
  359. 16:08also want to install the QMD MCP, so
  360. 16:11that we don't have to remember the
  361. 16:14commands for specific wiki searches, but
  362. 16:18simply ask Hermes, and he will run those
  363. 16:21commands.
  364. 16:25Once we have copied this prompt, we take
  365. 16:27it to Hermes, I paste it, hit enter, and
  366. 16:30wait for the artificial intelligence to
  367. 16:32complete its work.
  368. 16:35So, QMD is now installed, and at this
  369. 16:37point, all that's left is to test it.
  370. 16:41What did I do?
  371. 16:43I updated my second brain by uploading
  372. 16:45the slides from my AI Evolution course,
  373. 16:47which is my practical course on AI
  374. 16:49applied to work.
  375. 16:51If you'd like, you can find information
  376. 16:52below in the description.
  377. 16:54I uploaded these slides in raw format,
  378. 16:57had them added to the wiki, and then,
  379. 17:01using QMD, I asked it to index this wiki
  380. 17:04.
  381. 17:05How do we know if it worked?
  382. 17:08Quite simply, if we go to the terminal
  383. 17:11and I run QMD status, it tells me that
  384. 17:14it has indexed the wiki and indexed six
  385. 17:17files, which are the four lessons plus
  386. 17:20the two index files.
  387. 17:24If I clear the screen here and run QMD
  388. 17:27search iteration,
  389. 17:33it actually searches for this keyword
  390. 17:36within my wiki, sort of like a Ctrl + F
  391. 17:40boosted by embedding and therefore by AI
  392. 17:43.
  393. 17:45Obviously, however, we don't want to use
  394. 17:48these commands, we don't want to
  395. 17:50memorize them. So what do we do? We use
  396. 17:52the MCP that has been installed on
  397. 17:55Airmess Agent.
  398. 17:57So here I can ask, use QMD and search
  399. 18:02for information on iteration within the
  400. 18:08wiki.
  401. 18:11It will then do what I previously did
  402. 18:14manually via the terminal; it will take
  403. 18:16care of running those commands itself.
  404. 18:20The big advantage, therefore, is that we
  405. 18:23perform a more precise search by keyword
  406. 18:25or at least by words similar to the ones
  407. 18:28we remember.
  408. 18:31We save a lot of tokens and when
  409. 18:33necessary, we can also manage to pick
  410. 18:36out the specific words we need.
  411. 18:40And so, Hermes is responding.
  412. 18:44It effectively reports the passages it
  413. 18:46read within our wiki.
  414. 18:50The only slightly annoying thing about
  415. 18:54QMD is that when we modify the wiki,
  416. 18:57perhaps by adding files, the wiki must
  417. 19:00be re-indexed, so we come back here into
  418. 19:03Airmess Agent, specify that the wiki has
  419. 19:07been updated, and ask to re-index it
  420. 19:10through QMD.
  421. 19:13To wrap things up, I would like to
  422. 19:15answer a couple of comments that a lot
  423. 19:17of people made under the first episode
  424. 19:20of this miniseries.
  425. 19:23And the first comment was: "Antonio,
  426. 19:25sorry, but what's the point of setting
  427. 19:27up this agent, this whole setup and
  428. 19:29everything, if in the end you use Open
  429. 19:31Router APIs?"
  430. 19:33And the answer is that it actually
  431. 19:35doesn't make sense, but that was only
  432. 19:37the first episode.
  433. 19:39I am currently building the system, I am
  434. 19:42setting up the infrastructure.
  435. 19:44I am doing it with OpenAI APIs because
  436. 19:47they allow me to test things quickly and
  437. 19:50very cheaply, but then, moving forward
  438. 19:53in the series, what I would like to do
  439. 19:55is buy a Mac Studio or, in any case,
  440. 19:58some powerful hardware to host this
  441. 20:01whole system.
  442. 20:02Locally with local models, so either
  443. 20:05Llama or LM Studio. Obviously, though,
  444. 20:09that is the end goal; it cannot be the
  445. 20:11starting point, and so there will be
  446. 20:13episodes that lead us to that point.
  447. 20:17Also, before I buy a Mac Studio, which
  448. 20:19by the way costs a ton of money, I’d
  449. 20:20like to get a sense of whether you’re
  450. 20:22interested in this series and if it’s
  451. 20:24helpful to you in some way.
  452. 20:27So, if you find it helpful and you're
  453. 20:29interested, leave a like and let me know
  454. 20:31down in the comments below.
  455. 20:33As for the second comment, this is
  456. 20:36actually a piece of advice that I truly
  457. 20:39appreciated a lot.
  458. 20:41What you told me, in fact, is "Antonio,
  459. 20:43rather than connecting to Gmail, Drive,
  460. 20:46and so on using the Google Cloud Console
  461. 20:49, which is a very cumbersome process,
  462. 20:52use Composio instead."
  463. 20:55This way you connect to Composio, you
  464. 20:57simply ask Hermes in the chat, and it
  465. 20:59handles the connection for you, and then
  466. 21:02through Composio you connect to
  467. 21:04practically all your applications via
  468. 21:06single sign-on, so basically with one
  469. 21:08click.
  470. 21:11I did it, and I have to confess that
  471. 21:13connecting to Gmail, Drive, and Calendar
  472. 21:16was much more convenient and much faster
  473. 21:19, so it's a tip I really appreciated.
  474. 21:23If you have any other tips, whether on
  475. 21:25the first or the second point, leave
  476. 21:27them down here in the comments.
  477. 21:30That said, I’ll sign off and see you in
  478. 21:32the next one.

About this transcript

This page contains the full transcript of Costruisco un Second Brain Avanzato prima che scoppi la Bolla AI | EP. 2 by Antonio Guadagno, generated from the public captions YouTube serves with the video. The transcript has 2,907 words across 478 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

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

Free YouTube transcript tool

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