<?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 Andrew Hoh on Medium]]></title>
        <description><![CDATA[Stories by Andrew Hoh on Medium]]></description>
        <link>https://medium.com/@andrew_64672?source=rss-95e29b545aaa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*JAcuBnUiwcrD_8Ky</url>
            <title>Stories by Andrew Hoh on Medium</title>
            <link>https://medium.com/@andrew_64672?source=rss-95e29b545aaa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 12:18:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andrew_64672/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[The Model Context Protocol: A Universal Standard for Connecting AI to Your Data and Tools]]></title>
            <link>https://medium.com/@andrew_64672/the-model-context-protocol-a-universal-standard-for-connecting-ai-to-your-data-and-tools-8d71fc792273?source=rss-95e29b545aaa------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d71fc792273</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[model-context-protocol]]></category>
            <dc:creator><![CDATA[Andrew Hoh]]></dc:creator>
            <pubDate>Wed, 01 Oct 2025 21:28:29 GMT</pubDate>
            <atom:updated>2025-10-01T21:28:29.060Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine if every device in your home required a different type of plug and outlet. Your laptop would need one connector, your phone another, and your headphones yet another. Chaos, right? For years, AI applications have faced exactly this problem — until now.</p><h3>What Is the Model Context Protocol?</h3><p>The <strong>Model Context Protocol (MCP)</strong> is an open standard that solves a fundamental challenge in AI: how to connect AI assistants to the tools and data they need to be useful. Think of it as “USB-C for AI” — a universal connector that works across different systems and applications.</p><p>Before MCP, every AI integration required custom code. Want your AI chatbot to access your company’s database? Build a custom connector. Need it to also read from Google Drive? Build another one. Want it to create tickets in your project management tool? That’s yet another bespoke integration. This approach didn’t scale, and it created security and maintenance nightmares.</p><p>MCP changes this by providing a single, standardized way for AI applications to discover what they can do, fetch the information they need, and take actions across different systems.</p><h3>How Does MCP Work?</h3><p>MCP connects three key players:</p><p><strong>Hosts</strong> are the AI applications you interact with — chatbots, coding assistants, or AI-powered IDEs. They’re the front door to AI capabilities.</p><p><strong>Servers</strong> are the programs that expose your actual data and tools. A server might provide access to your file system, a database, a Slack workspace, or a GitHub repository.</p><p><strong>Clients</strong> sit inside the host application and manage the conversation between the host and servers, translating requests and responses.</p><p>These components communicate using JSON-RPC 2.0 messages — a lightweight, well-established format that’s both human-readable and easy to implement.</p><h3>The Three Building Blocks</h3><p>MCP servers expose three core capabilities:</p><p><strong>Resources</strong> provide context — the raw material an AI needs to understand your situation. This could be files from your project, records from a database, or documentation from your knowledge base.</p><p><strong>Tools</strong> are functions the AI can execute. Search a codebase, create a calendar event, query a database, or send a message — these are all tools.</p><p><strong>Prompts</strong> are reusable templates that help structure interactions. Think of them as best-practice recipes for common tasks that can be shared and refined over time.</p><p>There are also two special capabilities that enable richer interactions. <strong>Sampling</strong> lets an MCP server ask the host’s AI model for a completion, while <strong>elicitation</strong> allows the server to ask the user for input directly — crucial for confirming sensitive actions.</p><h3>Built for Security and Simplicity</h3><p>MCP was designed with real-world deployment in mind. It supports two transport modes:</p><p><strong>Stdio</strong> (standard input/output) for fast, local servers running on your machine — perfect for file system access or local databases.</p><p><strong>HTTP with Server-Sent Events</strong> for remote servers, enabling cloud-based integrations while maintaining real-time, bidirectional communication.</p><p>Authentication works the way you’d expect: API keys, bearer tokens, or OAuth, depending on your security requirements. When a connection is established, both sides negotiate which features they support, so there are no surprises about capabilities.</p><p>Importantly, the MCP specification emphasizes user consent, data privacy, and safety. When an AI agent can read sensitive information or execute commands, these aren’t just nice-to-haves — they’re essential.</p><h3>Why MCP Matters</h3><p>Traditional AI “function calling” locked developers into vendor-specific APIs. Each AI provider had its own way of connecting to external systems, meaning your integrations worked with one platform but not another.</p><p>MCP standardizes this layer. Build an MCP server once, and it works with any MCP-compatible AI application. Organizations gain the ability to audit and control exactly what data is shared and what actions are permitted, all through a single, consistent framework.</p><p>This isn’t theoretical. The ecosystem is moving fast.</p><p><strong>Anthropic</strong> introduced MCP in November 2024, along with SDKs and reference servers for popular platforms like Google Drive, Slack, GitHub, and PostgreSQL.</p><p><strong>OpenAI</strong> embraced MCP in March 2025, integrating it into their Agents SDK and platform — a strong signal of cross-industry momentum.</p><p><strong>GitHub</strong> now documents first-party MCP servers and provides enterprise controls for using MCP with Copilot, bringing these capabilities directly into developers’ everyday workflows.</p><p><strong>Cloudflare</strong> treats MCP as a first-class deployment target, extending the protocol to edge computing environments.</p><p><strong>Google DeepMind</strong> has committed to supporting MCP in the Gemini ecosystem, further cementing its position as the emerging standard for AI agent interoperability.</p><h3>What This Looks Like in Practice</h3><p>Let’s walk through a real example. You’re working in your IDE — the <strong>host</strong>. Your IDE connects to a code-search server via MCP. This server advertises:</p><ul><li>A search_repo <strong>tool</strong> for finding code across your repository</li><li>A schema.md <strong>resource</strong> containing your database schema documentation</li><li>A <strong>prompt</strong> with best practices for code reviews</li></ul><p>When you ask your AI assistant to find where a particular function is used, the AI decides to use the search tool. The client sends a tools/call request to the server, which searches your codebase and streams back results. If the results are ambiguous, the server can use <strong>elicitation</strong> to ask you for clarification—&quot;Did you mean the function in the auth module or the payments module?&quot;</p><p>Here’s the powerful part: that same AI assistant can immediately switch to a ticketing server to create a bug report, then to a database server to check related data — all without any new integration work. Each server speaks MCP, so the AI already knows how to talk to them.</p><h3>Looking Forward</h3><p>MCP represents a fundamental shift in how we build AI applications. Instead of creating closed ecosystems where AI capabilities are tightly coupled to specific platforms, MCP enables an open, interoperable future.</p><p>For developers, this means building integrations once and using them everywhere. For organizations, it means better control, clearer audit trails, and the freedom to switch AI providers without losing your integrations. For users, it means AI assistants that can actually access the tools and information they need to be genuinely helpful.</p><p>If you’re building AI features that need to touch real data or trigger real actions, designing with MCP today isn’t just about following a standard — it’s about building for a future where AI applications work together seamlessly, securely, and in ways we’re only beginning to imagine.</p><p>The connectors are finally universal. Now the real work of building useful AI can begin.</p><p><strong>Resources:</strong></p><ul><li><a href="https://spec.modelcontextprotocol.io/">MCP Specification</a></li><li><a href="https://docs.anthropic.com/claude/docs/model-context-protocol">Anthropic’s MCP Documentation</a></li><li><a href="https://docs.github.com/copilot/using-github-copilot/using-mcp-servers">GitHub MCP Implementation Guide</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d71fc792273" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Guide to Evaluating Retrieval-Augmented Generation (RAG) systems]]></title>
            <link>https://medium.com/lastmile-ai/the-guide-to-evaluating-retrieval-augmented-generation-rag-systems-01568ed02d0e?source=rss-95e29b545aaa------2</link>
            <guid isPermaLink="false">https://medium.com/p/01568ed02d0e</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[llmops]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[llm-evaluation]]></category>
            <category><![CDATA[llm-applications]]></category>
            <dc:creator><![CDATA[Andrew Hoh]]></dc:creator>
            <pubDate>Wed, 24 Jul 2024 18:17:00 GMT</pubDate>
            <atom:updated>2024-07-24T18:17:00.433Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gVxbvQvTi8_tzjtexFfpGw.png" /><figcaption>The journey from RAG POC to Production</figcaption></figure><p>Over the past several months, I’ve worked with startups and companies stuck in the proof-of-concept stage. These companies were in a loop of identifying an inaccuracy, applying a one-off fix, and repeating, in the hopes of hitting their accuracy goal. From these conversations and collaborations, it’s become clear that a good testing and evaluation framework was the key to finally transitioning a POC into production. I’m sharing my learnings and takeaways for others who may be encountering similar problems.</p><h4>The Problem</h4><p>As of today, RAG application builders are able to get a functional proof-of-concept complete with relative ease. But, in order to meet accuracy goals to deploy from proof-of-concept into production, developers are encountering many challenges. I’ve seen the regression in performance after a developer adds a <em>“response should be brief”</em> to the system prompt. I’ve seen the chunking nightmares where it starts with <em>the chunk size just needs to be a few token larger</em> and ends up with complex dynamic chunking sizes based on document classifications. At times it feels like a hopeless journey questioning whether an accuracy goal of 95% is even possible.</p><p>Taking a page from traditional ML, setting up a good evaluation test is important in navigating the decision making on how to incremental make progress. I’ll talk about the ideal evaluation (<em>unfortunately, there are limitations</em>) and the practical setup to evaluations.</p><h4>Ideal Solution</h4><p>Yes, there is a solution to this problem to definitively evaluate these RAG systems. The perfect evaluation framework is <strong>people</strong>. <strong>People</strong> are the only ones who can definitively judge whether a RAG system is responding appropriately or not, and there are two approaches to incorporating people into the system:</p><ol><li><a href="https://cloud.google.com/discover/human-in-the-loop?hl=en">Human-in-the-loop</a> — introducing people into the system to review and/or validate the results from the RAG or LLM application.</li><li><a href="https://hdsr.mitpress.mit.edu/pub/aj31wj81/release/1">Online Experimentation</a> — typically as an A/B test, driving a portion of production traffic from real users to the RAG or LLM application. Measuring the success of the experiment based on key metrics.</li></ol><p><em>If both human-in-the-loop and online experimentation are solutions to evaluating RAG applications, why is evaluation still an unsolved problem?</em></p><p>Well, the challenges that most companies are encountering are that in most cases, it’s not feasible to instrument these solutions into their RAG applications. The reasons being:</p><ol><li>Human-in-the-loop typically requires subject matter experts (SMEs) to review and validate responses. SMEs can precisely determine whether an LLM response is correct or incorrect, especially in more nuanced cases. However, SMEs’ times are valuable and it’s not always feasible to have SMEs continuously review responses. You can reduce the time needed by randomly sampling a small portion of the LLM responses for review, but this increases the likelihood of edge cases accidentally being released to production.</li><li>Online experimentation is a very powerful approach to confidently understanding whether a RAG application is positively moving success metrics. However, companies have concerns with pushing LLMs to production without a stronger guarantee on how misinformation won’t be generated (e.g. <a href="https://www.forbes.com/sites/marisagarcia/2024/02/19/what-air-canada-lost-in-remarkable-lying-ai-chatbot-case/"><em>What Air Canada Lost in ‘Remarkable Lying AI Chatbot Case</em></a>)</li></ol><h4>Combination of Evaluations</h4><p>In absence of the ideal solution, I’ve found that a combination of evaluation techniques serves as the approximate for evaluating the end-to-end RAG application. The best approach consists of three categories: <em>1. the vibe-check; 2. evaluators; and 3. collecting user feedback.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6T9CRAONndnNXDfsLGg_NA.png" /></figure><ol><li><strong>Vibe-checks</strong> — although this isn’t the most scientific approach, I have found that spot checking from SMEs (engineers, PMs, biz ops, etc.) is a viable and necessary step in improving a RAG application performance. The difference between those who have already productionized a RAG application vs. those who have not is that the experienced people are organized with their “spot checking”. They neatly label the input and output with a <a href="https://en.wikipedia.org/wiki/Ground_truth">ground truth</a> label. They persist this data point to be used for evaluation runs, integration tests, or regression tests. My recommendation is to invest time in a good tool to help version control and keep track of your ground truth data. You don’t want to regret it later on when you find that you don’t have any ground truth data and you have to start from scratch.</li><li><strong>Evaluators</strong> — Functions to measure the performance of your application. Evaluators can take inputs, outputs, and optionally ground truth data to provide meaningful metrics on whether your RAG application is improving across the metrics you care about. Across the applications I’ve worked with, it’s been difficult to derive a single composite metric that can accurately measure whether an LLM response with context yields better performance or not, I have found that evaluators are great indicators on whether the performance you care about is improving. There are many ways to segment the different types of evaluators (e.g. <em>with/without labels, NLP / CV , etc.</em> ), but for this document, I’ll segment off of three types of implementations of evaluators: <em>heuristic-based</em>, <em>evaluator models</em>, <em>LLM prompting<br> <br>- </em><strong>Heuristic-based</strong> — traditional NLP functions (BLEU, ROGUE, etc.) to measure the accuracy of output text against ground truth. I have found that these metrics have been less useful of late to measure performance of a RAG application’s output.<br> <br>- <strong>Evaluator model</strong> — smaller, specialized classification models to validate the performance (<em>faithfulness, answer relevancy, context relevancy, semantic similarity, etc.</em>). I have found that this approach doesn’t sacrifice on performance compared to LLM prompting, but is significantly more cost and latency efficient. Given the benefits, we, here at <a href="https://lastmileai.dev/">LastMile AI</a>, released our own evaluator models (<a href="https://blog.lastmileai.dev/harder-better-faster-stronger-llm-hallucination-detection-for-real-world-rag-part-i-949248f0ad94">p-faithful</a>).<br> <br>- <strong>LLM prompting</strong> — the current state of the art is to prompt current state-of-the-art LLMs to judge the performance of the RAG application. This approach is often-times too expensive, high latency, and imprecise (i.e. the numerical significance of the response from the LLM lacks statistical significance).</li><li><strong>User feedback</strong> — A far cry from online experimentation against external users, but almost all RAG applications go through a dogfooding phase or internal testing. Integrating RAG applications to collect well-organized labels from internal users or dogfooders is an important way to acquire high-quality labels to further improve your application.</li></ol><p>With a combination of these 3 techniques, I’ve found that companies and users have the best framework in place to get to the performance that meets their bar for production.</p><h4>Conclusion</h4><p>Evaluation for RAG systems is still an unsolved problem, but I’m betting that with more automation of these techniques and personalization, the state-of-the-art will advance further. If you’re interested in automating or fine-tuning your evaluations, feel free to connect with me at <a href="/service/mailto:andrew@lastmileai.dev">andrew@lastmileai.dev</a> and check us out @ <a href="https://lastmileai.dev/">LastMile AI</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01568ed02d0e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lastmile-ai/the-guide-to-evaluating-retrieval-augmented-generation-rag-systems-01568ed02d0e">The Guide to Evaluating Retrieval-Augmented Generation (RAG) systems</a> was originally published in <a href="https://medium.com/lastmile-ai">lastmile ai — blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>