<?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:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Abiraami Shree on Medium]]></title>
        <description><![CDATA[Stories by Abiraami Shree on Medium]]></description>
        <link>https://medium.com/@abi.shree279?source=rss-a18cff8e8746------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*G_Ctdd0wqZPaNmb5VjpZyw.jpeg</url>
            <title>Stories by Abiraami Shree on Medium</title>
            <link>https://medium.com/@abi.shree279?source=rss-a18cff8e8746------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 00:36:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abi.shree279/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[RAG Under the Hood: Vectors and Cosine Similarity]]></title>
            <link>https://medium.com/@abi.shree279/rag-under-the-hood-vectors-and-cosine-similarity-f4c8af0b2a59?source=rss-a18cff8e8746------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4c8af0b2a59</guid>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[vector-database]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[embedding]]></category>
            <dc:creator><![CDATA[Abiraami Shree]]></dc:creator>
            <pubDate>Fri, 13 Feb 2026 06:51:21 GMT</pubDate>
            <atom:updated>2026-02-17T09:42:59.287Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*TqDQfP8uSK4qZIKd2csLJg.png" /></figure><h3>How similarity search work in RAG?</h3><p>The RAG Pipeline is as follows:</p><ol><li>We ingest/upload documents</li><li>The document is chunked into smaller parts ,which is then embedded</li><li>The embeddings are stored in Vector DB</li><li>Now when user enters a query : query -&gt; embedding</li><li>Then the query embedding is computed with other vector in Db to find closest vector</li></ol><p>And now we can see in detail about how the 5th step works,which will help us to improve our RAG performance by 40%</p><p>The principle behind the similarity search are:</p><ul><li>Cosine Similarity,Euclidean distance more commonly.</li><li>We can understand its working by knowing the linear algebra behind it.</li></ul><h4>1.What is a vector?</h4><ul><li>Ordered list of numbers which lives in n-dimensional real space.</li><li>It denotes the<strong> direction and magnitude(length)</strong> of the points in the list</li></ul><p><em>Example:</em></p><p><em>2D:[2,3]</em></p><p><em>3D:[4,5,6]</em></p><p>IN RAG:</p><ul><li>Vector are called as <strong>Embedding</strong> which are formed by converting <strong>text-to-numbers</strong></li><li>In real world problems vectors are higher in dimension Eg:<em>1024</em> <em>dimension vector</em> is produced if we use <em>BGE-large encoder</em> for encoding</li></ul><h4><strong>2.How vectors are stored</strong></h4><p>These high dimension vector are plotted in a high dimensional vector space which is called vector Db is RAG .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/168/1*KImCRk7mwMW3MGqUWuroww.png" /><figcaption>Represenation of embedding plotted in Vector DB</figcaption></figure><p><em>Eg:Pinecone,Chroma DB</em></p><p>These vector DB uses <strong>linear algebra</strong> underhood to compute<strong> cosine similarity</strong> .</p><h4>3.What is cosine similarity?</h4><p>Cosine similarity computes cosine of the angle between embeddings.</p><p>The embedding which has lowest angle with the query embedding is considered as similar document(result of the given query)</p><p><strong>Now lets see how to find this cosine similarity value:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/156/1*1Mb1yoVRLNow5GsG953eaA.png" /><figcaption>Finding the value of cos gives the cosine of the angle between two embedding vectors</figcaption></figure><p>To find the angle ,we convert the above equation as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/128/1*hRauMGfBPUx6tdfivRqdaw.png" /><figcaption><strong>a.b </strong>is called as dot product,<strong>||a||||b||</strong> is called Multiplying the magnitudes</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/273/1*G6Qphti7YCP8KFmaxhza_A.png" /></figure><blockquote><em>Example:<br>a = [1,2 ]<br>b = [3,4]</em></blockquote><p><em>a.b = [1 X 3 + 2 X 4] =11</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*gbJ8vOCymcZVtGVBNqrWoQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*Z3xqPP9ff6j56SDCX5wjig.png" /></figure><blockquote>Example:<br>a = [1,2 ] = <strong><em>||a|| </em></strong>= sqrt(1² + 2²) =<strong> <em>sqrt(5)</em></strong><br>b = [3,4] = <strong><em>||b||</em></strong> = sqrt(3² + 4²) = <strong><em>sqrt(25) </em></strong>= 5</blockquote><blockquote>||a||||b|| = sqrt(5) x sqrt(25) = sqrt(125)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*frlJpuDWbdJREXYDrHZW9Q.png" /></figure><p>As 0.984 is close to 1,So The vector a[1,2 ] and b[3,4] are close to each other and more similar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/191/1*2-Ih8wl9qnxqCaMK3GjOPg.png" /></figure><ul><li>If the value of cos(θ) is negative then both are in opposite direction in the vector space(useless if retrived)</li></ul><p>Practical takeaway:</p><ul><li>Cosine similarity mainly compares the <strong>direction</strong> of vectors, not their length.<br>Two embeddings can have very different magnitudes but still represent similar meaning if they point in the same direction in vector space.</li><li><strong>Important:</strong><br>- Sometimes large vectors can unfairly give bigger scores.<br> So we scale every vector to have length 1 by dividing it by its magnitude.eg: magnitude of <em>a = a/ ||a||</em><br>- Now when we compute the dot product, the result tells us only whether the vectors point in the same direction ,not how big they are.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4c8af0b2a59" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Before You Build RAG Systems, Master These Foundations]]></title>
            <link>https://medium.com/@abi.shree279/before-you-build-rag-systems-master-these-foundations-c706f52fbee7?source=rss-a18cff8e8746------2</link>
            <guid isPermaLink="false">https://medium.com/p/c706f52fbee7</guid>
            <category><![CDATA[production-ml]]></category>
            <category><![CDATA[rag-for-beginner]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[Abiraami Shree]]></dc:creator>
            <pubDate>Thu, 12 Feb 2026 12:34:30 GMT</pubDate>
            <atom:updated>2026-02-12T12:34:30.172Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H2YWWcN-61bpzfgOUYCaAA.png" /></figure><p>The Weekend Demo RAG you do is a Lie:</p><blockquote>Upload doc → Embed → Query → Done.</blockquote><p>This system works, but when the system starts returning the wrong passages, ranking irrelevant material higher than obvious answers, or hallucinating despite “having the data,” the illusion breaks.</p><h3>Truth: RAG = Having better architecture with understanding, not copy-paste. Nail these foundations first:</h3><h4>1. Linear Algebra &amp; Similarity</h4><p>Vectors, cosine similarity, dot product, normalization.</p><h4>2. Probability for ranking</h4><p>Bayes intuition, likelihood, priors.</p><h4>3. NLP basics</h4><p>Tokenization, embeddings, transformers.</p><h4>4. Python stack</h4><p>NumPy, PyTorch, APIs, async.</p><p>If something is weak, stop and fix it.<br>Otherwise, you’re just copying the pattern without really doing solid engineering!!!</p><h3>Why each of this is needed?</h3><h4>1. Linear Algebra &amp; Similarity</h4><p>The Engine :Text → points in space. Similarity = distance.<br><em>Without it:</em> Junk retrieval (90% of failures).<br><em>Real world:</em> Pinecone/Weaviate has giant math engines under hood.</p><h4>2. Probability for Ranking</h4><p>The Judge:“How relevant is the retrived document is?” Top scores win.<br><em>Without it:</em> Noise buries answers.<br><em>Real world:</em> Cohere Rerank, LangChain rerankers.</p><h4>3. NLP Basics</h4><p>The Cleaner :Raw text → machine food (tokenize, normalize).<br><em>Without it:</em> Embeddings choke (70% of flops).<br><em>Real world:</em> spaCy, HuggingFace preprocessors.</p><h4>4. Python Stack</h4><p>The Builder :NumPy (vectors), PyTorch (models), FastAPI (serve), async (scale).<br><em>Without it:</em> Weekend toy, not production.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c706f52fbee7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop the Confusion: Unmasking the Difference Between Git and GitHub]]></title>
            <link>https://medium.com/@abi.shree279/stop-the-confusion-unmasking-the-difference-between-git-and-github-479e9d2f0a20?source=rss-a18cff8e8746------2</link>
            <guid isPermaLink="false">https://medium.com/p/479e9d2f0a20</guid>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[programming-for-beginners]]></category>
            <category><![CDATA[git-vs-github]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[project-management]]></category>
            <dc:creator><![CDATA[Abiraami Shree]]></dc:creator>
            <pubDate>Sun, 14 Dec 2025 19:09:58 GMT</pubDate>
            <atom:updated>2026-01-31T13:46:20.456Z</atom:updated>
            <content:encoded><![CDATA[<p>For anyone diving into the world of software development, the terms <strong>Git</strong> and <strong>GitHub</strong> are inescapable. They are often used interchangeably, leading to massive confusion. Are they the same thing? Do you need one to use the other?</p><h3>Git vs. GitHub:</h3><p>If you’ve ever started learning coding, you’ve probably heard people throw around these terms as if they’re the same thing. Spoiler alert: they’re not! While both are crucial tools in modern software development, they serve different purposes.Think of <em>Git like writing a document on your laptop and saving different versions as you edit. GitHub is when you upload that document to Google Docs, allowing others to view, edit, and track changes online.</em></p><h3>What Is Git?</h3><p>Git didn’t evolve alongside GitHub,it existed long before! Git was created in 2005 by Linus Torvalds, the same person behind Linux, to help developers track changes in their code locally. It’s a distributed version control system that allows you to manage multiple versions of a project without needing to copy files manually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ae0KHrB400DBZ6cFkoItGg.png" /></figure><p>To put it simply, Git keeps a record of every change you make in your project ,so you can revisit, compare, or even restore older versions anytime. It uses concepts like repositories, commits, branches, and merges to make version tracking smooth and flexible.</p><ul><li>You have to install Git manually on your computer and initialize in your project folder.</li><li>It works entirely offline — no internet required.</li><li>It’s all about efficient version management, not online collaboration.</li></ul><p>Git does <strong>content-addressable storage</strong>.</p><ul><li>It does <strong>not</strong> care about filenames first</li><li>It cares about <strong>file content</strong></li><li>Same content → same hash → stored once</li></ul><p>Git works by converting file contents and project metadata into hashed “objects”. It compares these hashes to detect changes and stores the data indexed by those hash codes, which act as unique IDs inside the repository.</p><blockquote><em>Think of Git as your personal coding journal — every change is saved locally, in your own space.</em></blockquote><h3>What Is GitHub?</h3><p>Now, if Git is your personal notebook, GitHub is like putting that notebook online for the world (or your team) to view and collaborate on. GitHub is a cloud-based platform that hosts your Git repositories and adds powerful collaboration features on top of Git.</p><p>It lets you:</p><ul><li>Work with other developers through pull requests</li><li>Track bugs or ideas through issues</li><li>Create and manage branches remotely</li><li>Store your repositories online and securely</li></ul><p>GitHub doesn’t replace Git — it extends Git by bringing your local projects into a connected, social, and team-friendly environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fvJL8UxY9dnEdIKPwRGrRQ.png" /></figure><p><strong>Here’s a quick analogy that ties everything together:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*18LUsXxMF7BH85pEGxzKRQ.png" /><figcaption>Difference Between Git and Github</figcaption></figure><p>So, Git is the technology, and GitHub is a service built on top of it. Without Git, GitHub couldn’t exist but Git can easily live on its own.</p><p>So,If you’re starting your coding journey, install Git first and learn the basics of how to initialize a repository, make commits, and create branches. Once you’re comfortable working locally, GitHub will be your next natural step to collaborate and showcase your projects to the world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=479e9d2f0a20" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data, Information, Knowledge: Untangled]]></title>
            <link>https://medium.com/@abi.shree279/data-information-knowledge-untangled-c3f4d4ac8e57?source=rss-a18cff8e8746------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3f4d4ac8e57</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ai-fundamentals]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <dc:creator><![CDATA[Abiraami Shree]]></dc:creator>
            <pubDate>Wed, 10 Dec 2025 07:27:46 GMT</pubDate>
            <atom:updated>2025-12-10T07:27:46.694Z</atom:updated>
            <content:encoded><![CDATA[<p>Before we talk about AI, intelligence, or machine learning, we must answer one simple question:</p><p><strong>How does a machine know <em>anything</em>?</strong></p><p>Humans learn through senses, emotions, experiences, memory…<br> Machines have none of these.</p><p>The only way a machine can “understand” the world is through three building blocks:</p><figure><img alt="The transition of data -&gt; information -&gt; knowledge" src="https://cdn-images-1.medium.com/max/1024/1*g3JUIUy1bAIbSd6CJiggAg.png" /></figure><p>These are not just definitions from textbooks — they are the <em>spine</em> of every AI system ever built.</p><p>This chapter breaks them down clearly, shows why they matter,<br> and connects everything smoothly to real-world AI.</p><p>Let’s start from the very beginning.</p><h3>1. What Is Data?</h3><blockquote>Data is a <strong>collection of raw facts or values that has no meaning on its own.</strong><br> It is simply <em>there</em>, without context or interpretation.</blockquote><p>For example, if you see the number <strong>“90”</strong> written on a paper, you have no idea what it means:</p><ul><li>Is it <strong><em>90 marks</em></strong><em>?</em></li><li><strong><em>90 kg</em></strong><em>?</em></li><li><strong><em>90 minutes</em></strong><em>?</em></li><li><strong><em>90%</em></strong><em>?</em></li></ul><p>Without context, <strong>it is just raw data,meaningless by itself.</strong></p><p>That’s why we say: <em>Data is like having puzzle pieces, but no picture.</em></p><p>The pieces exist, but nothing useful appears until we arrange, process, and understand them.</p><h4>Common Forms of Data</h4><p>Data can appear in many formats, such as:</p><ul><li>Numbers → 30, 890, -5</li><li>Text → &quot;AI&quot;, &quot;India&quot;, &quot;Tree&quot;</li><li>Images<strong> </strong>→ raw pixels saved as files</li><li>Audio → sound waves recorded</li><li>Video → frames of images played in sequence</li></ul><p>All of these are <strong>just values</strong> until we process them and give them meaning.Data alone is useless.We only get value when we start <em>processing</em> it.That processing creates the next layer:</p><h3>2.What Is Information?</h3><blockquote><strong><em>When raw data is given context and meaning, it becomes information.</em></strong></blockquote><blockquote>Eg: 28°C is data</blockquote><blockquote>Information:Today’s temperature is 28°C.</blockquote><blockquote>Now you understand:What 28 means,What it is related to</blockquote><h4>How Does <strong>Data Become Information</strong>?</h4><p>Data becomes Information when it is processed, organized, and given context.</p><blockquote><strong><em>Data → (processing + context) = Information</em></strong></blockquote><h3>3.What is <strong>Knowledge</strong>?</h3><blockquote>Knowledge is organized information that can be used to understand, explain, or make decisions.</blockquote><blockquote>It is <strong>not just raw data,</strong>it is data that has been:</blockquote><blockquote><em>processed,connected,given meaning and stored in a usable form</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ya-vJS4jgGJ8SDhmy5N_ag.png" /></figure><p>Knowledge is when machine(or human) connect informations and applies rules to make decisions or take actions.</p><h4>Why Do We Use Data, Information, and Knowledge?</h4><p>But the real power comes from understanding why these stages of data exist.</p><ol><li><em>Machines Cannot Think ,They Depend on Inputs:</em>They only know what we feed them,Data is the only window to reality for a machine</li><li><em>Information Gives Meaning:</em>Raw data is chaotic<strong>,</strong>Machines cannot use it directly.Processing <strong>organizes</strong> data,That organized data becomes <strong>Information</strong></li><li><em>Knowledge Enables Decisions:</em><strong>Information</strong> only <em>Tells what is happening but </em><strong>Knowledge</strong> <em>Tells what to do about it.</em></li></ol><p>This is where <strong>intelligence of machinesbegins by</strong>:</p><p>-Answering questions</p><p>-Predicting outcomes</p><p>- Recommending choices</p><p>- Planning actions</p><h4>Where Is This Used in Real Life?</h4><p>Example:ChatGPT</p><ul><li>Data:Huge amounts of text.</li><li>Information:The model learns patterns of language, logic, and meaning.</li><li>Knowledge:It uses these patterns to generate helpful answers.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3f4d4ac8e57" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>