<?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 Sonalikabadi on Medium]]></title>
        <description><![CDATA[Stories by Sonalikabadi on Medium]]></description>
        <link>https://medium.com/@sonalikabadi?source=rss-1e4eb5d0f253------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*7HVUTyfk_V5d0TB7</url>
            <title>Stories by Sonalikabadi on Medium</title>
            <link>https://medium.com/@sonalikabadi?source=rss-1e4eb5d0f253------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 13:11:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sonalikabadi/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[A little about RAG (Retrieval-Augmented Generation)]]></title>
            <link>https://medium.com/@sonalikabadi/a-little-about-rag-retrieval-augmented-generation-3b848ada03de?source=rss-1e4eb5d0f253------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b848ada03de</guid>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Sonalikabadi]]></dc:creator>
            <pubDate>Sat, 29 Mar 2025 14:07:01 GMT</pubDate>
            <atom:updated>2025-03-29T14:07:01.014Z</atom:updated>
            <content:encoded><![CDATA[<h3>Imagine This…</h3><p>You’re chatting with an AI assistant, asking for the latest stock market insights. Within seconds, it responds with outdated advice — because its training data stopped in 2022. You try again, hoping for a better answer, but it can’t pull real-time trends or verify facts.</p><p>This is a common limitation of Large Language Models (LLMs). While they excel at generating human-like text, they <strong>lack real-time knowledge</strong> and can sometimes provide <strong>misleading or incorrect information</strong> — a phenomenon known as hallucination.</p><p>This is where <strong>Retrieval-Augmented Generation (RAG)</strong> comes in. Instead of relying only on pre-trained data, RAG enhances AI responses by pulling in <strong>external knowledge</strong> — like up-to-date financial reports, company databases, or live stock market data — before generating an answer.</p><h3>Understanding RAG and LLM Limitations</h3><p>Large Language Models (LLMs) are powerful AI systems trained on vast amounts of text data. They can generate human-like responses, assist in coding, summarize articles, and more.</p><p>Retrieval-Augmented Generation (RAG) is a technique that enhances AI-generated responses by incorporating real-time, external knowledge. This helps overcome the limitations of LLMs by allowing them to access and use the latest and most relevant information.</p><h3>How Does RAG Work?</h3><p>Instead of relying solely on an AI model’s memory, RAG pulls in relevant, real-world information before forming a response. However, RAG comes into play <strong>only if an external knowledge base is available</strong>. An external knowledge base refers to any structured or unstructured data repository that an AI model can query for additional information. If there is no external data source, the model will still generate responses but will rely solely on its pre-trained knowledge, which may not always be up-to-date. By integrating such external sources, RAG ensures that AI-generated responses are dynamic and updated rather than relying on static training data.</p><h3>The RAG Workflow and Retrieval Process</h3><p>RAG works in two key steps:</p><p>1. Retrieval— It searches for useful documents or data from an external knowledge base.<br>2. Generation— The AI model uses the retrieved data to generate a more accurate and informed response.</p><p>Here’s a breakdown of how the retrieval process works:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*GiI2Y-C1v0L_P_NN52mRDg.png" /><figcaption><strong>Retrieval-Augmented Generation</strong></figcaption></figure><p>1. A user asks a question.<br>2. The AI converts the question into a vector representation (a numerical format).<br>3. The query is compared against a <strong>vectorized knowledge base</strong>, which consists of pre-processed documents split into smaller chunks for efficient retrieval.<br>4. The most relevant chunks are retrieved using similarity search.<br>5. These retrieved chunks are added to the original query.<br>6. The AI model processes this enriched query and generates a response.<br>7. The final, well-informed response is displayed to the user.</p><h3>Example: Financial Advisory Chatbot</h3><p>Imagine someone asks a financial chatbot: <strong>”What are the best investment options for 2024?”</strong></p><p>- Without RAG: The chatbot provides a generic answer, like<strong> “Consider stocks, bonds, or real estate.</strong>”<br>- With RAG:<br> 1. The chatbot converts the question into a vector format.<br> 2. It searches a vectorized database containing financial reports, investment trends, and expert opinions.<br> 3. The system retrieves the most relevant chunks of data from a recent financial report.<br> 4. The chatbot integrates this retrieved data into its response: <strong>“According to XYZ Financial Report (Jan 2024), the best investments this year include AI-driven ETFs, government bonds, and sustainable energy funds.”</strong></p><p>This approach ensures that the chatbot provides an up-to-date and contextually accurate response rather than a generic one.</p><p>Why Use RAG?<br>✔ Keeps responses up-to-date and relevant. <br>✔ Reduces incorrect or misleading information. <br>✔ Works across different industries like healthcare, finance, and legal services. <br>✔ Saves time by avoiding constant AI model retraining.</p><p>RAG is a game-changer for AI chatbots and virtual assistants. By allowing AI models to fetch and use the latest information instead of relying on outdated data, it ensures better accuracy and reliability. However, it is important to note that RAG is effective only when an external knowledge base is present. Without external data, the AI model functions like a traditional LLM, relying on its pre-trained knowledge.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b848ada03de" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>