<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[Aqsa Zafar]]></title><description><![CDATA[Practical machine learning and AI insights. Each week I share tools, learning resources, and simple explanations to help you grow your AI skills.]]></description><link>https://aqsazafar81.substack.com</link><image><url>https://substackcdn.com/image/fetch/$s_!F0TX!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4b93a6b7-9c0b-4508-a20d-03e40066b882_1024x1024.jpeg</url><title>Aqsa Zafar</title><link>https://aqsazafar81.substack.com</link></image><generator>Substack</generator><lastBuildDate>Sat, 25 Jul 2026 14:47:28 GMT</lastBuildDate><atom:link href="https://aqsazafar81.substack.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Aqsa Zafar]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[aqsazafar81@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[aqsazafar81@substack.com]]></itunes:email><itunes:name><![CDATA[Aqsa Zafar]]></itunes:name></itunes:owner><itunes:author><![CDATA[Aqsa Zafar]]></itunes:author><googleplay:owner><![CDATA[aqsazafar81@substack.com]]></googleplay:owner><googleplay:email><![CDATA[aqsazafar81@substack.com]]></googleplay:email><googleplay:author><![CDATA[Aqsa Zafar]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[The Machine Learning Roadmap I’d Actually Give You in 2026 (Not the One I Followed)]]></title><description><![CDATA[Hi everyone!]]></description><link>https://aqsazafar81.substack.com/p/the-machine-learning-roadmap-id-actually</link><guid isPermaLink="false">https://aqsazafar81.substack.com/p/the-machine-learning-roadmap-id-actually</guid><dc:creator><![CDATA[Aqsa Zafar]]></dc:creator><pubDate>Sun, 19 Jul 2026 10:52:28 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!grUa!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c53e4ba-d9ee-49c0-b918-f7c615f9cc8a_1659x948.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!grUa!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c53e4ba-d9ee-49c0-b918-f7c615f9cc8a_1659x948.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!grUa!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c53e4ba-d9ee-49c0-b918-f7c615f9cc8a_1659x948.png 424w, https://substackcdn.com/image/fetch/$s_!grUa!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c53e4ba-d9ee-49c0-b918-f7c615f9cc8a_1659x948.png 848w, https://substackcdn.com/image/fetch/$s_!grUa!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c53e4ba-d9ee-49c0-b918-f7c615f9cc8a_1659x948.png 1272w, https://substackcdn.com/image/fetch/$s_!grUa!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c53e4ba-d9ee-49c0-b918-f7c615f9cc8a_1659x948.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!grUa!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c53e4ba-d9ee-49c0-b918-f7c615f9cc8a_1659x948.png" width="1456" height="832" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6c53e4ba-d9ee-49c0-b918-f7c615f9cc8a_1659x948.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:832,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2069575,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://aqsazafar81.substack.com/i/207644771?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c53e4ba-d9ee-49c0-b918-f7c615f9cc8a_1659x948.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!grUa!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c53e4ba-d9ee-49c0-b918-f7c615f9cc8a_1659x948.png 424w, https://substackcdn.com/image/fetch/$s_!grUa!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c53e4ba-d9ee-49c0-b918-f7c615f9cc8a_1659x948.png 848w, https://substackcdn.com/image/fetch/$s_!grUa!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c53e4ba-d9ee-49c0-b918-f7c615f9cc8a_1659x948.png 1272w, https://substackcdn.com/image/fetch/$s_!grUa!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c53e4ba-d9ee-49c0-b918-f7c615f9cc8a_1659x948.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Hi everyone! I&#8217;m Aqsa Zafar, founder of MLTUT and a Ph.D. scholar in Machine Learning, working mostly in NLP and deep learning. Over the last few years I&#8217;ve talked to hundreds of readers who are trying to break into ML, and I keep getting the same message: &#8220;I&#8217;ve been learning for months, I&#8217;ve watched all the videos, why am I not getting anywhere?&#8221;</p><p>So today I want to lay out the roadmap I&#8217;d actually follow if I were starting from zero in 2026, not the one that was popular when I started, and honestly, not even the one I originally followed myself. A few things I did the first time around wasted a lot of my time, and I don&#8217;t want you to repeat them.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://aqsazafar81.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">This Substack is reader-supported. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p>Let&#8217;s get into it.</p><h2><strong>Step 1: Build Intuition Before You Chase the Math</strong></h2><p>When I started my own ML journey, I made the mistake of thinking I needed to &#8220;master&#8221; math before I was allowed to touch a model. I sat with textbooks for weeks, working through proofs I didn&#8217;t really need yet. It didn&#8217;t make me a better practitioner, it just delayed the point where I actually started learning ML.</p><p>Here&#8217;s what I&#8217;d tell you instead: you need <em>just enough</em> math to not be scared of it, not a math degree.</p><ul><li><p>Linear algebra: enough to understand what a matrix multiplication is actually doing</p></li><li><p>Probability and statistics: enough that Bayes&#8217; theorem and distributions feel familiar, not intimidating</p></li><li><p>Calculus: just enough of the chain rule to follow how backpropagation works</p></li></ul><p>That&#8217;s genuinely most of it. Everything beyond this, you pick up as a specific project demands it, not before.</p><p>For building this intuition, I usually point beginners to <a href="https://coursera.pxf.io/Xx55Na">Andrew Ng&#8217;s Machine Learning Specialization on Coursera</a>, it&#8217;s still one of the best places to get a visual, intuitive feel for these concepts without drowning in derivations.</p><p>Give yourself two to three weeks here, max. This step is about building a mental map, not becoming an expert. If you&#8217;re still &#8220;learning the fundamentals&#8221; three months in, that&#8217;s a sign you&#8217;re stuck in prep mode instead of doing the work.</p><h2><strong>Step 2: Get a Working Understanding of Traditional ML</strong></h2><p>Before jumping into anything fancy, you need to know the basic vocabulary of the field:</p><ul><li><p>What&#8217;s the difference between classification and regression?</p></li><li><p>How do tree-based models differ from linear models and neural networks?</p></li><li><p>What does &#8220;overfitting&#8221; actually look like in practice?</p></li></ul><p>You don&#8217;t need mastery yet, just enough that when someone mentions &#8220;gradient boosting&#8221; or &#8220;random forest,&#8221; you&#8217;re not lost.</p><p>This is a good point to pick up a structured course rather than piecing things together from scattered YouTube videos. I usually recommend <a href="https://datacamp.pxf.io/5kmEY1">DataCamp&#8217;s Machine Learning Fundamentals</a> track for this stage, it&#8217;s hands-on, keeps you writing code from day one instead of just watching slides, and it pairs well with the next step, which is Python.</p><h2><strong>Step 3: Actually Learn Python Properly</strong></h2><p>I cannot stress this enough, Python is non-negotiable for ML. scikit-learn, PyTorch, TensorFlow, basically everything you&#8217;ll touch is Python-based.</p><p>At this stage, focus on:</p><ul><li><p>Core Python (data types, control flow, functions, working with files)</p></li><li><p>NumPy, for anything involving arrays and matrix operations</p></li><li><p>pandas, for working with real, messy tabular data</p></li></ul><p>If you&#8217;ve never coded before, <a href="https://datacamp.pxf.io/enJXgQ">DataCamp&#8217;s Python for Data Science track</a> is a solid, structured way to go from zero to comfortable without getting overwhelmed. I recommend it a lot to readers who tell me &#8220;I don&#8217;t even know where to start.&#8221;</p><h2><strong>Step 4: Don&#8217;t Just Call </strong><code>.fit()</code><strong> &#8212; Understand What&#8217;s Happening</strong></h2><p>This is a trap I see constantly. Someone learns just enough scikit-learn to call <code>.fit()</code> on a model, gets a score back, and assumes they understand machine learning now. They don&#8217;t, they understand how to call a function.</p><p>The thing that actually built my intuition was implementing algorithms from scratch using only NumPy. Logistic regression, k-means, decision trees, writing these out step by step, watching the data move through each part of the algorithm, made the math click in a way that reading about it never did.</p><blockquote><p><em>I build a NumPy course on My YouTube Channel, you can watch it here- <strong><a href="https://youtube.com/playlist?list=PL-F5kYFVRcIvX5OcRcHL5NfO78u8i9ADY&amp;si=LImRkT8aqntE7vKo">Learn NumPy from Scratch</a></strong></em></p></blockquote><p>This isn&#8217;t just an academic exercise either, ML interviews frequently ask you to implement these exact algorithms from scratch, so this step doubles as interview prep. Two birds, one stone.</p><h2><strong>Step 5: Build Projects That Actually Prove Something</strong></h2><p>Here&#8217;s something I&#8217;ve noticed reviewing dozens of portfolios: the people who get interview callbacks and the people who don&#8217;t often have studied roughly the same amount. The difference is almost always what&#8217;s sitting on their GitHub.</p><p>Most beginner portfolios are full of course exercises and Kaggle notebooks where the data, the problem, and even the scoring were handed to them. A hiring manager looking at that learns almost nothing about whether you can actually do the job.</p><p>What you want instead is a project where you made the decisions:</p><ul><li><p>You picked the problem</p></li><li><p>You found or scraped the data</p></li><li><p>You decided how to evaluate success</p></li><li><p>You deployed something a real person could actually use</p></li></ul><p>For example, if you&#8217;re into personal finance, you could build a model that predicts which subscriptions someone is likely to cancel based on usage patterns, and wrap it in a small dashboard. Or if you&#8217;re into health and wellness (an area close to my own research), you could build a simple tool that flags concerning patterns in a small, ethically-sourced dataset. Small in scope is fine. What matters is that every decision was yours.</p><p>And don&#8217;t stop at a notebook. A project that&#8217;s containerized with Docker, deployed somewhere like AWS or GCP, tracks experiments with MLflow or Weights &amp; Biases, and has even a basic CI/CD pipeline tells a hiring manager you can operate like an engineer, not just a student.</p><p>If you want a structured, guided way to build a production-style project without having to figure out deployment on your own from scratch, <a href="https://click.linksynergy.com/deeplink?id=Vrr1tRSwXGM&amp;mid=53187&amp;murl=https%3A%2F%2Fwww.udacity.com%2Fcourse%2Faws-machine-learning-engineer-nanodegree--nd189">Udacity&#8217;s Machine Learning Engineer Nanodegree</a> is built almost entirely around this, I reviewed their <a href="https://www.mltut.com/udacity-agentic-ai-nanodegree-review/">Agentic AI Nanodegree</a> recently on my site and came away genuinely impressed with how project-focused it is.</p><h2><strong>Step 6: Don&#8217;t Skip Generative AI Anymore</strong></h2><p>A year or two ago, I&#8217;d have told you to get classical ML rock-solid before worrying about Gen AI at all. I&#8217;ve softened on that. Classical ML foundations still matter, you need them to understand evaluation, and if you&#8217;re aiming at fields like healthcare or finance, interpretable models are often a requirement, not a preference. But even areas like fraud detection and recommendations are increasingly leaning on Gen AI approaches now.</p><p>Practically, two things matter most here:</p><p><strong>RAG: </strong>not just building a retrieval pipeline, but knowing when retrieval is the right call versus fine-tuning versus simply writing a better prompt.</p><p><strong>Evals: </strong>building evaluation pipelines for Gen AI systems is a huge, underrated chunk of the job right now, and very few beginners know how to do it properly.</p><p>Beyond that, get comfortable with agents and tool use, prompt engineering for production systems, and basic security concerns like prompt injection.</p><p><a href="https://trk.udemy.com/Xmen2X">Udemy</a> has a lot of good, affordable, project-based courses specifically on RAG and LLM applications if you want something hands-on rather than theory-heavy, I&#8217;d rather point you there than a dense research paper if you&#8217;re just starting out with Gen AI engineering.</p><p>On my YouTube Channel, I also made videos on</p><ul><li><p><a href="https://www.youtube.com/watch?v=Q1GnzRs3RbI&amp;t=1437s">Build a Local RAG App In 26 Minutes (Ollama + ChromaDB + Flask)</a></p></li><li><p><a href="https://www.youtube.com/watch?v=snr8J1UON8s">Build an AI Agent That Organizes Your Files In 13 Minutes (Ollama + Llama 3.2)</a></p></li><li><p><a href="https://www.youtube.com/watch?v=BLR02z8mtIo&amp;t=12s">Build a RAG Chatbot That Doesn&#8217;t Hallucinate | Python + LangChain</a></p></li><li><p><a href="https://www.youtube.com/watch?v=PywODxHTO7U&amp;t=12s">Build an AI Chatbot That Works With No Internet (Step by Step)</a></p></li></ul><p>One more thing on this: use AI tools to help you learn, but don&#8217;t let them think for you. There&#8217;s a real &#8220;fluency illusion&#8221; where an AI gives you a clean answer, you nod along, and you walk away feeling like you understood it, when really you skipped the part where your brain does the work that makes it stick. Use AI to explain, to quiz you, to unblock you. Don&#8217;t use it to skip understanding.</p><h2><strong>Step 7: Prepare for Interviews Properly</strong></h2><p>I wish I could tell you that coding interviews are going away for ML roles. They&#8217;re not, at least not everywhere. Some companies have moved toward more AI-native interviewing, but plenty of the bigger names still run a LeetCode-style round alongside ML-specific questions. Budget time for this, it&#8217;s a separate skill from ML itself.</p><h2><strong>Step 8: Don&#8217;t Underestimate Your Network</strong></h2><p>Last thing, and it matters more than people want to admit: who you know affects your callback rate. You don&#8217;t need connections handed to you, you can build them. Go to conferences, be genuinely active in online ML communities, comment thoughtfully on people&#8217;s work, reach out with real questions instead of generic &#8220;can you refer me&#8221; messages. Networking is one of the highest-leverage things you can do in this field, and it costs nothing but consistency.</p><h2><strong>Final Thoughts</strong></h2><p>The path into ML today looks different from the one I walked a few years ago, faster in some ways, but with a lot more ground to cover, especially with Gen AI now a baseline expectation rather than a bonus skill. It&#8217;s not a short road. But it is a very learnable one if you follow it in the right order: intuition, fundamentals, real projects, Gen AI skills, and then interviews and networking &#8212; not the other way around.</p><p>If you found this helpful, I write more roadmaps and tutorials like this over at <a href="https://www.mltut.com/">MLTUT</a>, and I&#8217;d love to have you there.</p><p>Happy Learning!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://aqsazafar81.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">This Substack is reader-supported. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Top RAG (Retrieval Augmented Generation) Resources- Free & Paid Picks ]]></title><description><![CDATA[Retrieval Augmented Generation, properly explained- 10 hand-picked courses & videos, free and paid, so you don't have to dig through all of them yourself.]]></description><link>https://aqsazafar81.substack.com/p/top-rag-retrieval-augmented-generation</link><guid isPermaLink="false">https://aqsazafar81.substack.com/p/top-rag-retrieval-augmented-generation</guid><dc:creator><![CDATA[Aqsa Zafar]]></dc:creator><pubDate>Tue, 30 Jun 2026 11:45:58 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!AEva!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F732b2413-0845-4637-ae0a-4b34c233888c_1536x1024.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!AEva!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F732b2413-0845-4637-ae0a-4b34c233888c_1536x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!AEva!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F732b2413-0845-4637-ae0a-4b34c233888c_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!AEva!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F732b2413-0845-4637-ae0a-4b34c233888c_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!AEva!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F732b2413-0845-4637-ae0a-4b34c233888c_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!AEva!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F732b2413-0845-4637-ae0a-4b34c233888c_1536x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!AEva!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F732b2413-0845-4637-ae0a-4b34c233888c_1536x1024.png" width="1456" height="971" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/732b2413-0845-4637-ae0a-4b34c233888c_1536x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:971,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2274728,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://aqsazafar81.substack.com/i/204258843?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F732b2413-0845-4637-ae0a-4b34c233888c_1536x1024.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!AEva!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F732b2413-0845-4637-ae0a-4b34c233888c_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!AEva!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F732b2413-0845-4637-ae0a-4b34c233888c_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!AEva!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F732b2413-0845-4637-ae0a-4b34c233888c_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!AEva!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F732b2413-0845-4637-ae0a-4b34c233888c_1536x1024.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p>Do you wanna learn RAG (Retrieval Augmented Generation)? If yes, then this blog is just for you. Here I will share a complete list of RAG resources- starting with a few free ones, and then the best paid courses on Coursera, Udemy, DataCamp, and Udacity. So, give your few minutes to this article and pick the right resource for yourself.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://aqsazafar81.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">This Substack is reader-supported. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p>Hello, &amp; Welcome!</p><p>Before going further, a quick note on why I am writing this-</p><p>I made a basic, 30-minute RAG explainer video on my own YouTube channel a while back. It&#8217;s nothing deep, just enough to understand what RAG actually is and why it matters. While putting that together and going through other people&#8217;s content on RAG, I went through a bunch of free tutorials and a few of these paid courses myself to see what&#8217;s actually worth your time and what&#8217;s just repackaged documentation. This list is a mix of that personal experience and proper research, not just a copy-paste of course descriptions.</p><p>Now let&#8217;s get into it-</p><h2>What is RAG and why should you learn it?</h2><p>You already know that Large Language Models (LLMs) like ChatGPT or Claude are trained on a fixed set of data. So, what happens when you ask them something about your own company&#8217;s documents, or something that happened after their training cutoff?</p><p>They either say &#8220;I don&#8217;t know&#8221; or worse, they hallucinate (means they confidently give you a wrong answer).</p><p>This is exactly the problem RAG solves.</p><p>RAG connects an LLM to an external knowledge source (your documents, your database, your PDFs) and retrieves the most relevant information at the time you ask a question. Then it passes that information to the LLM so it can generate an accurate, grounded answer.</p><blockquote><p>In simple words- <strong>RAG = Retrieval (search your data) + Generation (LLM writes the answer using that data)</strong>.</p></blockquote><p>That&#8217;s why almost every real-world AI chatbot, internal company assistant, or customer support bot you see today is built on top of RAG.</p><p>Now, let&#8217;s go through the resources, starting with the free ones.</p><h2>Free RAG Resources</h2><p>If you just want to understand RAG without spending a rupee or a dollar, start here.</p><h3>1. What is RAG? Explained in Under 30 Minutes &#8211; YouTube (mine)</h3><p>This is my own video, so I&#8217;ll keep it honest- it&#8217;s basic, nothing deep. I made it for people who keep hearing &#8220;RAG&#8221; everywhere and just want a clear, no-jargon explanation of what it is, how it works step by step, and where it actually fails in practice.</p><p><strong>Best for</strong>- Someone who wants the &#8220;what and why&#8221; in half an hour, before deciding if they want to go deeper.</p><p><strong>Link</strong>- <a href="https://youtu.be/MBDiJAWx8xk">What is RAG? Retrieval Augmented Generation Explained in Under 30 Minutes</a></p><h3>2. RAG From Scratch &#8211; YouTube Playlist (LangChain)</h3><p>This is a free video series put together by the LangChain team itself. It builds up your understanding of RAG piece by piece- starting from the basic concept of connecting LLMs to external data, and going into more technical depth as the series progresses.</p><p><strong>Best for</strong>- Anyone who wants a free, structured, video-based path that goes deeper than a single explainer video.</p><p><strong>Link</strong>- <a href="https://www.youtube.com/playlist?list=PLfaIDFEXuae2LXbO1_PKyVJiQ23ZztA0x">RAG From Scratch playlist on YouTube</a></p><h3>3. Fundamentals of AI Agents Using RAG and LangChain &#8211; Coursera (IBM, Free to Audit)</h3><p>This one&#8217;s from IBM and goes a bit further than the other free options. It covers the full RAG process, encoders, tokenizers, the FAISS library for vector search, prompt engineering, and how LangChain ties it all together. You also get hands-on labs using Hugging Face and PyTorch.</p><p><strong>Best for</strong>- Beginners who want a free course backed by a known company (IBM), with actual hands-on labs instead of just videos.</p><p><strong>Link</strong>- <a href="https://imp.i384100.net/9LJd50">Fundamentals of AI Agents Using RAG and LangChain on Coursera</a></p><div><hr></div><h2>Paid RAG Courses (Coursera, Udemy, DataCamp, Udacity)</h2><p>Once you&#8217;ve got the basics down for free, these paid courses go deeper into building production-ready RAG systems.</p><h3>4. Retrieval Augmented Generation (RAG) &#8211; Coursera (DeepLearning.AI)</h3><p>If you want to learn RAG from the people who literally teach half the AI industry, this is a solid next step after the free resources above.</p><p>Across five modules, you build progressively more advanced parts of a RAG system- starting from a simple retrieval + prompt augmentation prototype, all the way to production-ready components like hybrid retrieval, reranking, and evaluation. You also get to work with real datasets from e-commerce, media, and healthcare.</p><p><strong>What you&#8217;ll learn</strong>-</p><ul><li><p>How retrievers, vector databases, and LLMs fit together</p></li><li><p>Chunking, query parsing, and reranking techniques</p></li><li><p>How to evaluate a RAG system at both component and system level</p></li></ul><p><strong>Best for</strong>- Anyone who wants a structured, no-fluff foundation in RAG after covering the basics.</p><p><strong>Link</strong>- <a href="https://imp.i384100.net/WOYm3M">Retrieval Augmented Generation (RAG) on Coursera</a></p><h3>5. Introduction to Retrieval Augmented Generation (RAG) &#8211; Coursera (Guided Project)</h3><p>Confused about where to start coding? Don&#8217;t worry, this one&#8217;s for you.</p><p>This is a short, 2-hour, hands-on Guided Project. You will import data into Pandas, create embeddings using SentenceTransformers, and build a working RAG system using Qdrant and an LLM. The video plays side-by-side with your workspace, so you literally code along with the instructor.</p><p><strong>What you&#8217;ll learn</strong>-</p><ul><li><p>How to set up a basic RAG pipeline end-to-end</p></li><li><p>Working with vector databases like Qdrant</p></li><li><p>Connecting your pipeline to an LLM</p></li></ul><p><strong>Best for</strong>- Beginners who want to &#8220;see it work&#8221; with their own hands, in under a couple of hours.</p><p><strong>Link</strong>- <a href="https://imp.i384100.net/21x9yO">Introduction to Retrieval Augmented Generation (RAG) on Coursera</a></p><h3>6. Ultimate RAG Bootcamp Using LangChain, LangGraph &amp; LangSmith &#8211; Udemy</h3><p>This one is for the folks who don&#8217;t want a &#8220;basic RAG&#8221; course. They want the whole package.</p><p>This bootcamp takes you from traditional RAG pipelines all the way to Agentic RAG architectures used in production. You&#8217;ll work with multiple vector databases (FAISS, Pinecone, Weaviate), implement hybrid search, build multimodal RAG (text + images), and even use LangSmith to track and debug your pipelines.</p><p><strong>What you&#8217;ll learn</strong>-</p><ul><li><p>Advanced retrieval strategies (hybrid search, vector optimization)</p></li><li><p>Multi-agent, autonomous RAG pipelines using LangGraph</p></li><li><p>Domain-specific chatbots and multimodal AI assistants</p></li></ul><p><strong>Best for</strong>- Developers who already know RAG basics and want to go &#8220;advanced and agentic.&#8221;</p><p><strong>Link</strong>- <a href="https://trk.udemy.com/5kKxg1">Ultimate RAG Bootcamp Using LangChain, LangGraph &amp; LangSmith on Udemy</a></p><h3>7. Build AI Retrieval-Augmented Systems (RAG) &#8211; Udemy</h3><p>Do you learn better by building something real rather than just watching lectures? Then this course is for you.</p><p>This is a step-by-step, project-based course where you build a fully working RAG system that reads your documents and answers questions with cited, grounded answers. By the end, you will have built and deployed a real RAG application using Streamlit and the OpenAI API.</p><p><strong>What you&#8217;ll learn</strong>-</p><ul><li><p>Connecting retrieval and generation into one working pipeline</p></li><li><p>Building an interactive Streamlit app for document chat</p></li><li><p>Deploying your RAG system to Streamlit Cloud</p></li></ul><p><strong>Best for</strong>- Beginners and intermediate learners who want a portfolio-ready project, not just theory.</p><p><strong>Link</strong>- <a href="https://trk.udemy.com/aNP4nY">Build AI Retrieval-Augmented Systems (RAG) on Udemy</a></p><h3>8. Retrieval Augmented Generation (RAG) with LangChain &#8211; DataCamp</h3><p>If you like structured, bite-sized lessons with interactive coding exercises (instead of long video lectures), DataCamp&#8217;s style will suit you well.</p><p>This course goes a level deeper than &#8220;basic RAG with LangChain.&#8221; You&#8217;ll learn to load and split code files in a way that respects code syntax, split documents by tokens instead of characters so nothing overflows your model&#8217;s context window, and even explore Graph RAG as an alternative to vector-based retrieval.</p><p><strong>What you&#8217;ll learn</strong>-</p><ul><li><p>Advanced document loading and splitting strategies</p></li><li><p>Self-query retrieval and evaluation frameworks for RAG</p></li><li><p>Basics of Graph RAG</p></li></ul><p><strong>Best for</strong>- Learners who prefer DataCamp&#8217;s hands-on, in-browser coding style.</p><p><strong>Link</strong>- <a href="https://datacamp.pxf.io/yZrd52">Retrieval Augmented Generation (RAG) with LangChain on DataCamp</a></p><h3>9. Retrieval Augmented Generation with LlamaIndex &#8211; DataCamp</h3><p>LangChain is not the only framework in town. If you want to explore the LlamaIndex side of RAG, this one&#8217;s for you.</p><p>This course teaches you advanced RAG methods like dense retrieval, reranking, and multi-step reasoning, which directly help tackle issues like hallucination and ambiguous queries. It&#8217;s a great companion course if you&#8217;ve already done a LangChain-based RAG course and want to compare frameworks.</p><p><strong>What you&#8217;ll learn</strong>-</p><ul><li><p>Building RAG pipelines using LlamaIndex</p></li><li><p>Reranking approaches to improve retrieval quality</p></li><li><p>Multi-step reasoning techniques for complex queries</p></li></ul><p><strong>Best for</strong>- Learners who want to compare LlamaIndex vs LangChain for RAG.</p><p><strong>Link</strong>- <a href="https://datacamp.pxf.io/JkBWzv">Retrieval Augmented Generation with LlamaIndex on DataCamp</a></p><h3>10. Master LLMs and RAG &#8211; Udacity</h3><p>Want something more structured, like a proper course with instructors from real companies, rather than a one-off tutorial? Udacity&#8217;s course fits that need.</p><p>This course doesn&#8217;t just teach you RAG in isolation. It first builds your understanding of LLM architecture, tokenization, and attention, then moves into prompt engineering and model selection trade-offs, and only then dives deep into RAG- covering naive vs advanced modular RAG, vector database indexing (HNSW), and advanced retrieval techniques like HyDE and reranking. By the end, you build an end-to-end RAG chatbot using real NASA mission data and evaluate it using RAGAS.</p><p><strong>What you&#8217;ll learn</strong>-</p><ul><li><p>Naive vs advanced modular RAG architecture</p></li><li><p>Semantic search, vector databases, and indexing algorithms</p></li><li><p>Evaluating RAG systems using RAGAS metrics</p></li></ul><p><strong>Best for</strong>- Learners who want a complete, guided path from LLM fundamentals to a finished RAG project.</p><p><strong>Link</strong>- <a href="https://click.linksynergy.com/deeplink?id=Vrr1tRSwXGM&amp;mid=53187&amp;murl=https%3A%2F%2Fwww.udacity.com%2Fcourse%2Flarge-language-models-llms-and-retrieval-augmented-generation-rag--cd13318">Master LLMs and RAG on Udacity</a></p><h2>Conclusion</h2><p>RAG is no longer an &#8220;optional skill&#8221; for AI practitioners. Whether you are a data scientist, ML engineer, or just an AI enthusiast, RAG is something you will run into in almost every real-world LLM application you build or work on.</p><p>I started this list with free resources (including my own basic explainer) on purpose- there&#8217;s no need to spend money before you&#8217;re even sure RAG is something you want to go deep into. Once you&#8217;ve got the fundamentals down for free, the paid courses above will help you go from &#8220;I understand RAG&#8221; to &#8220;I can build and deploy a real RAG system.&#8221;</p><p>If you have already taken any of these courses, let me know in the comments how your experience was. And if you pick one after reading this, I would love to know which one you chose!</p><p><strong>Happy Learning!</strong></p><div><hr></div><p><em>Disclosure- This post contains affiliate links. If you sign up for a course through one of these links, I may earn a small commission at no extra cost to you. I only recommend courses I genuinely think are worth your time.</em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://aqsazafar81.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">This Substack is reader-supported. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[What is a Vector Database? Super Easy Explanation for Beginners]]></title><description><![CDATA[How AI finds the right answer out of thousands of documents, in seconds]]></description><link>https://aqsazafar81.substack.com/p/what-is-a-vector-database-super-easy</link><guid isPermaLink="false">https://aqsazafar81.substack.com/p/what-is-a-vector-database-super-easy</guid><dc:creator><![CDATA[Aqsa Zafar]]></dc:creator><pubDate>Thu, 18 Jun 2026 05:42:44 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!-BJ0!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa558797c-af75-4393-9c60-43599ee96740_1024x1536.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!-BJ0!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa558797c-af75-4393-9c60-43599ee96740_1024x1536.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!-BJ0!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa558797c-af75-4393-9c60-43599ee96740_1024x1536.png 424w, https://substackcdn.com/image/fetch/$s_!-BJ0!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa558797c-af75-4393-9c60-43599ee96740_1024x1536.png 848w, https://substackcdn.com/image/fetch/$s_!-BJ0!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa558797c-af75-4393-9c60-43599ee96740_1024x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!-BJ0!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa558797c-af75-4393-9c60-43599ee96740_1024x1536.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!-BJ0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa558797c-af75-4393-9c60-43599ee96740_1024x1536.png" width="1024" height="1536" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a558797c-af75-4393-9c60-43599ee96740_1024x1536.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1536,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1449799,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://aqsazafar81.substack.com/i/202536754?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa558797c-af75-4393-9c60-43599ee96740_1024x1536.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!-BJ0!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa558797c-af75-4393-9c60-43599ee96740_1024x1536.png 424w, https://substackcdn.com/image/fetch/$s_!-BJ0!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa558797c-af75-4393-9c60-43599ee96740_1024x1536.png 848w, https://substackcdn.com/image/fetch/$s_!-BJ0!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa558797c-af75-4393-9c60-43599ee96740_1024x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!-BJ0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa558797c-af75-4393-9c60-43599ee96740_1024x1536.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>In my last post, I explained <strong>What is RAG</strong>. But there's one part I skipped over, how does the AI actually find the right document so fast, out of hundreds or thousands of files? That part has a name, it's called a <strong>Vector Database</strong>. So in this article, I am gonna break that down too.</p><p>So give your few minutes and learn about Vector Databases and why every AI tool you use is secretly built on top of one.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://aqsazafar81.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">This Substack is reader-supported. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p>So, without further ado, let&#8217;s get started-</p><h2><strong>What is a Vector Database?</strong></h2><p>Before moving to the working of a Vector Database, I would like to tell you about the actual problem it solves.</p><p>Suppose you have a search bar, and you type the word &#8220;dog.&#8221; A normal search bar will look for the exact word &#8220;dog&#8221; in all your documents. But what if your document has the word &#8220;puppy&#8221; instead? A normal search bar will completely miss it. Because for a computer, &#8220;dog&#8221; and &#8220;puppy&#8221; are two different words, even though for us, they basically mean the same thing.</p><p>This is the actual problem. Computers are good at matching exact text, but they are not good at understanding meaning. That&#8217;s where a Vector Database comes in.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!P0jH!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45fa8c6e-531f-4075-a6e8-2cbd7d7d3f22_772x329.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!P0jH!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45fa8c6e-531f-4075-a6e8-2cbd7d7d3f22_772x329.png 424w, https://substackcdn.com/image/fetch/$s_!P0jH!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45fa8c6e-531f-4075-a6e8-2cbd7d7d3f22_772x329.png 848w, https://substackcdn.com/image/fetch/$s_!P0jH!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45fa8c6e-531f-4075-a6e8-2cbd7d7d3f22_772x329.png 1272w, https://substackcdn.com/image/fetch/$s_!P0jH!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45fa8c6e-531f-4075-a6e8-2cbd7d7d3f22_772x329.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!P0jH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45fa8c6e-531f-4075-a6e8-2cbd7d7d3f22_772x329.png" width="772" height="329" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/45fa8c6e-531f-4075-a6e8-2cbd7d7d3f22_772x329.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:329,&quot;width&quot;:772,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:21865,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aqsazafar81.substack.com/i/202536754?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45fa8c6e-531f-4075-a6e8-2cbd7d7d3f22_772x329.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!P0jH!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45fa8c6e-531f-4075-a6e8-2cbd7d7d3f22_772x329.png 424w, https://substackcdn.com/image/fetch/$s_!P0jH!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45fa8c6e-531f-4075-a6e8-2cbd7d7d3f22_772x329.png 848w, https://substackcdn.com/image/fetch/$s_!P0jH!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45fa8c6e-531f-4075-a6e8-2cbd7d7d3f22_772x329.png 1272w, https://substackcdn.com/image/fetch/$s_!P0jH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45fa8c6e-531f-4075-a6e8-2cbd7d7d3f22_772x329.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>So, this is the basic problem. Now let's understand what a vector actually is.</p><h2><strong>What is a Vector, Actually?</strong></h2><p>A vector is nothing but a list of numbers. That&#8217;s it. That list of numbers represents something, it could be a word, a sentence, a paragraph, or even an image.</p><p><strong>Do you think?</strong> How can numbers represent a word?</p><p>Let me explain with an example you already know, GPS location.</p><p>When you share your location with a friend, you don&#8217;t say &#8220;I&#8217;m near the big tree, past the blue gate, next to the shop.&#8221; You just send two numbers, latitude and longitude. Those two numbers tell exactly where you are on the map.</p><p>A vector works the same way. Except instead of 2 numbers showing your location on Earth, it might have hundreds of numbers showing the &#8220;location&#8221; of a word or sentence in a giant space of meaning.</p><p>So when an AI model converts the word &#8220;dog&#8221; into a vector, it is basically giving &#8220;dog&#8221; a coordinate. And the word &#8220;puppy&#8221; gets a coordinate very close to it. Because their meaning is close too.</p><blockquote><p>A vector database is not magic. It&#8217;s just a smart way of storing meaning as numbers, and then searching by closeness instead of by exact words.</p></blockquote><h2><strong>The Map of Meaning</strong></h2><p>Now imagine a huge map. But instead of cities, this map has words placed on it. Words with similar meaning are placed close together. Words with different meaning are placed far apart.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!HeZB!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd1da745d-ec58-4965-b40c-46e41d1e0323_774x399.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!HeZB!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd1da745d-ec58-4965-b40c-46e41d1e0323_774x399.png 424w, https://substackcdn.com/image/fetch/$s_!HeZB!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd1da745d-ec58-4965-b40c-46e41d1e0323_774x399.png 848w, https://substackcdn.com/image/fetch/$s_!HeZB!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd1da745d-ec58-4965-b40c-46e41d1e0323_774x399.png 1272w, https://substackcdn.com/image/fetch/$s_!HeZB!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd1da745d-ec58-4965-b40c-46e41d1e0323_774x399.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!HeZB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd1da745d-ec58-4965-b40c-46e41d1e0323_774x399.png" width="774" height="399" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d1da745d-ec58-4965-b40c-46e41d1e0323_774x399.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:399,&quot;width&quot;:774,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:29308,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aqsazafar81.substack.com/i/202536754?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd1da745d-ec58-4965-b40c-46e41d1e0323_774x399.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!HeZB!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd1da745d-ec58-4965-b40c-46e41d1e0323_774x399.png 424w, https://substackcdn.com/image/fetch/$s_!HeZB!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd1da745d-ec58-4965-b40c-46e41d1e0323_774x399.png 848w, https://substackcdn.com/image/fetch/$s_!HeZB!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd1da745d-ec58-4965-b40c-46e41d1e0323_774x399.png 1272w, https://substackcdn.com/image/fetch/$s_!HeZB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd1da745d-ec58-4965-b40c-46e41d1e0323_774x399.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>As you can see in this image, &#8220;dog,&#8221; &#8220;puppy,&#8221; and &#8220;canine&#8221; are placed close together, because they mean almost the same thing. &#8220;Apple,&#8221; &#8220;banana,&#8221; and &#8220;mango&#8221; form their own group. And &#8220;sadness&#8221; is sitting all alone, far from everything, because it has nothing to do with the other words.</p><p>So a Vector Database is basically the system that stores all these coordinates. And when you ask a question, it just finds whatever is closest to your question on this map. That&#8217;s the whole idea.</p><h2><strong>How Does a Vector Database Actually Work?</strong></h2><p>Now Let&#8217;s understand the working in steps. There are mainly 4 steps involved-</p><ol><li><p><strong>Convert text into a vector</strong> (this step is called embedding)</p></li><li><p><strong>Store the vector</strong> in the database along with the original text</p></li><li><p><strong>Convert your search query into a vector too</strong></p></li><li><p><strong>Find the closest vectors</strong> and return their original text</p></li></ol><p>Let&#8217;s understand each step one by one.</p><h3><strong>1. Embedding- Converting Text into Numbers</strong></h3><p>Every sentence or document you want to store first passes through an embedding model. This model converts your text into a vector, that long list of numbers we talked about earlier.</p><p><code>text = "I love machine learning"<br>vector = embedding_model.encode(text)<br><br># Output (simplified)<br># vector = [0.21, -0.08, 0.44, 0.12, ......]</code></p><p>So now this sentence is no longer just text, it&#8217;s a point in a giant space of meaning.</p><h3><strong>2. Storing the Vector</strong></h3><p>This vector, along with the original text, gets stored inside the vector database. Most popular vector databases right now are <strong>Pinecone, Chroma, Weaviate, and Qdrant.</strong> You don&#8217;t need to memorize all these names, just know that these tools exist for exactly this purpose.</p><h3><strong>3. Converting Your Question into a Vector</strong></h3><p>When you type a question, like &#8220;What is machine learning?&#8221;, that question also gets converted into a vector using the same embedding model.</p><h3><strong>4. Finding the Closest Match</strong></h3><p>Now the database compares your question&#8217;s vector with every vector it has stored. And it finds whichever ones are sitting closest. This closeness is usually measured using something called <strong>cosine similarity</strong>, but you don&#8217;t need to worry about the math behind it right now. Just remember, closer vectors mean closer meaning.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!9lpM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7d17ffa-1454-4558-aef3-44b55f350467_785x343.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!9lpM!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7d17ffa-1454-4558-aef3-44b55f350467_785x343.png 424w, https://substackcdn.com/image/fetch/$s_!9lpM!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7d17ffa-1454-4558-aef3-44b55f350467_785x343.png 848w, https://substackcdn.com/image/fetch/$s_!9lpM!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7d17ffa-1454-4558-aef3-44b55f350467_785x343.png 1272w, https://substackcdn.com/image/fetch/$s_!9lpM!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7d17ffa-1454-4558-aef3-44b55f350467_785x343.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!9lpM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7d17ffa-1454-4558-aef3-44b55f350467_785x343.png" width="785" height="343" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c7d17ffa-1454-4558-aef3-44b55f350467_785x343.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:343,&quot;width&quot;:785,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:19748,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aqsazafar81.substack.com/i/202536754?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7d17ffa-1454-4558-aef3-44b55f350467_785x343.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!9lpM!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7d17ffa-1454-4558-aef3-44b55f350467_785x343.png 424w, https://substackcdn.com/image/fetch/$s_!9lpM!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7d17ffa-1454-4558-aef3-44b55f350467_785x343.png 848w, https://substackcdn.com/image/fetch/$s_!9lpM!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7d17ffa-1454-4558-aef3-44b55f350467_785x343.png 1272w, https://substackcdn.com/image/fetch/$s_!9lpM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7d17ffa-1454-4558-aef3-44b55f350467_785x343.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>And that's the whole working procedure. Not that complicated once you break it down, right?</p><p>If you want to see this whole process explained visually with a real walkthrough, I made a full video on it. Watch it here-</p><div id="youtube2-XAqsfyrjmYE" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;XAqsfyrjmYE&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/XAqsfyrjmYE?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><h2><strong>Where is Vector Database Used in Real Life?</strong></h2><p>Now you might be thinking, &#8220;Okay Aqsa, but where do I actually see this in action?&#8221; So let me give you a few real examples-</p><p><strong>1. RAG Systems-</strong> Remember my previous post on RAG? The retriever part, the one that searches your documents, runs on a vector database in the background. This is literally the missing piece that connects both topics.</p><p><strong>2. Product Recommendations-</strong> When a shopping site shows &#8220;similar products,&#8221; it&#8217;s often comparing vectors of products, not just matching categories.</p><p><strong>3. Music and Video Recommendations-</strong> Apps that suggest songs based on &#8220;vibe&#8221; rather than just genre are comparing vectors of how the content sounds or feels.</p><p><strong>4. Chatbots and Customer Support-</strong> Any chatbot that searches through your company&#8217;s documents to answer a question is most likely using a vector database under the hood.</p><div><hr></div><h2><strong>Vector Database vs Normal Database</strong></h2><p>I know at this point, you might be confused, what&#8217;s the difference between this and a normal database you already know? Let me clear it up-</p><ul><li><p><strong>Normal database</strong> stores exact values, and searches using exact match or filters. Good for something like &#8220;find the customer with ID = 5.&#8221;</p></li><li><p><strong>Vector database</strong> stores meaning as numbers, and searches by closeness. Good for something like &#8220;find documents similar to this question.&#8221;</p></li></ul><p>One thing you need to remember is, a vector database doesn&#8217;t replace a normal database. Most real systems use both together. Normal database for structured facts like price, ID, date. Vector database for anything that needs understanding of meaning, like text, images, or questions.</p><h2><strong>Conclusion</strong></h2><p>I tried to explain Vector Databases in a simple and easy to understand way. Hope you understood.</p><p>To summarize everything-</p><ul><li><p>Normal search matches exact words, and misses things phrased differently</p></li><li><p>A vector is just a list of numbers that represents meaning</p></li><li><p>A vector database stores these numbers and finds the closest match when you search</p></li></ul><p>That&#8217;s it. Not magic, just a smart way to store meaning so a computer can finally search through it the way our brain naturally does.</p><p>I would suggest you go try a tool like Chroma yourself, it&#8217;s free and beginner friendly. And if you have any doubts, feel free to ask me in the comments. I would like to help you.</p><p>Happy Learning!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://aqsazafar81.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">This Substack is reader-supported. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[What is RAG?And why should you care?]]></title><description><![CDATA[How does RAG actually work? (step by step)]]></description><link>https://aqsazafar81.substack.com/p/what-is-ragand-why-should-you-care</link><guid isPermaLink="false">https://aqsazafar81.substack.com/p/what-is-ragand-why-should-you-care</guid><dc:creator><![CDATA[Aqsa Zafar]]></dc:creator><pubDate>Wed, 10 Jun 2026 12:19:50 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!i53h!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a94a6ed-5148-434f-9168-47bb5a8834d0_1774x887.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!i53h!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a94a6ed-5148-434f-9168-47bb5a8834d0_1774x887.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!i53h!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a94a6ed-5148-434f-9168-47bb5a8834d0_1774x887.png 424w, https://substackcdn.com/image/fetch/$s_!i53h!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a94a6ed-5148-434f-9168-47bb5a8834d0_1774x887.png 848w, https://substackcdn.com/image/fetch/$s_!i53h!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a94a6ed-5148-434f-9168-47bb5a8834d0_1774x887.png 1272w, https://substackcdn.com/image/fetch/$s_!i53h!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a94a6ed-5148-434f-9168-47bb5a8834d0_1774x887.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!i53h!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a94a6ed-5148-434f-9168-47bb5a8834d0_1774x887.png" width="1456" height="728" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7a94a6ed-5148-434f-9168-47bb5a8834d0_1774x887.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:728,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1352900,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://aqsazafar81.substack.com/i/201442562?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a94a6ed-5148-434f-9168-47bb5a8834d0_1774x887.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!i53h!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a94a6ed-5148-434f-9168-47bb5a8834d0_1774x887.png 424w, https://substackcdn.com/image/fetch/$s_!i53h!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a94a6ed-5148-434f-9168-47bb5a8834d0_1774x887.png 848w, https://substackcdn.com/image/fetch/$s_!i53h!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a94a6ed-5148-434f-9168-47bb5a8834d0_1774x887.png 1272w, https://substackcdn.com/image/fetch/$s_!i53h!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a94a6ed-5148-434f-9168-47bb5a8834d0_1774x887.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p>Okay, real talk for a second.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://aqsazafar81.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">This Substack is reader-supported. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p>When I first heard the term &#8220;RAG,&#8221; I had zero idea what it meant. But once someone explained it to me in plain English, not in a research paper, not in a two-hour lecture, it made total sense.</p><p>So that is exactly what I am going to do for you today. I will explain RAG the way I wish someone had explained it to me: simply, with examples you actually recognise from real life.</p><blockquote><p>"RAG changed how I think about what AI can and cannot do. Once you understand it, you will see it everywhere."</p></blockquote><p>Starting from the very beginning.</p><h2><strong>First, the problem</strong></h2><p>You have probably used ChatGPT or any AI assistant and noticed something odd. You ask it about something that happened last week and it either gives you wrong information or says it does not know.</p><p>Why? Because AI models have a knowledge cutoff, a date after which they were not trained on any new information. Think of it like this:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!x8WW!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d7149f2-05c5-4b3e-8adf-f526650881db_764x367.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!x8WW!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d7149f2-05c5-4b3e-8adf-f526650881db_764x367.png 424w, https://substackcdn.com/image/fetch/$s_!x8WW!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d7149f2-05c5-4b3e-8adf-f526650881db_764x367.png 848w, https://substackcdn.com/image/fetch/$s_!x8WW!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d7149f2-05c5-4b3e-8adf-f526650881db_764x367.png 1272w, https://substackcdn.com/image/fetch/$s_!x8WW!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d7149f2-05c5-4b3e-8adf-f526650881db_764x367.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!x8WW!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d7149f2-05c5-4b3e-8adf-f526650881db_764x367.png" width="764" height="367" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8d7149f2-05c5-4b3e-8adf-f526650881db_764x367.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:367,&quot;width&quot;:764,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:30059,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aqsazafar81.substack.com/i/201442562?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d7149f2-05c5-4b3e-8adf-f526650881db_764x367.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!x8WW!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d7149f2-05c5-4b3e-8adf-f526650881db_764x367.png 424w, https://substackcdn.com/image/fetch/$s_!x8WW!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d7149f2-05c5-4b3e-8adf-f526650881db_764x367.png 848w, https://substackcdn.com/image/fetch/$s_!x8WW!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d7149f2-05c5-4b3e-8adf-f526650881db_764x367.png 1272w, https://substackcdn.com/image/fetch/$s_!x8WW!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d7149f2-05c5-4b3e-8adf-f526650881db_764x367.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Imagine you studied hard for an exam in 2024. You memorised everything up to that point. Then someone asks you about news from last Tuesday. You would have no idea, because that happened after you finished studying.</p><p>That is exactly what happens with AI. It was trained up to a certain date and then stopped learning. So when you ask it about your company&#8217;s internal documents, your latest research, or anything recent, it either guesses or says it does not know.</p><div class="callout-block" data-callout="true"><p>&#128161; <strong>Real example:</strong>Ask ChatGPT &#8220;What is our company refund policy?&#8221; and it will either make something up or say it does not know. That is because it has never seen your company&#8217;s documents. That information was never part of its training.</p></div><h2><strong>So... what is RAG?</strong></h2><p>RAG stands for <strong>Retrieval-Augmented Generation</strong>. I know, still sounds technical. But broken down word by word, it makes sense.</p><h4><strong>&#128218; Retrieval</strong></h4><ul><li><p>Go find the right information</p></li><li><p>Search through documents</p></li><li><p>Pick the most relevant bits</p></li></ul><h4><strong>&#9997;&#65039; Generation</strong></h4><ul><li><p>Use AI to write an answer</p></li><li><p>Combine what was retrieved</p></li><li><p>Produce a clear response</p></li></ul><p>Put those together: <mark data-color="#ead1dc" style="background-color: rgb(234, 209, 220); color: rgb(0, 0, 0);">find the right information, then use AI to form a good answer from it</mark>. That is RAG.</p><div class="callout-block" data-callout="true"><p>"RAG is basically giving the AI a reference book to look at before it answers, instead of expecting it to have everything memorised."</p></div><h2><strong>The library analogy </strong></h2><p>Here is the best way I can explain it. Picture two students. Both are smart. Both have been studying hard.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!KH7F!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90bd8ae0-409f-4d1a-bec1-7c45582b5683_762x414.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!KH7F!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90bd8ae0-409f-4d1a-bec1-7c45582b5683_762x414.png 424w, https://substackcdn.com/image/fetch/$s_!KH7F!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90bd8ae0-409f-4d1a-bec1-7c45582b5683_762x414.png 848w, https://substackcdn.com/image/fetch/$s_!KH7F!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90bd8ae0-409f-4d1a-bec1-7c45582b5683_762x414.png 1272w, https://substackcdn.com/image/fetch/$s_!KH7F!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90bd8ae0-409f-4d1a-bec1-7c45582b5683_762x414.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!KH7F!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90bd8ae0-409f-4d1a-bec1-7c45582b5683_762x414.png" width="762" height="414" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/90bd8ae0-409f-4d1a-bec1-7c45582b5683_762x414.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:414,&quot;width&quot;:762,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:38964,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aqsazafar81.substack.com/i/201442562?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90bd8ae0-409f-4d1a-bec1-7c45582b5683_762x414.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!KH7F!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90bd8ae0-409f-4d1a-bec1-7c45582b5683_762x414.png 424w, https://substackcdn.com/image/fetch/$s_!KH7F!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90bd8ae0-409f-4d1a-bec1-7c45582b5683_762x414.png 848w, https://substackcdn.com/image/fetch/$s_!KH7F!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90bd8ae0-409f-4d1a-bec1-7c45582b5683_762x414.png 1272w, https://substackcdn.com/image/fetch/$s_!KH7F!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90bd8ae0-409f-4d1a-bec1-7c45582b5683_762x414.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Student A walks into the exam using only what is in their head. They might do fine on familiar topics but will struggle, or guess, on anything outside their memory.</p><p>Student B is allowed a reference book. Not to cheat, but to look things up accurately when needed. They still need to understand what they are reading. But their answers are grounded in actual sources.</p><p><strong>RAG makes AI into Student B.</strong></p><h2><strong>How does RAG actually work? (step by step)</strong></h2><p>Now you have the idea. Here is what actually happens under the hood when RAG is running.</p><h4><strong><mark data-color="#f9cb9c" style="background-color: rgb(249, 203, 156); color: rgb(0, 0, 0);">1. You ask a question</mark></strong></h4><p>You type something like: &#8220;What is our leave policy for new employees?&#8221; Simple enough, but the AI does not have this in its training data.</p><h4><strong><mark data-color="#f9cb9c" style="background-color: rgb(249, 203, 156); color: rgb(0, 0, 0);">2. The system searches your documents</mark></strong></h4><p>Before the AI even tries to answer, RAG searches through documents you have given it, PDFs, notes, databases, websites. It finds the most relevant pieces.</p><h4><strong><mark data-color="#f9cb9c" style="background-color: rgb(249, 203, 156); color: rgb(0, 0, 0);">3. The relevant bits get pulled out</mark></strong></h4><p>Think of someone highlighting the parts of a document that actually answer your question. RAG pulls those chunks and passes them along.</p><h4><strong><mark data-color="#f9cb9c" style="background-color: rgb(249, 203, 156); color: rgb(0, 0, 0);">4. The AI reads those bits alongside your question</mark></strong></h4><p>Now the AI gets: &#8220;Here is the relevant info from the documents, and here is the question. Now answer it.&#8221; It reads both at the same time.</p><h4><strong><mark data-color="#f9cb9c" style="background-color: rgb(249, 203, 156); color: rgb(0, 0, 0);">5. You get a grounded, accurate answer</mark></strong></h4><p>The AI forms a response using the information it just retrieved. It can even tell you exactly which document it got the answer from.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!JXUx!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb701f47-2716-4c17-ab21-f07b51cafe8f_756x343.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!JXUx!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb701f47-2716-4c17-ab21-f07b51cafe8f_756x343.png 424w, https://substackcdn.com/image/fetch/$s_!JXUx!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb701f47-2716-4c17-ab21-f07b51cafe8f_756x343.png 848w, https://substackcdn.com/image/fetch/$s_!JXUx!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb701f47-2716-4c17-ab21-f07b51cafe8f_756x343.png 1272w, https://substackcdn.com/image/fetch/$s_!JXUx!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb701f47-2716-4c17-ab21-f07b51cafe8f_756x343.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!JXUx!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb701f47-2716-4c17-ab21-f07b51cafe8f_756x343.png" width="756" height="343" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/eb701f47-2716-4c17-ab21-f07b51cafe8f_756x343.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:343,&quot;width&quot;:756,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:27621,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aqsazafar81.substack.com/i/201442562?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb701f47-2716-4c17-ab21-f07b51cafe8f_756x343.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!JXUx!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb701f47-2716-4c17-ab21-f07b51cafe8f_756x343.png 424w, https://substackcdn.com/image/fetch/$s_!JXUx!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb701f47-2716-4c17-ab21-f07b51cafe8f_756x343.png 848w, https://substackcdn.com/image/fetch/$s_!JXUx!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb701f47-2716-4c17-ab21-f07b51cafe8f_756x343.png 1272w, https://substackcdn.com/image/fetch/$s_!JXUx!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb701f47-2716-4c17-ab21-f07b51cafe8f_756x343.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2><strong>Real world examples you can relate to</strong></h2><p>Here are three places where RAG is being used right now:</p><p><strong>Customer support bots- </strong>When you chat with a company&#8217;s support bot and it knows their exact return policy? That is RAG. The bot is not guessing, it is pulling the answer straight from the company&#8217;s internal documents.</p><p><strong>Medical research tools- </strong>Doctors using AI to search through thousands of research papers and get answers about specific treatments? RAG. The AI retrieves the relevant studies first, then summarises only what matters.</p><p><strong>Studying and personal notes- </strong>Tools like NotebookLM where you upload your notes and ask questions about them? That is RAG. You are giving the AI your own documents to reference before it answers.</p><h2><strong>Without RAG vs. With RAG</strong></h2><p>Here is a side-by-side so you can see exactly what the difference looks like:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!5WIg!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15273741-2f2e-433a-96a5-28d583f0d6f6_862x331.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!5WIg!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15273741-2f2e-433a-96a5-28d583f0d6f6_862x331.png 424w, https://substackcdn.com/image/fetch/$s_!5WIg!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15273741-2f2e-433a-96a5-28d583f0d6f6_862x331.png 848w, https://substackcdn.com/image/fetch/$s_!5WIg!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15273741-2f2e-433a-96a5-28d583f0d6f6_862x331.png 1272w, https://substackcdn.com/image/fetch/$s_!5WIg!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15273741-2f2e-433a-96a5-28d583f0d6f6_862x331.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!5WIg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15273741-2f2e-433a-96a5-28d583f0d6f6_862x331.png" width="862" height="331" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/15273741-2f2e-433a-96a5-28d583f0d6f6_862x331.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:331,&quot;width&quot;:862,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:52823,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aqsazafar81.substack.com/i/201442562?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15273741-2f2e-433a-96a5-28d583f0d6f6_862x331.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!5WIg!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15273741-2f2e-433a-96a5-28d583f0d6f6_862x331.png 424w, https://substackcdn.com/image/fetch/$s_!5WIg!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15273741-2f2e-433a-96a5-28d583f0d6f6_862x331.png 848w, https://substackcdn.com/image/fetch/$s_!5WIg!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15273741-2f2e-433a-96a5-28d583f0d6f6_862x331.png 1272w, https://substackcdn.com/image/fetch/$s_!5WIg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15273741-2f2e-433a-96a5-28d583f0d6f6_862x331.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2><strong>Why does this matter for you?</strong></h2><p>You might be thinking: &#8220;Okay Aqsa, this is interesting but how does this affect me?&#8221;</p><p>Here is the honest answer: RAG is what allows AI to become genuinely useful for your specific life, your specific work, your specific documents, not just general knowledge that anyone could Google.</p><p>Without RAG, AI is a very smart person who only read books up to a certain year. With RAG, that same person now has access to your personal library, your company&#8217;s files, your research, your notes, and can answer questions about all of that accurately.</p><div class="callout-block" data-callout="true"><p><em>&#8220;The gap between &#8216;AI that knows general stuff&#8217; and &#8216;AI that knows YOUR stuff&#8217;, that is the gap RAG closes.&#8221;</em></p></div><p>That is the difference between an AI tool you play around with once and one you actually rely on every single day.</p><h2><strong>Want to see this explained visually?</strong></h2><p>I made a full video breaking down RAG with animations and more depth. If reading is not your thing, go watch it below:</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://youtu.be/MBDiJAWx8xk?si=WoJB5Mba67hlVStB&quot;,&quot;text&quot;:&quot;Learn RAG in-depth on YouTube&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://youtu.be/MBDiJAWx8xk?si=WoJB5Mba67hlVStB"><span>Learn RAG in-depth on YouTube</span></a></p><h2><strong>Quick recap</strong></h2><p>RAG = Retrieval-Augmented Generation. Here is what you now know:</p><p><strong><mark data-color="#fce5cd" style="background-color: rgb(252, 229, 205); color: rgb(0, 0, 0);">&#8594; </mark></strong><mark data-color="#fce5cd" style="background-color: rgb(252, 229, 205); color: rgb(0, 0, 0);">AI has a knowledge cutoff. It stops knowing things after a certain date.</mark></p><p><strong><mark data-color="#fce5cd" style="background-color: rgb(252, 229, 205); color: rgb(0, 0, 0);">&#8594; </mark></strong><mark data-color="#fce5cd" style="background-color: rgb(252, 229, 205); color: rgb(0, 0, 0);">RAG solves this by letting AI search through documents before answering.</mark></p><p><strong><mark data-color="#fce5cd" style="background-color: rgb(252, 229, 205); color: rgb(0, 0, 0);">&#8594; </mark></strong><mark data-color="#fce5cd" style="background-color: rgb(252, 229, 205); color: rgb(0, 0, 0);">The result is answers that are grounded, accurate, and specific to YOUR information.</mark></p><p>That is it. You now understand RAG better than most people who work in tech.</p><p>Next time someone says &#8220;this chatbot uses RAG,&#8221; you will know exactly what they mean and why it matters. That is the whole point of everything I make. I want you to feel confident, not lost.</p><p>Happy Learning!</p><h3>Best RAG Tutorials &amp; Courses</h3><ol><li><p><strong><a href="https://imp.i384100.net/21x9yO">Introduction to Retrieval Augmented Generation (RAG)</a></strong> &#8211; Guided Project (2 hours, Intermediate)</p></li><li><p><strong><a href="https://coursera.pxf.io/2rBAEM">Generative Adversarial Networks (GANs) Specialization</a></strong> &#8211; Coursera (3 months, Intermediate)</p></li><li><p><strong><a href="https://click.linksynergy.com/deeplink?id=Vrr1tRSwXGM&amp;mid=53187&amp;murl=https%3A%2F%2Fwww.udacity.com%2Fcourse%2Flarge-language-models-and-text-generation--cd13318">Large Language Models (LLMs) &amp; Text Generation</a></strong> &#8211; Udacity (4 weeks, Intermediate)</p></li><li><p><strong><a href="https://click.linksynergy.com/deeplink?id=Vrr1tRSwXGM&amp;mid=53187&amp;murl=https%3A%2F%2Fwww.udacity.com%2Fcourse%2Fintro-to-building-generative-AI-solutions--cd13267">Building Generative AI Solutions</a></strong> &#8211; Udacity (4 weeks, Intermediate)</p></li><li><p><strong><a href="https://imp.i384100.net/vNRqEe">OpenAI GPTs: Creating Your Own Custom AI Assistants</a></strong> &#8211; Coursera (7 hours, Beginner)</p></li><li><p><strong><a href="https://trk.udemy.com/LKNmW3">Master Retrieval-Augmented Generation (RAG) Systems</a></strong> &#8211; Udemy (1.5 hours, Intermediate)</p></li><li><p><strong><a href="https://datacamp.pxf.io/eK2YEz">Large Language Models (LLMs) Concepts</a></strong> &#8211; DataCamp (2 hours, Intermediate)</p></li><li><p><strong><a href="https://imp.i384100.net/R5v3Lb">Operationalizing LLMs on Azure</a></strong> &#8211; Duke University (10 hours, Intermediate)</p></li></ol><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://aqsazafar81.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">This Substack is reader-supported. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Your RAG can't follow connections. Graph RAG can.]]></title><description><![CDATA[Why retrieving chunks of text isn't enough, and what a knowledge graph changes about everything.]]></description><link>https://aqsazafar81.substack.com/p/your-rag-cant-follow-connections</link><guid isPermaLink="false">https://aqsazafar81.substack.com/p/your-rag-cant-follow-connections</guid><dc:creator><![CDATA[Aqsa Zafar]]></dc:creator><pubDate>Fri, 05 Jun 2026 11:41:01 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!lSeF!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfc96617-4ecf-4666-84f7-979f3e2f7ed9_1197x1314.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!lSeF!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfc96617-4ecf-4666-84f7-979f3e2f7ed9_1197x1314.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!lSeF!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfc96617-4ecf-4666-84f7-979f3e2f7ed9_1197x1314.png 424w, https://substackcdn.com/image/fetch/$s_!lSeF!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfc96617-4ecf-4666-84f7-979f3e2f7ed9_1197x1314.png 848w, https://substackcdn.com/image/fetch/$s_!lSeF!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfc96617-4ecf-4666-84f7-979f3e2f7ed9_1197x1314.png 1272w, https://substackcdn.com/image/fetch/$s_!lSeF!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfc96617-4ecf-4666-84f7-979f3e2f7ed9_1197x1314.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!lSeF!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfc96617-4ecf-4666-84f7-979f3e2f7ed9_1197x1314.png" width="1197" height="1314" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/bfc96617-4ecf-4666-84f7-979f3e2f7ed9_1197x1314.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1314,&quot;width&quot;:1197,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1295641,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://aqsazafar81.substack.com/i/200748116?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfc96617-4ecf-4666-84f7-979f3e2f7ed9_1197x1314.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!lSeF!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfc96617-4ecf-4666-84f7-979f3e2f7ed9_1197x1314.png 424w, https://substackcdn.com/image/fetch/$s_!lSeF!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfc96617-4ecf-4666-84f7-979f3e2f7ed9_1197x1314.png 848w, https://substackcdn.com/image/fetch/$s_!lSeF!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfc96617-4ecf-4666-84f7-979f3e2f7ed9_1197x1314.png 1272w, https://substackcdn.com/image/fetch/$s_!lSeF!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfc96617-4ecf-4666-84f7-979f3e2f7ed9_1197x1314.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>Most RAG pipelines are doing a sophisticated version of ctrl+F. That&#8217;s not a criticism, it&#8217;s often exactly what you need. But there&#8217;s a class of questions it fundamentally cannot answer, and understanding why reveals something important about how AI systems retrieve knowledge.</em></p><p>Retrieval-Augmented Generation changed how large language models access information. Instead of relying solely on what they learned during training, RAG lets models pull in fresh, external knowledge at query time. You embed your documents, store those vectors in a database, and when a user asks something, you find the most semantically similar chunks and feed them into the prompt. The LLM gets context; the user gets a grounded, current answer.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://aqsazafar81.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">This Substack is reader-supported. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p>It works. Until it doesn&#8217;t.</p><h2><strong>The fundamental problem with similarity search</strong></h2><p>Imagine you&#8217;ve built a RAG system over a detailed company knowledge base, product documentation, internal wikis, engineering specs, customer records. A user asks: <em>&#8220;What decisions led to the current API rate limiting policy, and which teams were involved?&#8221;</em></p><p>Traditional RAG will find chunks that semantically match &#8220;API rate limiting policy.&#8221; It might return the policy document, a ticket that mentions rate limits, maybe a blog post. But each chunk arrives alone, stripped of the organisational context, the causal chain, the team relationships. The LLM has to infer the connections from fragments that weren&#8217;t retrieved because they weren&#8217;t similar enough to the query surface. It might get there. Or it might hallucinate the gaps.</p><blockquote><p><em>Traditional RAG asks: &#8220;what text sounds like this question?&#8221; Graph RAG asks: &#8220;what surrounds this concept, and how does it connect to everything else?&#8221;</em></p></blockquote><p>This is the retrieval gap. It&#8217;s not a failure of the embedding model or the vector database, it&#8217;s structural. Flat text chunks cannot carry relational information. They are, by design, isolated units of similarity.</p><h2><strong>What Graph RAG actually does differently</strong></h2><p>Graph RAG doesn&#8217;t replace the embedding + retrieval pipeline, it extends it with a knowledge graph layer. Here&#8217;s where the two approaches diverge from the very first step.</p><div class="callout-block" data-callout="true"><h3><strong>Traditional RAG: 7 steps</strong></h3></div><p><strong><mark data-color="#ff9900" style="background-color: rgb(255, 153, 0); color: rgb(0, 0, 0);">Traditional RAG pipeline</mark></strong></p><ol><li><p><strong>Documents &#8594; Embedding model.</strong> Your corpus is encoded into dense vectors.</p></li><li><p><strong>Index into vector database.</strong> Vectors are stored and indexed for fast lookup.</p></li><li><p><strong>Query is encoded.</strong> The user&#8217;s question becomes a vector too.</p></li><li><p><strong>Similarity search.</strong> Find the top-k vectors closest to the query vector.</p></li><li><p><strong>Retrieve similar documents.</strong> The matching chunks come back from the database.</p></li><li><p><strong>Prompt the LLM.</strong> Retrieved chunks + query are handed to the model.</p></li><li><p><strong>Final response.</strong> The LLM generates an answer grounded in retrieved context.</p></li></ol><div class="callout-block" data-callout="true"><h3><strong>Graph RAG: 10 steps</strong></h3></div><p><strong><mark data-color="#ff9900" style="background-color: rgb(255, 153, 0); color: rgb(0, 0, 0);">Graph RAG pipeline</mark></strong></p><ol><li><p><strong>Documents &#8594; LLM Graph Generator.</strong> An LLM reads the corpus and extracts entities (people, concepts, events) and the relationships between them.</p></li><li><p><strong>Entities and relationships stored as graph nodes and edges.</strong> Not flat text, structured facts with typed connections.</p></li><li><p><strong>Graph nodes encoded as embeddings.</strong> Each concept gets a vector home, giving dual access modes.</p></li><li><p><strong>Similarity search + graph traversal.</strong> At query time, the system finds entry points semantically, then fans out through connected nodes.</p></li><li><p><strong>Everything lands in a graph database.</strong> One structure, two retrieval modes, vector and graph.</p></li><li><p><strong>Query encoded and entity-linked.</strong> The question is vectorised and mapped to known graph nodes simultaneously.</p></li><li><p><strong>Relevant context retrieved via graph traversal.</strong> Entry points expand to neighbours, pulling in the web of related facts.</p></li><li><p><strong>Relevant context assembled.</strong> Nodes, edges, and surrounding text combine into a richer context package.</p></li><li><p><strong>Prompt the LLM.</strong> Context + nodes + relationships + query, a structurally-grounded prompt.</p></li><li><p><strong>Final response.</strong> Generated from connected knowledge, not just similar-sounding passages.</p></li></ol><p>The visual in the image above captures this cleanly. The traditional pipeline is a tight loop. The graph pipeline has a second phase that runs before retrieval even starts, graph construction, and a richer retrieval mechanism that operates on structure, not just statistics.</p><h2><strong>Where each approach genuinely wins</strong></h2><p><strong><mark data-color="#ff9900" style="background-color: rgb(255, 153, 0); color: rgb(0, 0, 0);">Traditional RAG</mark></strong></p><ul><li><p>Fast to set up, embed, index, go</p></li><li><p>Handles large unstructured corpora well</p></li><li><p>Efficient updates, no reindexing overhead</p></li><li><p>Low upfront infrastructure cost</p></li><li><p>Scales predictably with data volume</p></li><li><p>Ideal for self-contained queries</p></li></ul><p><strong><mark data-color="#ff9900" style="background-color: rgb(255, 153, 0); color: rgb(0, 0, 0);">Graph RAG</mark></strong></p><ul><li><p>Captures entities and how they relate</p></li><li><p>Multi-hop reasoning comes naturally</p></li><li><p>More explainable retrieval paths</p></li><li><p>Rich context, not just similar text</p></li><li><p>Performs well on relational domains</p></li><li><p>Dual retrieval: semantic + structural</p></li></ul><blockquote><p><strong>The real tradeoffs:</strong> Graph RAG demands significant upfront work to build and maintain the knowledge graph. When new data arrives, the graph may need reindexing, unlike vector RAG where you simply add new embeddings. Highly-connected generic entity types can also skew results if not filtered carefully. It's not a free upgrade; it's a different architectural bet.</p></blockquote><h2><strong>When should you actually reach for Graph RAG?</strong></h2><p>The honest answer: not always. The graph overhead is real, and for many use cases, well-tuned traditional RAG is the better choice. Here&#8217;s how to think about it.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!XmqE!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F067c6b0e-0bb4-462f-a175-81f485c60a21_823x534.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!XmqE!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F067c6b0e-0bb4-462f-a175-81f485c60a21_823x534.png 424w, https://substackcdn.com/image/fetch/$s_!XmqE!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F067c6b0e-0bb4-462f-a175-81f485c60a21_823x534.png 848w, https://substackcdn.com/image/fetch/$s_!XmqE!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F067c6b0e-0bb4-462f-a175-81f485c60a21_823x534.png 1272w, https://substackcdn.com/image/fetch/$s_!XmqE!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F067c6b0e-0bb4-462f-a175-81f485c60a21_823x534.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!XmqE!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F067c6b0e-0bb4-462f-a175-81f485c60a21_823x534.png" width="823" height="534" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/067c6b0e-0bb4-462f-a175-81f485c60a21_823x534.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:534,&quot;width&quot;:823,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:83504,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aqsazafar81.substack.com/i/200748116?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F067c6b0e-0bb4-462f-a175-81f485c60a21_823x534.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!XmqE!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F067c6b0e-0bb4-462f-a175-81f485c60a21_823x534.png 424w, https://substackcdn.com/image/fetch/$s_!XmqE!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F067c6b0e-0bb4-462f-a175-81f485c60a21_823x534.png 848w, https://substackcdn.com/image/fetch/$s_!XmqE!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F067c6b0e-0bb4-462f-a175-81f485c60a21_823x534.png 1272w, https://substackcdn.com/image/fetch/$s_!XmqE!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F067c6b0e-0bb4-462f-a175-81f485c60a21_823x534.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The practical signal: if your users are asking questions that require joining context across multiple documents, following dependencies, or reasoning through causal chains, you&#8217;re hitting the ceiling of what flat retrieval can do. That&#8217;s when the graph layer earns its cost.</p><h2><strong>The deeper shift this represents</strong></h2><p>What Graph RAG really points to is a change in how we think about AI knowledge retrieval. The traditional model is essentially information-theoretic: find text that is statistically close to the query. It&#8217;s powerful, well-understood, and scales cleanly.</p><p>Graph RAG is trying to do something more like reasoning: not &#8220;what text is similar?&#8221; but &#8220;how does this concept fit into the web of everything we know?&#8221; That&#8217;s a fundamentally different question, and it requires a fundamentally different data structure to answer it.</p><p>As the Memgraph team puts it well: retrieval alone is not enough when data is inherently interconnected. The future of AI knowledge systems likely involves both, vector retrieval for fast semantic access, graph traversal for structural reasoning, working together as complementary layers rather than alternatives.</p><p><em><strong>&#8220;RAG retrieves relevant chunks. Graph RAG retrieves relevant context. That gap, in the right domain, is everything.&#8221;</strong></em></p><p>If you&#8217;re building a production RAG system today, the question isn&#8217;t whether to use Graph RAG, it&#8217;s whether your data and your users&#8217; questions have the relational structure that makes the graph investment worthwhile. Start by auditing the questions your system gets wrong. If they cluster around multi-hop reasoning and entity relationships, you have your answer.</p><p><strong><mark data-color="#fce5cd" style="background-color: rgb(252, 229, 205); color: rgb(0, 0, 0);">Watch the full visual breakdown</mark></strong></p><p><strong>Graph RAG explained: step by step on YouTube&#128071;</strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://youtu.be/t9iB1rV3ROU?si=NjosSgGPeYpV2RbT&quot;,&quot;text&quot;:&quot;Watch Now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://youtu.be/t9iB1rV3ROU?si=NjosSgGPeYpV2RbT"><span>Watch Now</span></a></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://aqsazafar81.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">This Substack is reader-supported. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Backpropagation Explained (the way I wish someone had explained it to me) ]]></title><description><![CDATA[I spent way too long confused about this. Here's everything I know, explained simply.]]></description><link>https://aqsazafar81.substack.com/p/backpropagation-explained-the-way</link><guid isPermaLink="false">https://aqsazafar81.substack.com/p/backpropagation-explained-the-way</guid><dc:creator><![CDATA[Aqsa Zafar]]></dc:creator><pubDate>Wed, 20 May 2026 11:04:45 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!UnHc!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdeb56e87-dfd1-4b0c-b6c1-208750667070_1024x1536.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Okay so I know backpropagation sounds scary. Every time I heard this word early on, I thought, this must be some advanced witchcraft that only PhDs understand.</p><p>It&#8217;s not. Let me break it down the way I actually understand it.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!UnHc!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdeb56e87-dfd1-4b0c-b6c1-208750667070_1024x1536.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!UnHc!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdeb56e87-dfd1-4b0c-b6c1-208750667070_1024x1536.png 424w, https://substackcdn.com/image/fetch/$s_!UnHc!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdeb56e87-dfd1-4b0c-b6c1-208750667070_1024x1536.png 848w, https://substackcdn.com/image/fetch/$s_!UnHc!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdeb56e87-dfd1-4b0c-b6c1-208750667070_1024x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!UnHc!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdeb56e87-dfd1-4b0c-b6c1-208750667070_1024x1536.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!UnHc!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdeb56e87-dfd1-4b0c-b6c1-208750667070_1024x1536.png" width="1024" height="1536" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/deb56e87-dfd1-4b0c-b6c1-208750667070_1024x1536.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1536,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1423360,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://aqsazafar81.substack.com/i/198541863?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdeb56e87-dfd1-4b0c-b6c1-208750667070_1024x1536.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!UnHc!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdeb56e87-dfd1-4b0c-b6c1-208750667070_1024x1536.png 424w, https://substackcdn.com/image/fetch/$s_!UnHc!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdeb56e87-dfd1-4b0c-b6c1-208750667070_1024x1536.png 848w, https://substackcdn.com/image/fetch/$s_!UnHc!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdeb56e87-dfd1-4b0c-b6c1-208750667070_1024x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!UnHc!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdeb56e87-dfd1-4b0c-b6c1-208750667070_1024x1536.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aqsazafar81.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://aqsazafar81.substack.com/subscribe?"><span>Subscribe now</span></a></p><p></p><p><strong>First, what even is the problem?</strong></p><p>Your neural network makes a prediction. That prediction is wrong. Now what?</p><p>The network has hundreds, sometimes millions, of weights. How does it know <em>which ones caused the problem</em> and by exactly how much? If you just randomly adjusted weights hoping things get better, you&#8217;d be there forever.</p><p>That&#8217;s the problem backpropagation solves. It gives every single weight a precise number, its gradient, that says &#8220;here&#8217;s how much you contributed to the error, and in which direction you need to move to fix it.&#8221;</p><p>Without this, neural networks couldn&#8217;t learn. Full stop.</p><p><strong>Before backprop runs, there&#8217;s a forward pass</strong></p><p>Every time your network sees a training example, it does a forward pass first.</p><p>Input goes in &#8594; flows through hidden layers &#8594; activation functions fire &#8594; output comes out.</p><p>You then compare that output &#375; with the real answer y using a <strong>loss function</strong>. The most common one for regression is Mean Squared Error:</p><p>L = (1/m) &#931; (&#375; &#8722; y)&#178;</p><p>This single number, the loss, tells you how wrong the network is overall. But it doesn&#8217;t tell you <em>why</em> it&#8217;s wrong or what to fix. That&#8217;s backprop&#8217;s job.</p><p><strong>Now the backward pass, this is where the learning actually happens</strong></p><p>Backpropagation works by going backwards through the network, layer by layer, using the <strong>chain rule</strong> from calculus.</p><p>The chain rule basically says: if one thing depends on another, which depends on another, you can find the total effect by multiplying the individual effects together.</p><p>In a neural network, the loss depends on the output, which depends on the weights in the last layer, which depend on the layer before that, and so on. Backprop chains all of this together systematically.</p><p><strong>Step 1 &#8212; Gradient at the output layer:</strong></p><p>&#948;(L) = &#8706;L/&#8706;a(L) &#8857; f&#8242;(z(L))</p><p>For MSE with sigmoid specifically:</p><p>&#948;(L) = (a(L) &#8722; y) &#8857; f&#8242;(z(L))</p><p>The &#8857; symbol means element-wise multiplication. f&#8242; is the derivative of your activation function.</p><p><strong>Step 2 &#8212; Gradient at any hidden layer l:</strong></p><p>&#948;(l) = (W(l+1))&#7488; &#948;(l+1) &#8857; f&#8242;(z(l))</p><p>You&#8217;re taking the error signal from the layer in front, passing it back through the transposed weights, and multiplying by the local derivative. This is how error flows backward.</p><p><strong>Step 3 &#8212; Compute weight and bias gradients:</strong></p><p>&#8706;L/&#8706;W(l) = &#948;(l) (a(l&#8722;1))&#7488;</p><p>&#8706;L/&#8706;b(l) = &#931; &#948;(l)</p><p>These are the actual gradients you use to update your weights. The sum for biases is over all training examples in the batch.</p><p><strong>Why sigmoid? What&#8217;s its derivative?</strong></p><p>Sigmoid is one of the most commonly used activation functions, especially when you&#8217;re learning the basics:</p><p>sigmoid(x) = 1 / (1 + e&#8315;&#739;)</p><p>Its derivative has a really clean form:</p><p>sigmoid&#8242;(x) = sigmoid(x) &#215; (1 &#8722; sigmoid(x))</p><p>This is why sigmoid is popular for teaching, the math stays clean. In practice though, ReLU and its variants are used more often in deep networks because sigmoid can cause vanishing gradients in very deep architectures. But that&#8217;s a topic for another post.</p><p><strong>Let&#8217;s see this in actual Python: a 2-2-1 network from scratch</strong></p><p>No PyTorch, no TensorFlow. Pure NumPy so you can see every single operation:</p><pre><code><code>import numpy as np

def sigmoid(x):
    return 1 / (1 + np.exp(-x))

def sigmoid_derivative(x):
    s = sigmoid(x)
    return s * (1 - s)

# Input and target
x = np.array([[0.5, 0.1]])
y_true = np.array([[1.0]])

# Initialize weights and biases
np.random.seed(42)
w1 = np.random.randn(2, 2)
b1 = np.zeros((1, 2))
w2 = np.random.randn(2, 1)
b2 = np.zeros((1, 1))

# Forward pass
z1 = np.dot(x, w1) + b1
a1 = sigmoid(z1)
z2 = np.dot(a1, w2) + b2
a2 = sigmoid(z2)

# Loss (MSE)
loss = np.mean((a2 - y_true) ** 2)

# Backward pass
m = y_true.shape[0]

dz2 = (2/m) * (a2 - y_true) * sigmoid_derivative(z2)
dW2 = np.dot(a1.T, dz2)
db2 = np.sum(dz2, axis=0, keepdims=True)

dz1 = np.dot(dz2, w2.T) * sigmoid_derivative(z1)
dW1 = np.dot(x.T, dz1)
db1 = np.sum(dz1, axis=0, keepdims=True)

print(f"Loss: {loss:.4f}")
print(f"dW2: {dW2}")
print(f"dW1: {dW1}")</code></code></pre><p>Output:</p><pre><code><code>Loss: 0.0971
dW2: [[-0.00141853]
      [-0.00312015]]
dW1: [[ 1.44911558e-03 -6.26849107e-04]
      [ 3.19130741e-03 -1.38085749e-03]]</code></code></pre><p>Each value in dW1 and dW2 is the gradient for that weight. A positive gradient means the weight should decrease to reduce loss. Negative means it should increase. Gradient descent then takes these and updates the weights:</p><p>W = W &#8722; learning_rate &#215; dW</p><p>Do this thousands of times across your training data and your network actually learns.</p><p><strong>The thing most beginners miss about backprop</strong></p><p>People often think backprop is complicated because of the math notation. But conceptually, there are only three questions it&#8217;s answering:</p><ol><li><p>How wrong are we? (the loss)</p></li><li><p>Who is responsible and by how much? (the gradients)</p></li><li><p>In which direction should each weight move to do better? (the sign of the gradient)</p></li></ol><p>Everything else, the deltas, the transposes, the chain rule, is just the machinery to answer those three questions precisely.</p><p><strong>What comes after you understand this?</strong></p><p>Once backprop clicks, a lot of other things start making sense too, why vanishing gradients are a problem in deep networks, why weight initialization matters, why batch normalization helps training, and how optimizers like Adam improve on basic gradient descent.</p><p>Backprop is honestly the foundation. Get this right and you&#8217;ll read any deep learning paper with a much stronger intuition.</p><p>If you want to go deeper and actually build serious deep learning skills, I put together a list of the best advanced deep learning courses I&#8217;ve personally gone through and recommend:</p><p>&#128073;<a href="https://www.mltut.com/best-advanced-deep-learning-courses/"> </a><strong><a href="https://www.mltut.com/best-advanced-deep-learning-courses/">8 Best Advanced Deep Learning Courses</a></strong></p><div class="captioned-button-wrap" data-attrs="{&quot;url&quot;:&quot;https://aqsazafar81.substack.com/p/backpropagation-explained-the-way?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="CaptionedButtonToDOM"><div class="preamble"><p class="cta-caption">Thanks for reading! This post is public so feel free to share it.</p></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aqsazafar81.substack.com/p/backpropagation-explained-the-way?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://aqsazafar81.substack.com/p/backpropagation-explained-the-way?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p></div>]]></content:encoded></item><item><title><![CDATA[AI, Data Science & Machine Learning in 2026]]></title><description><![CDATA[A Practical Beginner-to-Job Roadmap]]></description><link>https://aqsazafar81.substack.com/p/ai-data-science-and-machine-learning</link><guid isPermaLink="false">https://aqsazafar81.substack.com/p/ai-data-science-and-machine-learning</guid><dc:creator><![CDATA[Aqsa Zafar]]></dc:creator><pubDate>Sat, 14 Mar 2026 13:30:09 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!F0TX!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4b93a6b7-9c0b-4508-a20d-03e40066b882_1024x1024.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Hi, I&#8217;m Aqsa.</p><p>When I started learning machine learning, I made one mistake.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://aqsazafar81.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p>I learned randomly.</p><p>One week statistics.<br>Next week, deep learning.<br>Then some random Kaggle notebooks.</p><p>It took me some time to realize something simple:</p><p><em><strong>You don&#8217;t need more courses. You need structure.</strong></em></p><p>If you&#8217;re starting today, this guide will give you that structure.</p><p>In this roadmap, you&#8217;ll understand:</p><ul><li><p>What to learn</p></li><li><p>Why you&#8217;re learning it</p></li><li><p>The right order to learn things</p></li><li><p>Which resources are actually useful</p></li><li><p>How to move from beginner to job-ready</p></li></ul><p>This is not an overwhelming list of courses.</p><p>It&#8217;s a <strong>clear and practical path.</strong></p><h1>Step 1: Build Your Foundation (Month 1&#8211;2)</h1><p>Before machine learning, you need three basics:</p><p>&#8594; <strong>Python</strong><br>&#8594; <strong>Math fundamentals</strong><br>&#8594; <strong>Data handling</strong></p><p>Let&#8217;s break this down.</p><h2>1. Learn Python the Right Way</h2><p>You don&#8217;t need to master all of Python.</p><p>Focus on:</p><ul><li><p>Variables and data types</p></li><li><p>Lists, dictionaries, sets</p></li><li><p>Loops and functions</p></li><li><p>File handling</p></li><li><p>Basic OOP</p></li></ul><p>Then move to the libraries used in data science:</p><ul><li><p>NumPy</p></li><li><p>Pandas</p></li><li><p>Matplotlib</p></li></ul><p>The most important rule:</p><p><em><strong>Type everything. Don&#8217;t just watch tutorials</strong></em><strong>.</strong></p><p>Build small scripts and experiments.</p><p>If you want structured learning, the <strong><a href="https://coursera.pxf.io/4eB7qG">Google Crash Course on Python</a></strong> is a good starting point.</p><p>I also created a beginner-friendly <strong><a href="https://youtube.com/playlist?list=PL-F5kYFVRcIuzH3W5Kqm4eqUp9IJLLhp4&amp;si=u1C7RzwQ7sqsuYm8">Python course on my YouTube channel</a></strong> where I walk through these concepts step by step.</p><h2>2. Learn Only the Math You Actually Need</h2><p>Many beginners panic when they hear &#8220;math&#8221;.</p><p>The truth is simpler.</p><p>You do <strong>not</strong> need advanced proofs.</p><p>Focus on:</p><ul><li><p>Linear Algebra (vectors, matrices, dot product)</p></li><li><p>Probability basics</p></li><li><p>Mean, variance, standard deviation</p></li><li><p>Gradient intuition</p></li><li><p>Basic derivatives</p></li></ul><p>Your goal is <strong>intuition</strong>, not theoretical perfection.</p><p>Some useful learning resources include:</p><ul><li><p><a href="https://click.linksynergy.com/deeplink?id=Vrr1tRSwXGM&amp;mid=53187&amp;murl=https%3A%2F%2Fwww.udacity.com%2Fcourse%2Fintro-to-statistics--st101">Intro to Statistics</a> &#8212; Udacity</p></li><li><p><a href="https://coursera.pxf.io/GjYYQm">Basic Statistics</a> &#8212; Online course</p></li><li><p><a href="https://www.khanacademy.org/math/statistics-probability">Statistics and Probability</a> &#8212; Khan Academy</p></li><li><p><a href="https://coursera.pxf.io/9WB0K0">Mathematics for Machine Learning (Linear Algebra)</a> &#8212; Coursera</p></li></ul><p>Choose courses that <strong>connect math to real ML models</strong>, not abstract theory.</p><h2>3. Understand Data First (Very Important)</h2><p>Before building models, understand <strong>data</strong>.</p><p>Learn:</p><ul><li><p>What is a dataset?</p></li><li><p>What is a feature?</p></li><li><p>What is a target?</p></li><li><p>Structured vs unstructured data</p></li><li><p>Missing values</p></li><li><p>Outliers</p></li></ul><p>Practice with real datasets:</p><ul><li><p>Load CSV files</p></li><li><p>Clean data</p></li><li><p>Handle missing values</p></li><li><p>Perform basic EDA</p></li></ul><p>This step alone separates <strong>serious learners from casual learners.</strong></p><h1>Step 2: Core Machine Learning (Month 3&#8211;4)</h1><p>Once your foundation is ready, start with <strong>supervised learning</strong>.</p><h2>1. Regression</h2><p>Learn:</p><ul><li><p>Linear Regression</p></li><li><p>Multiple Regression</p></li><li><p>Regularization (Ridge, Lasso)</p></li></ul><p>Understand concepts like:</p><ul><li><p>Cost functions</p></li><li><p>Overfitting</p></li><li><p>Train/test split</p></li></ul><h2>2. Classification</h2><p>Then move to classification algorithms:</p><ul><li><p>Logistic Regression</p></li><li><p>KNN</p></li><li><p>Decision Trees</p></li><li><p>Random Forest</p></li><li><p>SVM</p></li></ul><p>Learn evaluation metrics:</p><ul><li><p>Accuracy</p></li><li><p>Precision</p></li><li><p>Recall</p></li><li><p>F1 Score</p></li><li><p>Confusion Matrix</p></li></ul><p>Practice with small projects like:</p><ul><li><p>House price prediction</p></li><li><p>Spam detection</p></li><li><p>Customer churn prediction</p></li></ul><p>If you prefer structured learning, the <strong><a href="https://imp.i384100.net/9W1W9E">Machine Learning Specialization from DeepLearning.AI and Stanford</a></strong> is a solid option.</p><p>It includes real assignments and practical model building.</p><h1>Step 3: Build Projects (Month 5)</h1><p>This is where many learners fail.</p><p>They watch tutorials but <strong>never build anything</strong>.</p><p>Your goal should be:</p><ul><li><p>At least <strong>3 end-to-end projects</strong></p></li><li><p>A clean <strong>GitHub profile</strong></p></li><li><p>Clear <strong>README explanations</strong></p></li></ul><p>Good project ideas:</p><ul><li><p>End-to-end ML pipeline</p></li><li><p>Data analysis with storytelling</p></li><li><p>Deploying a machine learning model</p></li></ul><p>Programs like <strong><a href="https://click.linksynergy.com/deeplink?id=Vrr1tRSwXGM&amp;mid=53187&amp;murl=https%3A%2F%2Fwww.udacity.com%2Fcourse%2Faws-machine-learning-engineer-nanodegree--nd189">Udacity Nanodegrees</a></strong> can be helpful because they force you to build real projects.</p><h1>Step 4: Deep Learning &amp; Generative AI (Month 6&#8211;7)</h1><p>Now you can move into deeper topics.</p><p>Start with:</p><ul><li><p>Neural networks</p></li><li><p>Activation functions</p></li><li><p>Backpropagation</p></li><li><p>CNN basics</p></li><li><p>RNN basics</p></li><li><p>Transformers overview</p></li></ul><p>Then explore modern AI topics:</p><ul><li><p>Large Language Models</p></li><li><p>Prompt design</p></li><li><p>Fine-tuning basics</p></li><li><p>Vector databases</p></li></ul><p>One common mistake beginners make is <strong>jumping into ChatGPT or LLM tools too early</strong>.</p><p>Without fundamentals, this creates knowledge gaps.</p><p>The <strong><a href="https://imp.i384100.net/3ej3BM">Deep Learning Specialization from DeepLearning.AI</a></strong> is one structured path to learn neural networks with real coding exercises.</p><h1>Step 5: MLOps &amp; Deployment (Month 8)</h1><p>This is where industry demand is growing quickly.</p><p>Companies need people who can <strong>deploy models</strong>, not just train them.</p><p>Learn:</p><ul><li><p>Model serialization</p></li><li><p>APIs (FastAPI or Flask)</p></li><li><p>Docker basics</p></li><li><p>Cloud basics (AWS, GCP, or Azure)</p></li><li><p>CI/CD for ML</p></li></ul><p>You don&#8217;t need to master everything.</p><p>Even <strong>basic deployment knowledge</strong> gives you a strong advantage.</p><p>Some useful resources include:</p><ul><li><p><a href="https://imp.i384100.net/3P5vWk">MLOps Fundamentals</a> &#8212; Coursera</p></li><li><p><a href="https://click.linksynergy.com/deeplink?id=Vrr1tRSwXGM&amp;mid=47900&amp;murl=https%3A%2F%2Fwww.udemy.com%2Fcourse%2Fmlops-course%2F">MLOps Fundamentals</a> &#8212; Udemy</p></li><li><p><a href="https://imp.i384100.net/KeRMmy">Open Source Platforms for MLOps</a> &#8212; Coursera</p></li><li><p><a href="https://trk.udemy.com/jeLBb5">Complete MLOps Bootcamp</a> &#8212; Udemy</p></li></ul><h1>Career Paths You Can Choose</h1><p>After a few months of learning and projects, choose a direction.</p><p>Here are common roles.</p><h2>1. Data Analyst</h2><p>Focus on:</p><ul><li><p>SQL</p></li><li><p>Data visualization</p></li><li><p>Dashboards</p></li><li><p>Business metrics</p></li></ul><p>Python helps automate tasks.</p><h2>2. Data Scientist</h2><p>Focus on:</p><ul><li><p>Machine learning models</p></li><li><p>Experimentation</p></li><li><p>Statistical thinking</p></li><li><p>Feature engineering</p></li></ul><h2>3. Machine Learning Engineer</h2><p>Focus on:</p><ul><li><p>Model deployment</p></li><li><p>ML pipelines</p></li><li><p>Performance optimization</p></li><li><p>Scalability</p></li></ul><h2>4. AI Engineer (Generative AI)</h2><p>Focus on:</p><ul><li><p>LLM workflows</p></li><li><p>Prompt engineering</p></li><li><p>RAG pipelines</p></li><li><p>Model integration</p></li></ul><p>Choose <strong>one direction after building fundamentals</strong>.</p><h1>Tools You Should Know</h1><p>Here is a practical stack for beginners:</p><ul><li><p>Python</p></li><li><p>Pandas</p></li><li><p>NumPy</p></li><li><p>Scikit-learn</p></li><li><p>Matplotlib / Seaborn</p></li><li><p>TensorFlow or PyTorch</p></li><li><p>Git</p></li><li><p>Basic SQL</p></li><li><p>One cloud platform</p></li></ul><p>That&#8217;s enough.</p><p>You don&#8217;t need <strong>50 tools</strong>.</p><h1>How to Choose Courses Wisely</h1><p>When evaluating courses, ask:</p><ul><li><p>Does it include projects?</p></li><li><p>Are assignments practical?</p></li><li><p>Does it teach deployment?</p></li><li><p>Does it teach problem solving?</p></li></ul><p>Avoid courses that only have:</p><ul><li><p>slides</p></li><li><p>theory</p></li><li><p>quizzes without coding</p></li></ul><p>If a course saves you <strong>months of confusion</strong>, it&#8217;s worth it.</p><h1>A Sustainable Weekly Study Plan</h1><p>If you are working or studying:</p><ul><li><p><strong>1&#8211;2 hours daily</strong></p></li><li><p><strong>4&#8211;6 hours on weekends</strong></p></li></ul><p>Divide your time like this:</p><ul><li><p>40% learning</p></li><li><p>40% coding</p></li><li><p>20% revision</p></li></ul><p><em>Consistency beats intensity.</em></p><h1>Common Mistakes Beginners Make</h1><p>Here are mistakes I see frequently:</p><ul><li><p>Jumping into deep learning too early</p></li><li><p>Ignoring math completely</p></li><li><p>Watching too many tutorials</p></li><li><p>Not building projects</p></li><li><p>Not documenting work</p></li></ul><p>Avoid these and you&#8217;re already ahead of most learners.</p><h1>Final Advice</h1><p>AI and data science are <strong>not about collecting certificates</strong>.</p><p>They are about <strong>solving problems</strong>.</p><p>If you follow this roadmap:</p><ul><li><p>Build foundations</p></li><li><p>Learn core machine learning</p></li><li><p>Work on real projects</p></li><li><p>Explore advanced topics</p></li><li><p>Understand deployment</p></li></ul><p>You won&#8217;t feel lost.</p><p>You&#8217;ll feel <strong>in control of your learning</strong>.</p><p>If you&#8217;re starting today, start with Python. Open your editor. Write your first script.</p><p><em><strong>Momentum matters more than perfection.</strong></em></p><p>Happy learning.</p><p>&#8212; Aqsa</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://aqsazafar81.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item></channel></rss>