<?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 Sagar Nangia on Medium]]></title>
        <description><![CDATA[Stories by Sagar Nangia on Medium]]></description>
        <link>https://medium.com/@sagar.nangia?source=rss-69c07038a384------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZNDiCg_T2qJUK-bBtPRS2w.png</url>
            <title>Stories by Sagar Nangia on Medium</title>
            <link>https://medium.com/@sagar.nangia?source=rss-69c07038a384------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 22:53:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sagar.nangia/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[Building Trust in Gen AI: A framework for automatic evaluation of LLM RAG system]]></title>
            <link>https://medium.com/amex-gbt-technology/building-trust-in-gen-ai-a-framework-for-automatic-evaluation-of-llm-rag-system-f4079a136270?source=rss-69c07038a384------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4079a136270</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[agentic-rag]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[llm-evaluation]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Sagar Nangia]]></dc:creator>
            <pubDate>Tue, 15 Jul 2025 12:27:34 GMT</pubDate>
            <atom:updated>2025-07-15T12:32:31.241Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building trust in GenAI: A framework for automatic evaluation of LLM RAG system</h3><h4><em>Smarter, Scalable, and Bias-Free — with Claude 3.5 &amp; DeepEval</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cCVmjE4wt-5arNpLP6wb3g.png" /></figure><h4><strong>How do you know if your Retrieval-Augmented Generation (RAG) system is improving?</strong></h4><p>After launching our first RAG-based system for business travel queries, we needed a faster, more objective way to evaluate the AI system’s quality — across both retrieval and generation.</p><h4><strong>The challenge: Making AI truly intelligent</strong></h4><p>In the fast-paced world of business travel, speed and precision aren’t just nice-to-haves — they’re essential. Our team recognised that while AI holds immense potential, its true value lies in consistent, reliable performance. The traditional method of manually evaluating AI outputs was like trying to navigate a global trip with an outdated map: time-consuming, subjective, and limiting. Though, this is often the first step when starting a new project to establish the ground truth i.e. the ideal answer to the question.</p><h4><strong>Our innovation: A cutting-edge evaluation framework</strong></h4><p>We didn’t just accept the status quo. We reimagined how we could validate our LLM RAG system performance. Our automatic evaluation framework is like a sophisticated GPS for AI, combining:</p><ul><li><strong>Supervised evaluation: </strong>Using golden datasets, metrics like ROUGE, cosine similarity, exact match, Top-K precision/recall.</li><li><strong>Unsupervised evaluation: </strong>LLM-as-a judge<strong>, </strong>powered by Claude 3.5 Sonnet via AWS Bedrock and DeepEval (pairwise comparison and element-wise scoring) — no human labels needed.</li></ul><p>This approach lets us validate the AI system’s quality (evaluating both the retriever component, the generator, as well as the guardrails in place) at scale, across languages, and with clear traceability.</p><p><strong>The game-changing results:</strong></p><ul><li><strong>77% faster evaluations</strong> (from 60 mins to 14 mins).</li><li><strong>Multilingual scale</strong> without human bias.</li><li><strong>Safe, fast iteration</strong> with A/B and shadow testing.</li><li>Designed for <strong>cross-team adoption</strong>.</li></ul><p>The example graphs represent the aggregated score (element scoring — ranged between fair to very high) for accuracy measuring and tracking improvement:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZHNUAwNYlt4e-0xnGycwEw.png" /><figcaption><em>Note: The above graph depicts the visibility of performance for the FAQ LLM system in production. The automatic evaluation behind allows us to proactively identify improvements of the AI system across time.</em></figcaption></figure><h4><strong>How is aggregated score calculated?</strong></h4><p>Mean of answer relevancy, faithfulness, no hallucination and prompt alignment metrics.</p><p>i.e.<strong> Aggregate score = </strong>(Answer relevancy + faithfulness + no hallucination + prompt alignment) / 4</p><h4><strong>Why this matters?</strong></h4><p>As <strong>American Express Global Business Travel</strong> scales its use of AI to deliver smarter business travel experiences, our Retrieval-Augmented Generation (RAG) systems have become foundational to answering complex traveler queries with speed and precision. <br> <br>But high-performing AI is only valuable when it can be measured — objectively, frequently, and at scale.</p><p><em>Manual evaluation methods are time-consuming (60+ mins per run),</em> subjective, and don’t scale across languages or evolving use cases. This bottleneck poses real risks to both product velocity and customer trust. <br> <br>To maintain our leadership in enterprise travel, we needed a solution that could automatically and reliably evaluate AI outputs — not just for correctness, but for safety, relevance, and explainability.</p><p><strong><em>Thanks to our automatic evaluation framework</em></strong> — the true catalyst behind our progress, we can now iterate, test, and monitor improvements faster than ever before. This isn’t just a technical achievement — it’s a commitment to delivering exceptional service. Our travellers now receive:</p><ul><li>Faster and smoother iterations for continuous improvement of GenAI systems.</li><li>Consistent technical support across languages.</li><li>Trustworthy and explainable AI assistance.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O-P_Q-Fyd90YRpPSXUDv4g.png" /><figcaption>Benefits of Automatic Evaluation: Business Efficiency, Time Savings, Consistency and Objectivity, Language Complexity</figcaption></figure><h4><strong>Tools References:</strong></h4><ul><li><a href="https://www.anthropic.com/news/claude-3-5-sonnet">Claude 3.5 Sonnet</a></li><li><a href="https://deepeval.com/docs/getting-started?utm_source=GitHub">DeepEval</a></li><li>Sentence-transformers, ROUGE, scikit-learn</li></ul><h4><strong>The future is now!</strong></h4><p>As we continue to push the boundaries of AI in business travel, one thing remains constant: our unwavering commitment to making every journey smoother, smarter, and more connected.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4079a136270" width="1" height="1" alt=""><hr><p><a href="https://medium.com/amex-gbt-technology/building-trust-in-gen-ai-a-framework-for-automatic-evaluation-of-llm-rag-system-f4079a136270">Building Trust in Gen AI: A framework for automatic evaluation of LLM RAG system</a> was originally published in <a href="https://medium.com/amex-gbt-technology">Amex GBT technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>