<?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[HackerAI - Medium]]></title>
        <description><![CDATA[A place to sharing the practices and latest news regarding AI, technologies - Medium]]></description>
        <link>https://medium.com/hackerai?source=rss----16b9441d9934---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>HackerAI - Medium</title>
            <link>https://medium.com/hackerai?source=rss----16b9441d9934---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 12:12:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/hackerai" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Rethink Your RAG Solutions: A Data-Driven Approach to Unlocking LLM Potential]]></title>
            <link>https://medium.com/hackerai/rethink-your-rag-solutions-a-data-driven-approach-to-unlocking-llm-potential-e7bbc1c9dc07?source=rss----16b9441d9934---4</link>
            <guid isPermaLink="false">https://medium.com/p/e7bbc1c9dc07</guid>
            <category><![CDATA[fine-tuning-llm]]></category>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Peng Liu]]></dc:creator>
            <pubDate>Sat, 21 Dec 2024 11:15:00 GMT</pubDate>
            <atom:updated>2024-11-04T14:36:46.659Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NLCwWEzl6-9F3y66" /><figcaption>Photo by <a href="https://unsplash.com/@markusspiske?utm_source=medium&amp;utm_medium=referral">Markus Spiske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>All contents/views have been talked about in this article mainly come from the paper:</p><blockquote><a href="https://arxiv.org/abs/2409.14924">Retrieval Augmented Generation (RAG) and Beyond: A Comprehensive Survey on How to Make your LLMs use External Data More Wisely</a></blockquote><p>Retrieval augmented generations has been widely adopted in large language model (LLM) based solutions, from smart Chatbot to advanced agent. Here are the main benefits:</p><p><strong>1. Enhanced Professionalism and Timeliness:</strong></p><p>The data used to train LLMs often lags in timeliness and may not cover all domains comprehensively, especially proprietary data owned by users. Data augmented LLM applications address this issue by providing more detailed and accurate answers for complex questions, allowing for data updates and customization.</p><p><strong>2. Alignment with Domain Experts:</strong></p><p>Through the use of and learning from domain-specific data, data augmented LLM applications can exhibit capabilities more like domain experts, such as doctors and lawyers.</p><p><strong>3. Reduction in Model Hallucination:</strong></p><p>Data augmented LLM applications generate responses based on real data, grounding their reactions in facts and significantly minimizing the possibility of hallucinations.</p><p><strong>4. Improved Controllability and Explainability:</strong></p><p>The data used can serve as a reference for the model’s predictions, enhancing both controllability and explainability.</p><h3><strong>Stratification of Queries</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xnG2nVZpGeFIhvdNf1PI7g.png" /></figure><h3><strong>Explicit Fact Queries (L1)</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-dV6kYC2ZDYJxmxzwPStCg.png" /></figure><p><strong>Traditional alignment </strong>involves mapping both document segments and the query into the same encoding space</p><p><strong>Document domain alignment </strong>involves generating synthetic answers first, then using these answers to recall relevant data, effectively addressing the issue of queries and retrieved data not being in the same distribution space.</p><p><strong>Query domain alignment </strong>involves generating a set of synthetic questions for each atomic unit of text, mapping text segments into the query space, and then retrieving the synthetic questions closest to the original query along with their corresponding text segments</p><h3><strong>Implicit Fact Queries (L2)</strong></h3><ol><li><strong>Challenges</strong></li></ol><p>a. Adaptive retrieval volumes</p><p>b. Coordination between reasoning and retrieval</p><p>2.<strong> Solutions</strong>:</p><p>a. Iterative RAG</p><p>Planning-based (ReAct)</p><p>Information GapFillingBased (ITRG, generate first and continue retrieve to fill the gap)</p><p>b.Graph/ Tree Question Answering</p><p>Traditional Knowledge Graph</p><p>Data Chunk Graph/ Tree</p><p>c.Natural Language to SQL Queries</p><h3><strong>Rationale Data</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n9zykcE-iNuaUBw3u802Jw.png" /></figure><h3><strong>Interpretable Rationale Queries (L3)- Interpretable Rationales</strong></h3><h4><strong>1. Challenges</strong></h4><p>a. Prompt Optimization Costs</p><p>b. Limited interpretability</p><h4><strong>2. Solutions:</strong></h4><p>a. Prompt Tuning (Optimizes the integration of external rationales into LLMs to ensure accurate responses based on domain-specific reasoning.)</p><p>a.1. Manual prompt design</p><p>a.2. Reinforcement learning for prompt tuning</p><p>a.3. Edit-based methods</p><p>a.4. LLM-assisted prompt optimization</p><p>b. CoT Prompting (Enhances the LLM’s ability to tackle complex, multi-step problems )</p><p>b.1 Manual CoT Prompting</p><p>b.2 Automated CoT Generation</p><p>b.3 CoT in Agent Systems</p><h3><strong>Hidden Rationale Queries (L4)- Hidden Rationales</strong></h3><p>Challeges</p><p><strong>Logical retrieval</strong></p><p>For questions involving hidden rationales, the helpfulness of external data does not simply depend on entity-level or semantic similarity, but rather on logical congruence or thematic alignment.</p><p><strong>Data insufficiency</strong></p><p>Fundamentally, external data may not explicitly contain the guidance or answers relevant to the current query.</p><p><strong>Solutions</strong></p><p><strong>Offline Learning</strong></p><p>Generate reasoning rationales offline by identifying errors and transforming them into useful guidelines for future tasks (e.g., STaR, LEAP).</p><p><strong>In Context Learning (ICL)</strong></p><p>Selects relevant examples based on task similarity, improving the model’s performance through better contextual examples.</p><p><strong>Fine-tuning</strong></p><p>Instruction Tuning: Uses (instruction, output) pairs to infuse new capabilities into the model through fine-tuning.</p><p><strong>Methods include:</strong></p><p>Datasets derived from existing collections, manually created instructions, or synthetic data generated by powerful LLMs.</p><p><strong>Summary:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3bbY27YHpA3qIMPoHVxvGQ.png" /></figure><p><strong>Thanks for the reading :)</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7bbc1c9dc07" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackerai/rethink-your-rag-solutions-a-data-driven-approach-to-unlocking-llm-potential-e7bbc1c9dc07">Rethink Your RAG Solutions: A Data-Driven Approach to Unlocking LLM Potential</a> was originally published in <a href="https://medium.com/hackerai">HackerAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fine Tuning or Retrieval Augmented Generation (RAG), That Is the Question]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/hackerai/fine-tuning-or-retrieval-augmented-generation-rag-that-is-the-question-b5b0226d7ca8?source=rss----16b9441d9934---4"><img src="https://cdn-images-1.medium.com/max/1792/1*VMof2UuP1XNMeifaGQuV6Q.jpeg" width="1792"></a></p><p class="medium-feed-snippet">Large language model recently became a hype, especially in the AI world. Among of many applications, Retrieval Augmented Generation has&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/hackerai/fine-tuning-or-retrieval-augmented-generation-rag-that-is-the-question-b5b0226d7ca8?source=rss----16b9441d9934---4">Continue reading on HackerAI »</a></p></div>]]></description>
            <link>https://medium.com/hackerai/fine-tuning-or-retrieval-augmented-generation-rag-that-is-the-question-b5b0226d7ca8?source=rss----16b9441d9934---4</link>
            <guid isPermaLink="false">https://medium.com/p/b5b0226d7ca8</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[fine-tuning]]></category>
            <dc:creator><![CDATA[Peng Liu]]></dc:creator>
            <pubDate>Sat, 21 Dec 2024 11:14:43 GMT</pubDate>
            <atom:updated>2024-03-14T14:33:43.922Z</atom:updated>
        </item>
    </channel>
</rss>