<?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 Connor on Medium]]></title>
        <description><![CDATA[Stories by Connor on Medium]]></description>
        <link>https://medium.com/@connorlee184?source=rss-df15ddda82ff------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Connor on Medium</title>
            <link>https://medium.com/@connorlee184?source=rss-df15ddda82ff------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 23:13:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@connorlee184/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[Recent Evolution of RAG]]></title>
            <link>https://medium.com/nyu-ds-review/recent-evolution-of-rag-1e132df9fb36?source=rss-df15ddda82ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e132df9fb36</guid>
            <category><![CDATA[information-retrieval]]></category>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Connor]]></dc:creator>
            <pubDate>Wed, 27 Nov 2024 14:02:21 GMT</pubDate>
            <atom:updated>2024-11-27T14:02:21.673Z</atom:updated>
            <content:encoded><![CDATA[<h4>Explore recent Retrieval-Augmented Generation (RAG) advances that address the traditional limitations of RAG. From improving domain-specific accuracy to creating a novel architecture, discover what research is being performed to make RAG more viable in the real world.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sy5eRB2EdEwpjsNN" /><figcaption>Photo by <a href="https://unsplash.com/@dawson2406">Stephen Dawson</a> on <a href="https://unsplash.com/">Unspalsh</a></figcaption></figure><p>Large language models (LLMs), deep learning models that are pre-trained on vast amounts of data, excel at various tasks such as question answering, text generation, and summarization. However, they also face challenges like hallucinations, limited accuracies and sometimes inaccuracies in domain-specific knowledge, and difficulties in handling long contexts or processing complicated tasks. Retrieval-Augmented Generation (RAG) addresses these issues by incorporating external knowledge sources, enhancing model reliability and reducing factual errors. While RAG has improved domain-specific accuracy, recent studies have revealed its limitations, including the risk of misinformation from indiscriminate retrieval and difficulties in managing ambiguous or complicated tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*6v3pH8iNdSKia-j8udPiFA.png" /><figcaption>Image taken from [8]</figcaption></figure><p>The traditional RAG architecture consists of three primary components: retrieval, augmentation, and generation.</p><p>(1) Retrieval: This involves fetching document chunks that are the most relevant to the user’s query, usually through sparse, dense, or hybrid retrieval methods (for example, K-nearest neighbors or BM25) [1].</p><p>(2) Augmentation: This step integrates the retrieved context with the user query before inputting it into the LM (language models). Post-retrieval techniques like rerank chunks, ranking documents relevant to a query, or context compressing, reducing irrelevant information from the context, are utilized to optimize the efficiency of passing this information to the LM.</p><p>(3) Generation: In this final stage, the retrieved documents and query are inputted into the LM which generates a final response by combining its own parameters with external knowledge, allowing the model to generate accurate answers contextually grounded in real-time.</p><p>However, RAG systems face several challenges, including no established metrics for query rewriting, document re-ranking, and difficulties with effective content summarization [2]. Additionally, current retrieval methods struggle with ambiguous queries and unstructured knowledge, limiting RAG’s effectiveness in handling simpler tasks. Moreover, as LLMs become increasingly knowledgeable, studies indicate that retrieval may reduce performance or negatively impact the model [3].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*luSSJbPwEumkWpI22DaZmg.png" /><figcaption>Image taken from [2]</figcaption></figure><p>Given the limitations of conventional RAG in generalizing beyond simple queries and structured knowledge, there have been novel advances within the field to make up for RAG’s deficiencies. MemoRAG [4] introduces retrieval augmented by long-term memory, while Adaptive-RAG [5] dynamically selects strategies based on query complexity. Self-RAG [6] leverages reflection tokens, and SKR (Self-Knowledge guided Retrieval augmentation) [3] utilizes both internal and external knowledge by eliciting LLMs’ self-knowledge. Additionally, the technique GGPP (Gradient Guided Prompt Perturbation) [7] introduces a new optimization method that improves the robustness of RAG-based LLMs. Once these optimizations are added, then the question arises, how is RAG evaluated? Assessing the performance of RAG systems involves assessing both the retrieval and generation components.</p><p>For the retrieval component, metrics that are commonly found in the fields of IR (Information Retrieval) and recommendation systems, such as hit rate, MRR (Mean Reciprocal Rank), and NDCG (Normalized Discounted Cumulative Gain) are typically used [9]. These metrics evaluate how well the system retrieves relevant chunks for a given query and can be implemented to compare the quality of retrieval between traditional RAG and the enhanced RAG architectures.</p><p>On the generation side, the performance of a baseline LLM, a baseline LLM equipped with a traditional RAG, and RAGs with improved components are tested through the same evaluation metrics. These standard metrics, which consist of ROUGE (Recall-Oriented Understudy), BLUE (Bilingual Evaluation Understudy for cross-language), F1 score, MAUVE (Metric for overlap of text), str-em (Structured Expectation-Maximization), and FactScore, measure the fluency, accuracy, and overall coherence of the generated responses. Additionally, task-specific benchmarks, such as question-answering accuracy or summarization quality, further evaluate the overall system performance [8].</p><p>To support testing, common datasets used for such testing can be found to evaluate an LM’s generation for QA (Question-Answer) pairs (like HotPotQA) with single to multiple hops, long-form QA, and domain-specific QA, which are different types of question formats which mimic what a human usually asks when querying an LLM. Similarly, datasets like SQuAD are commonly used for dialogue generation, including subdivisions like task-oriented dialogue or recommendation dialogue.</p><p>RAG currently offers a promising means for LLMs to compensate for their knowledge gaps, especially in domain-specific tasks. However, RAG can sometimes introduce drawbacks, providing incoherent,false or biased information. As such, variations and novel approaches, such as developing completely new architectures or introducing new metrics to measure RAG’s responses, are immensely helpful to ensure that RAG remains an effective, robust tool for enhancing LLM outputs.</p><p><strong>References:</strong></p><p>[1] Stephen Robertson, The Probabilistic Relevance Framework: BM25 and Beyond, <a href="https://www.nowpublishers.com/article/Details/INR-019">https://www.nowpublishers.com/article/Details/INR-019</a>, 2009</p><p>[2] Scott Barnett, Stefanus Kurniawan, Srikanth Thudumu, Zach Brannelly, Mohamed Abdelrazek, Seven Failure Points When Engineering a Retrieval Augmented Generation System, <a href="https://arxiv.org/abs/2401.05856">https://arxiv.org/abs/2401.05856</a>, 2024</p><p>[3] Yile Wang, Peng Li, Maosong Sun, Yang Liu, Self-Knowledge Guided Retrieval Augmentation for Large Language Models, <a href="https://arxiv.org/abs/2310.05002">https://arxiv.org/abs/2310.05002</a>, 2023</p><p>[4] Hongjin Qian, Peitian Zhang, Zheng Liu, Kelong Mao, Zhicheng Dou, MemoRAG: Moving towards Next-Gen RAG Via Memory-Inspired Knowledge Discovery, <a href="https://arxiv.org/abs/2409.05591">https://arxiv.org/abs/2409.05591</a>, 2024</p><p>[5] Soyeong Jeong, Jinheon Baek, Sukmin Cho, Sung Ju Hwang, Jong C. Park, Adaptive-RAG: Learning to Adapt Retrieval-Augmented Large Language Models through Question Complexity, <a href="https://arxiv.org/abs/2403.14403">https://arxiv.org/abs/2403.14403</a>, 2024</p><p>[6] Akari Asai, Zeqiu Wu, Yizhong Wang, Avirup Sil, Hannaneh Hajishirzi, Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection, <a href="https://arxiv.org/abs/2310.11511">https://arxiv.org/abs/2310.11511</a>, 2023</p><p>[7] Zhibo Hu, Chen Wang, Yanfeng Shu, Helen (Hye-Young)Paik, Liming Zhu, Prompt Perturbation in Retrieval-Augmented Generation based Large Language Models, <a href="https://arxiv.org/abs/2402.07179">https://arxiv.org/abs/2402.07179</a>, 2024</p><p>[8] Hao Yu, Aoran Gan, Kai Zhang, Shiwei Tong, Qi Liu, Zhaofeng Liu, Evaluation of Retrieval-Augmented Generation: A Survey, <a href="https://arxiv.org/abs/2405.07437">https://arxiv.org/abs/2405.07437</a>, 2024</p><p>[9] Thiyagarajan Palaniyappan, Comprehensive Evaluation Metrics for Retrieval-Augmented Generation (RAG), <a href="https://medium.com/@plthiyagu/comprehensive-evaluation-metrics-for-retrieval-augmented-generation-rag-a846ec355c86">https://medium.com/@plthiyagu/comprehensive-evaluation-metrics-for-retrieval-augmented-generation-rag-a846ec355c86</a>, 2024</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e132df9fb36" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nyu-ds-review/recent-evolution-of-rag-1e132df9fb36">Recent Evolution of RAG</a> was originally published in <a href="https://medium.com/nyu-ds-review">NYU Data Science Review</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Do Companies Use Data Science?]]></title>
            <link>https://medium.com/nyu-ds-review/how-do-companies-use-data-science-bfb87f37f215?source=rss-df15ddda82ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/bfb87f37f215</guid>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[spotify]]></category>
            <category><![CDATA[user-data]]></category>
            <category><![CDATA[netflix]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Connor]]></dc:creator>
            <pubDate>Fri, 08 Dec 2023 16:59:52 GMT</pubDate>
            <atom:updated>2023-12-08T16:59:52.505Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xThX2JP_7h4hjGKXb-476A.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@marvelous">Marvin Meyer</a> on <a href="https://unsplash.com/">Unsplash</a></figcaption></figure><p>How does Amazon know customers may need a racquet when buying tennis balls or pants when buying a shirt? As consumers and as a society in general, we tend not to notice changes that benefit us. Ever since the boom in online marketplace sales due to COVID-19, companies have begun to pour more resources to cater toward online customers. With Amazon having over 1.6 billion transactions daily, the massive available user data is prime to develop new features that create a better online experience for consumers, creating a cycle of new users and a more personalized experience [1].</p><p>Even though the services we know and love, like Amazon or Netflix, seem the same, they are constantly evolving their products. However, companies like these are only able to do so thanks to us, the consumers, and data science.</p><p>Take Amazon, a multi-billion dollar company. With almost 310 million customers worldwide as of October 2023 and an average daily sales revenue of $1.4 billion, it is not surprising the amount of data Amazon has access to [2].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4I4rY5spVHCp7PJG" /><figcaption>(Image taken from Statista [3])</figcaption></figure><p>Seeing exponential growth from around 2015 to 2021, Amazon’s growth can be attributed to how it utilizes large amounts of data available. By applying data science, Amazon uses user purchase history, feedback habits, and other factors to create a unique shopping experience [4]. Narrowing down the options and personalizing the shopping experience, Amazon creates an experience catered toward the user, increasing their chance to purchase items.</p><p>Amazon is not the only company that has benefitted from data science. Sectors like the entertainment industry, specifically Netflix, have also hopped on the trend. Have you ever noticed the “% match” at the top of a show or movie featured? This is because Netflix compares the watch history of other users [5]. What about the catchy thumbnails? Netflix combs through each frame of a show or movie to determine the image most likely to be clicked on– automatic SEO!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qIuMHqyRjWX6D4Kx" /><figcaption>(Image taken from [6])</figcaption></figure><p>Similarly, music companies like Spotify also make use of the massive user data they have access to. By combing through a user’s listening history, from songs to podcasts, Spotify can use machine learning to recommend genres to which users appeal more [7]. Moreover, Spotify’s AI can compile a personalized playlist based on one user’s tastes or a friend’s– like Spotify Blend [8]. However, don’t be fooled, these minuscule improvements are backed by a long history of development. From 2013 to the present, Spotify has been pouring money into the AI sector, acquiring startups, and creating a presence in the AI field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2uiPuteKkemb4mgy" /><figcaption>(Image taken from Spotify [8])</figcaption></figure><p>With big companies implementing features like these, many other companies want to follow suit, from sectors like banking, healthcare, and even transportation. According to a recent McKinsey survey, “56% of organizations today are using machine learning in at least one business function” [9]. Yet, with billions of dollars poured into the research and development of these user features, a question arises: is it worth the money? This September, Amazon invested up to $4 billion into an AI startup, hoping to keep an edge on the AI arms race [10]. To the ordinary consumer, that amount of money should equate to evolutionary changes and development. However, this isn’t the case. Many of the features work behind the scenes, purposefully hiding themselves to provide a better customer experience unnoticed like Amazon suggesting related items to users’ carts. Next time an online product is displayed that seems oddly similar to your preferences, it is probably because machine learning is processing your data and working in the background to create a personalized experience.</p><p>References:</p><p>[1] Bradley T., Amazon Statistics: Key Numbers and Fun Facts, <a href="https://amzscout.net/blog/amazon-statistics/#:~:text=While%20we%20do%20not%20know,about%2020%20orders%20per%20second">AmzScout</a></p><p>[2] Brian Connolly, 14 Amazon Statistics You Should Know in 2023, <a href="https://www.junglescout.com/blog/amazon-statistics/">JungleScout</a></p><p>[3] Felix Richter, Amazon’s Incredible Long-Term Growth, <a href="https://www.statista.com/chart/4298/amazons-long-term-growth/">Statista</a></p><p>[4] Michael A, How Amazon Uses Data Science and Analytics to Drive E-commerce Success, <a href="https://www.linkedin.com/pulse/how-amazon-uses-data-science-analytics-drive-success-michael-ampofo/">Linkedin</a></p><p>[5] Allen Yu, How Netflix Uses AI, Data Science, and Machine Learning — From A Product Perspective, <a href="https://becominghuman.ai/how-netflix-uses-ai-and-machine-learning-a087614630fe">Medium</a></p><p>[6] MoreFM, What Does The Percentages On Netflix’s Shows And Movies Actually Mean, <a href="https://www.morefm.co.nz/home/archive/2022/04/what-does-the-percentages-on-netflixs-shows-and-movies-actually-mean.html">MoreFM</a></p><p>[7] Mike Kaput, How Spotify uses AI– and What You Can Learn from It, <a href="https://www.marketingaiinstitute.com/blog/spotify-artificial-intelligence">Marketing AI Institute</a></p><p>[8] Spotify, How Spotify’s Newest Personalized Experience, Blend, Creates a Playlist for You and Your Bestie, <a href="https://newsroom.spotify.com/2021-08-31/how-spotifys-newest-personalized-experience-blend-creates-a-playlist-for-you-and-your-bestie/">Spotify</a></p><p>[9] Hrvoje Smolic, Popular Applications of Machine Learning in Business [2023], <a href="https://graphite-note.com/popular-applications-of-machine-learning-in-business#:~:text=56%25%20of%20organizations%20today%20are,to%20a%20recent%20McKinsey%20survey">Graphite</a></p><p>[10] Heather Landi, How Amazon’s $4B investment in AI company Anthropic impacts healthcare, <a href="https://www.fiercehealthcare.com/health-tech/how-amazons-4b-investment-ai-company-anthropic-impacts-healthcare#:~:text=With%20the%20%244%20billion%20investment,with%20competitors%20Microsoft%20and%20Google.">Fierce Healthcare</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bfb87f37f215" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nyu-ds-review/how-do-companies-use-data-science-bfb87f37f215">How Do Companies Use Data Science?</a> was originally published in <a href="https://medium.com/nyu-ds-review">NYU Data Science Review</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>