## Reflection **Satisfied?** **Improvements and solutions learned for the future**: ## Progress Video outline - [ ] Hook satisfies title and thumbnail - [ ] Structure planned out Video editing - [ ] Watched through it once ## Details Main focus: - have examples on what helps ### Logs ## [[2023-W23]] ### Title How I Added a Chat Bot 🤖 into my Second Brain using AI (Obsidian Custom Frames and Smart Connections Plugin) ChatGPT but for your Second Brain using AI (Obsidian Custom Frames and Smart Connections Plugin) I turned my second brain into an AI Chatbot… I Turned My Second Brain Into an AI Chatbot… How to ask your second brain anything like ChatGPT using AI (Obsidian Smart Connections Plugin) I Made An AI Chatbot From My Notes… How to Set Up AI For Your Second Brain (Obsidian Smart Connections Plugin) Supercharge your Second Brain using AI (Obsidian Smart Connections Plugin) Learn and Find Anything In Your Second Brain using AI (Obsidian Smart Connections Plugin) Talk to your notes using AI #### Measuring 7.2 - I turned my notes into an AI chatbot… 7.1 - learn and find 8.0 - Transform ### Description 00:00 - Introduction 00:58 - Adding ChatGPT into Obsidian 03:07 - Using ChatGPT in Obsidian 04:33 - Use AI in Obsidian using Smart Connections Plugin 06:43 - How AI is used in your second brain 08:49 - Finding smart connections using AI 11:48 - Turning your Obsidian vault into an AI Chatbot ### Tags ### Thumbnail notes -> chatbot - Summarize my book notes - Summarize this book for me - Summarize ## Planning ### Five W's **Details:** **Reason for success:** **What is my audience and how can I cater towards them?** **Personal/Channel Benefits:** **Main ideas/messages:** ### How **Extra preparation/research needed:** **Presentation style:** %% What kind of video will it be?%% - **Contents of script:** %% What are the main categories and key takeaways? %% - **Contents of visuals:** - **Helpful resources and materials:** - ## Relevant Notes - [[Integrating AI into note-taking]] ```dataview list from [[]] and !outgoing([[]]) sort file.mtime desc ``` ## Outline ### Intro **Hook** What if you could have a personal assistant in your second brain that could show you any information you needed from the internet or from your notes? - In this video, I'll be showing you how you can easily achieve just that by integrating AI into your second brain. You'll learn - How to use ChatGPT from inside Obsidian for free - Have a chatbot to search anything from your notes - And lastly, get suggested smart connections to related ideas in your notes - This is the first video of a 3-part series on how I use AI in my second brain - In the second video I'll share the prompts and workflows I use to integrate these AI tools into the entire personal knowledge management process - And in the third video, I'll share a real-life, start to finish process of using it - Everything I talk about in this video will be available and ready to use in my Ultimate Starter Vault, which you can learn more about in the description - Without any further ado, let's level up our second brain ### Content %% Remember why you're creating the video and have a general overview of what you're talking about %% #### Adding ChatGPT - Let's start with the basics, and create a window to access ChatGPT from within Obsidian - To do so, we'll need to download the `Custom Frames` community plugin, a plugin that lets you embed any website into Obsidian - Settings > Community Plugins - Enable - Requires a reload of the app, so open command pallete and `Reload` - Settings - Custom Plugin - Settings - Display Name - Icon (bot) - Put link https://chat.openai.com/ - Now we can open it up by opening command palette and searching up ChatGPT - For me it shows up on my right sidebar - Can also move it around to the main page, or wherever you need - In this case, I'll split it so you can better see, but I usually keep it on the sidebar - Now you can use it for free - For example I can now use it to summarize an input note I have: I can copy some text, use a prompt like please summarize, and then paste it - can copy the summary - Can continue asking questions - If I want to save this conversation, just use the share link, and paste it in here So yeah, now we can pull from the internet as our data source, but now it's time for us to learn how we can enhance our Obsidian vault as well. #### Smart Connections For the next features I'm going to use, we're going to need the Smart Connections Plugin. - Install If you're curious about pricing, It cost me around 17 cents to upload 460 notes which had 160,000 words. - Make sure it works, test it We can add additional settings - Exclude certain notes from search - exclude based on file or folder name - path only means that for these notes, it will only use the title to match, not the content - heading exclusion - can remove sections from daily notes like `Journal` - Can also choose to group nearest by file, which I will show later ### Finding similar notes - just a heads up, all the data in your vault will be sent to OpenAI, so if you care a lot about your privacy I would just stick to using ChatGPT to make it more selective - But I personally don't mind having my data mixed in with millions of other people's for the sake of efficiency, so I'm willing to take the risk - Smart Connections plugin will find the most relevant connections based on the different "blocks" you have in your notes. - How does this even work? - First, the notes in your vault get broken up into different blocks based on its headings. - Next, to determine the relevance of each block, each one is sent to OpenAI, which generates an embedding for that particular block, a set of values that describe its characteristics across different dimensions. In this case, it's described across 1536 dimensions. - Once the embeddings are calculated for each block, they are stored in a hidden file within your Obsidian vault. - So when you are asking the app to find similar connections to a block, it will find other blocks with similar values for each of the parameters, and this relevance is expressed through a percentage. - It's like finding the nearest dot on a graph, except the graph is 1536 dimensions big. - This is really powerful since it can find similarities in dimensions that we might not be consciously thinking of, allowing for even crazier connections So yeah, based on that explanation, the quality of connections it finds is still based on how well your notes are organized. By keeping your notes organized via atomic concept notes and highly comprehensive, it will enhance the power of the plugin. So yeah, once your vault is done creating it's embeddings, you can go to any note, and open the `Smart Connections Files` pane on the sidebar. It will then show the most related notes, and will also show you the % of relevance #### Searching for connections And the best part is, you can also just find related notes not just on notes you have, but on questions or whatever text you choose 🤯 You can click on the search bar and you can type whatever comes to mind. If you want to embed it, you can also use a codeblock to do so (but keep in mind it will go on forever) ```` ```smart-connections How can I be happy ``` ```` Okay, this is already massive on it's own. But now we need to combine the two together to make our own personal assistant just like ChatGPT, but for our own notes. ### Smart Connections Chat We can open the `Smart Connections Chat` pane which will give us a chat box to ask questions to. We can also ask general questions which will use the internet, but if we need to trigger a search of our notes, we need to use a self-referential pronoun (ex. I, me, my, mine, we, us, our, ours) So we can try that out. Based on my notes, explain what a second brain is to me. Then we can title this conversation, `Understanding what a second brain is`, and save it. We can then create a new chat and ask something new, like `Based on my notes, what is a map of content`, and then save it. If you want to go back to previous conversations, you can click on the `Chat history` icon. Just note that the more messages and history there is in a conversation, the more words you will have to send to OpenAI, which means more money hahaha ### Conclusion **What are some relevant references or links?** So yeah, that was a lot to cover, but I'm super excited to continue experimenting with these features in my vault. Next, it's time to learn how to use these AI tools in your day-to-day life through prompts and workflows, which you can learn in my next video on how to use AI for your second brain If you're watching this early and the video isn't up yet, be sure to like and subscribe to stay tuned. You can keep up to date on any new things I learn on my weekly newsletter, which will have links to the new notes I upload on my published second brain. This has been John Mavrick, stay mindful. ## Rough Draft