<?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 Douglas Day on Medium]]></title>
        <description><![CDATA[Stories by Douglas Day on Medium]]></description>
        <link>https://medium.com/@douglas_day?source=rss-f5ad440e2a9c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3XgCJau45yinkFtnecmNzA.png</url>
            <title>Stories by Douglas Day on Medium</title>
            <link>https://medium.com/@douglas_day?source=rss-f5ad440e2a9c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 22:07:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@douglas_day/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 Opportunity Cost of AI Procrastination]]></title>
            <link>https://medium.com/datalabsolutions/the-opportunity-cost-of-ai-procrastination-118a91d4f170?source=rss-f5ad440e2a9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/118a91d4f170</guid>
            <category><![CDATA[data-strategy]]></category>
            <category><![CDATA[business-strategy]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[digital-transformation]]></category>
            <dc:creator><![CDATA[Douglas Day]]></dc:creator>
            <pubDate>Fri, 16 Oct 2026 06:40:59 GMT</pubDate>
            <atom:updated>2026-10-16T06:44:30.430Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T8EGkzYnzZ-Z933zutVBsg.png" /></figure><p><strong><em>By Douglas Day Co-Founder, Datalab.</em></strong></p><p><strong><em>Connect on </em></strong><a href="/service/mailto:douglas@datalabsolutions.ai"><strong><em>Email</em></strong></a><strong><em> | </em></strong><a href="https://www.linkedin.com/in/douglasday1/"><strong><em>LinkedIn</em></strong></a><strong><em> | </em></strong><a href="https://medium.com/@douglas_day"><strong><em>Medium</em></strong></a><strong><em> | </em></strong><a href="https://www.datalabsolutions.ai/"><strong><em>datalabsolutions.ai</em></strong></a></p><p>Every organisation has a decision it keeps deferring. The cost of deferring it never appears on a balance sheet, so it never feels urgent.</p><h3>The cost you don’t see</h3><p>Procrastination isn’t free. It just doesn’t invoice you. There’s no line item for the process that stayed manual, the report that took three weeks, or the insight that arrived after the window had closed. Those costs are real, and they compound.</p><p>Most organisations know this on some level. They still accept the same things year after year:</p><ul><li><strong>Inefficient processes</strong>, kept because “that’s how we’ve always done it”</li><li><strong>Poor data quality</strong>, tolerated because fixing it is nobody’s job</li><li><strong>Decentralised data</strong>, scattered across teams, spreadsheets and systems that don’t talk to each other</li></ul><p>Each is survivable on its own. Together, they quietly cap what your business can do.</p><h3>Why AI makes this more expensive</h3><p>In the past, indecision was merely costly. With AI, it’s dangerous, because the landscape is moving faster than any technology shift most leaders have lived through.</p><p>Consider the pace. ChatGPT launched in late 2022, and within two months it had reached an estimated 100 million users. In under four years, models went from struggling with basic reasoning to writing and debugging production code, analysing documents at scale, and working autonomously through multi-step tasks. Context windows grew from a few thousand tokens to over a million. What was impossible 18 months ago is now a standard feature.</p><p>An AI strategy written today may need revisiting in six months. A strategy that takes 12 months to approve is out of date before it starts.</p><h3>Prudence is not procrastination</h3><p>Let’s be fair to the sceptics. Security, compliance, hallucination risk and failed AI projects are all real, and any leader who raises them is doing their job. Caution is not the problem. What the caution produces is.</p><p>Two things decide that: how fast you move, and how much control you keep while you do. Put them side by side and four positions appear.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D6OU4rBHEGvkj4OF2DvojQ.png" /><figcaption><em>Caption: Control without movement isn’t prudence. It’s waiting.</em></figcaption></figure><p><strong>Bounded pilot (fast, controlled).</strong> Small scope, a clear owner and human review. It’s live in weeks and learning from day one. This is what prudence actually looks like.</p><p><strong>Waiting for certainty (slow, controlled).</strong> The perfect vendor, clean data and a complete policy, all before anything starts. It feels responsible because the controls are real. But nothing is running, so nothing is learned, and the certainty never arrives because the ground keeps moving. This is procrastination in prudence’s clothing.</p><p><strong>Shadow AI (fast, loose).</strong> Teams adopt tools on their own, with no data boundaries or review. It’s often what fills the gap when the official route is slow. It’s quick, and it’s exposed.</p><p><strong>Drift (slow, loose).</strong> No pilot and no policy, and nobody owns the decision, so it keeps slipping.</p><p>The way out of three of these four is the same: move into the top-right. A well-run pilot on a low-risk process, with human review and defined data boundaries, is the cautious option. A year of evaluation with nothing in production is the risky one, because you carry all the exposure of falling behind and none of the learning.</p><p>A well-run pilot on a low-risk process, with human review and defined data boundaries, is the cautious option. A year of evaluation with nothing in production is the risky one, because you’re carrying all the exposure of falling behind and none of the learning.</p><h3>The 12-month trap</h3><p>Here’s a pattern many of us have seen. An organisation decides it needs to “do something with AI.” It issues an RFI, then an RFP. Vendors present, committees form, evaluation criteria get debated, and security reviews stack up. Twelve months later, a platform is selected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9UEWNvwUufnn6UvBpE0cCA.png" /><figcaption><em>While one route is still choosing a tool, the other has spent a year learning with one in production. Durations are illustrative.</em></figcaption></figure><p>And you’re no closer to your goal.</p><p>Traditional procurement assumes a stable category with comparable features. AI isn’t one. The leading model, the pricing and the capabilities shift every few months, so the criteria you wrote in month one are obsolete by month six. The tool you chose was benchmarked against a landscape that no longer exists.</p><h3>The tool is replaceable. The learning is not.</h3><p>This is the part most evaluation processes miss. The real asset isn’t the platform you select. It’s what your organisation learns by using it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hTeAh1RWxx2o3AzK8BWjEg.png" /><figcaption><em>Both teams compound at the same rate once they begin. The gap is the year one of them spent evaluating. Illustrative, not measured data.</em></figcaption></figure><p>A team that has spent 12 months working with AI has built knowledge you can’t buy:</p><ul><li>How to prompt and structure work so the output is reliable</li><li>Which processes benefit and which don’t</li><li>Where their data falls short, and which gaps actually matter</li><li>How their people adopt new tools, and where they resist</li><li>What governance works in practice rather than on paper</li></ul><p>Models will be swapped, vendors will change and prices will fall. None of that resets the learning. When you finally select a platform after a year of evaluation, you’re not 12 months behind on technology. You’re 12 months behind on understanding, and that gap can’t be closed by buying something better.</p><h3>What your competitors are doing</h3><p>While you evaluated, someone else started. They picked something good enough, put it in front of real work, and learned from it. They found where it helped, where it failed, and what their data needed to support it. Each month of learning compounded into the next.</p><p>Whether their gain is 2x, 5x or 10x, the effect is the same. They have two options, and both hurt you:</p><ol><li><strong>Take the productivity gain</strong>: deliver more, faster, at lower cost, and win your customers.</li><li><strong>Take the efficiency gain</strong>: deliver the same output with a smaller team, and win on margin.</li></ol><p>Either way, the gap between you grows every quarter.</p><h3>What to do instead</h3><p>You don’t need a perfect strategy. You need a <em>moving</em> one.</p><ul><li><strong>Start learning now.</strong> Get hands-on. Your leadership team needs to understand what the technology can and can’t do before it can decide anything sensible about it.</li><li><strong>Pick a real process and run a real pilot.</strong> Choose one with measurable cost and a clear owner, and aim for weeks, not quarters.</li><li><strong>Keep commitments short and switchable.</strong> Favour time-boxed pilots and short contracts over a single big-bang selection, so you can change tools without starting over.</li><li><strong>Fix data as you go.</strong> Poor quality and decentralisation will surface fast. Treat them as the work, not an obstacle to it.</li><li><strong>Shorten your decision cycle.</strong> If your governance can’t approve a pilot in a month, that’s the first thing to fix.</li><li><strong>Expect to change course.</strong> Choosing wrong and adjusting is cheaper than not choosing at all.</li></ul><h3>The bottom line</h3><p>The question isn’t whether AI is worth the investment. It’s what you’re already paying for not having started.</p><p>Every month of delay is a month of learning your competitors have and you don’t. That cost is invisible, and it’s already on your books.</p><h3>Lets connect</h3><p><strong>Email:</strong> <a href="/service/mailto:contact@datalabsolutions.ai">contact@datalabsolutions.ai</a><br><strong>Website:</strong> <a href="https://www.datalabsolutions.ai/">https://www.datalabsolutions.ai</a><br><strong>LinkedIn:</strong> <a href="https://www.linkedin.com/company/datalab-solutions">https://www.linkedin.com/company/datalab-solutions</a></p><p><em>Douglas Day is the co-founder of Datalab, a South African data and AI consultancy and Snowflake Elite Partner, the first specialist firm in the country to achieve that status. Datalab founded the Snowflake South Africa User Group, now a community of 850+ members. Douglas’s co-founder holds the distinction of being the first Snowflake Data Superhero in Africa.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=118a91d4f170" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datalabsolutions/the-opportunity-cost-of-ai-procrastination-118a91d4f170">The Opportunity Cost of AI Procrastination</a> was originally published in <a href="https://medium.com/datalabsolutions">datalab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SAP Business Data Cloud and Snowflake: Reimagining the Intelligent Enterprise]]></title>
            <link>https://medium.com/datalabsolutions/sap-business-data-cloud-and-snowflake-reimagining-the-intelligent-enterprise-9aff1f7aaf7d?source=rss-f5ad440e2a9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9aff1f7aaf7d</guid>
            <category><![CDATA[snowflake-data-cloud]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[snowflake]]></category>
            <dc:creator><![CDATA[Douglas Day]]></dc:creator>
            <pubDate>Thu, 23 Jul 2026 09:14:51 GMT</pubDate>
            <atom:updated>2026-07-26T08:11:05.312Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yQSDPck9XC1BfPDjSBoWFw.png" /></figure><p><strong><em>By Douglas Day Co-Founder, Datalab.</em></strong></p><p><strong><em>Connect on </em></strong><a href="/service/mailto:douglas@datalabsolutions.ai"><strong><em>Email</em></strong></a><strong><em> | </em></strong><a href="https://www.linkedin.com/in/douglasday1/"><strong><em>LinkedIn</em></strong></a><strong><em> | </em></strong><a href="https://medium.com/@douglas_day"><strong><em>Medium</em></strong></a><strong><em> | </em></strong><a href="https://www.datalabsolutions.ai/"><strong><em>datalabsolutions.ai</em></strong></a></p><p><em>How SAP Business Data Cloud and Snowflake are changing enterprise architecture by replacing complex integration with real-time intelligence.</em></p><h3>The End of the ETL Era</h3><p>For years, enterprise data strategies have centred on one fundamental challenge: how do you unlock the value of operational data without creating an increasingly complex web of integrations, data warehouses and reporting platforms?</p><p>For organisations running SAP, this challenge is particularly familiar. SAP systems are exceptionally good at running the business, processing orders, managing finance, controlling manufacturing and orchestrating supply chains, but turning that operational data into timely business insight has traditionally required significant engineering effort. Data needed to be extracted, transformed, replicated and loaded into separate analytical platforms before the business could begin asking meaningful questions.</p><p>This approach worked, but it came at a cost. Every new integration introduced another pipeline to maintain, another copy of the data to govern, and another point of failure to monitor. Over time, many organisations found themselves investing more effort in moving data than in using it.</p><p>The emergence of SAP Business Data Cloud (BDC) represents a significant shift in thinking. Rather than viewing SAP simply as an ERP system, Business Data Cloud positions SAP as a trusted provider of governed business data that can be securely consumed across the wider enterprise. Instead of continually replicating information into multiple downstream systems, organisations can expose trusted business data products that retain the context and business semantics already defined within SAP.</p><p>This seemingly simple change has profound implications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/0*XNPYhaDMXZI2Aipk.png" /><figcaption>SAP Business Data Cloud (BDC)</figcaption></figure><p>Rather than building yet another warehouse containing copies of SAP data, organisations can begin treating data as a shared enterprise asset. Finance, procurement, manufacturing, sales and supply chain data become immediately more accessible while remaining governed by the business rules that already exist inside SAP. The result is less duplication, stronger governance and a significant reduction in the engineering effort traditionally associated with enterprise reporting.</p><p>Where the opportunity becomes truly compelling is when Business Data Cloud is combined with Snowflake.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/0*S-7ND98S7emtVQ0v.png" /><figcaption>SAP Business Data Cloud and Snowflake Zero-copy Integration</figcaption></figure><p>Few organisations operate exclusively within SAP. Customer data may reside in Salesforce, workforce information in Workday, service operations in ServiceNow, manufacturing telemetry in IoT platforms, and customer behaviour across digital applications. The real business questions almost always span multiple systems.</p><p>How profitable are customers once warranty claims are considered? Which supply chain disruptions are beginning to impact customer service? How does workforce availability influence manufacturing throughput? Which marketing campaigns are driving profitable sales rather than simply increasing revenue?</p><p>These questions cannot be answered by SAP alone.</p><p>Snowflake provides the connective tissue that brings these disparate data sources together. Through open data sharing, support for Apache Iceberg, native connectors and an AI-native architecture, Snowflake allows organisations to combine SAP business data with virtually any other enterprise dataset without creating the traditional maze of point-to-point integrations.</p><p>This is where the conversation moves beyond cloud migration and towards business transformation.</p><p>One of the most significant trends shaping modern data platforms is the move towards zero data movement architectures. Historically, organisations copied data repeatedly as it travelled from operational systems into staging areas, enterprise data warehouses, reporting databases and finally business intelligence tools. Every copy increased storage costs, introduced latency and created another version of the truth that required governance.</p><p>Today’s architecture looks fundamentally different. Secure sharing technologies and open data ecosystems allow analytics to happen much closer to where the data already resides. Rather than building elaborate plumbing to transport information around the organisation, businesses can focus on extracting value from it. Engineering teams spend less time maintaining pipelines and more time delivering insights that improve business performance.</p><p>For executives, this translates directly into faster decision-making. Instead of waiting for overnight batch processes or weekly reporting cycles, finance teams can monitor operational performance as transactions occur. Supply chain managers gain immediate visibility into disruptions before they impact customers. Manufacturing teams can detect quality issues earlier, while sales leaders can understand changing customer behaviour as it unfolds rather than after the opportunity has passed.</p><p>The benefits extend well beyond reporting. Artificial intelligence becomes substantially more valuable when it can access trusted, governed business data in real time. Large language models, intelligent agents and predictive analytics all depend on accurate context. Combining SAP Business Data Cloud with Snowflake provides precisely that foundation, enabling organisations to build AI applications that understand not only raw data but also the business meaning behind it.</p><p>This dramatically shortens both time to value and time to insight.</p><p>Historically, major analytics initiatives often required months of integration work before the first dashboard could be delivered. Modern cloud architectures reduce that effort considerably. With less time spent building infrastructure and maintaining integrations, organisations can focus their investment on solving business problems. New use cases can be delivered in weeks rather than months, allowing the business to realise value much earlier in its transformation journey.</p><p>Equally important is the reduction in operational complexity. Every integration that is eliminated is one less process to monitor, one less reconciliation exercise to perform and one less security boundary to manage. As enterprise architectures become simpler, they also become more resilient, easier to govern and less expensive to operate.</p><p>Ultimately, the migration to SAP Business Data Cloud should not be viewed as another infrastructure upgrade. It represents an opportunity to rethink how enterprise data is managed, shared and consumed. When paired with Snowflake, organisations move beyond traditional data warehousing towards a modern, intelligent data ecosystem where operational systems, analytics and AI work together seamlessly.</p><p>The organisations that succeed over the next decade will not necessarily be those with the most data. They will be those that can transform operational events into business decisions faster than their competitors. By reducing unnecessary data movement, simplifying architecture and enabling real-time access to trusted enterprise information, SAP Business Data Cloud and Snowflake provide a compelling foundation for exactly that future.</p><h3>Ready to Reimagine Your Enterprise Data Strategy?</h3><p>Whether you’re planning your SAP Business Data Cloud journey, modernising your analytics platform, or exploring how AI can unlock greater value from your enterprise data, the architecture decisions you make today will shape your business for years to come.</p><p>At <a href="https://www.datalabsolutions.ai/"><strong>Datalab</strong></a>, we help organisations bridge the gap between strategy and execution. From SAP and Snowflake architecture to modern data platforms, AI, real-time analytics, and governed data sharing, we partner with businesses to deliver practical solutions that accelerate <strong>time to value</strong>, reduce complexity, and enable better decision-making.</p><p>If you’re ready to move beyond traditional data integration and build a truly intelligent enterprise, we’d love to start the conversation.</p><p><strong>Let’s explore what’s possible.</strong></p><p><strong>Email:</strong> <a href="/service/mailto:contact@datalabsolutions.ai">contact@datalabsolutions.ai</a><br><strong>Website:</strong> <a href="https://www.datalabsolutions.ai/">https://www.datalabsolutions.ai</a><br><strong>LinkedIn:</strong> <a href="https://www.linkedin.com/company/datalab-solutions">https://www.linkedin.com/company/datalab-solutions</a></p><p><strong>Because the future isn’t about moving more data, it’s about creating more value from it.</strong></p><p><em>Douglas Day is the co-founder of Datalab, a South African data and AI consultancy and Snowflake Elite Partner, the first specialist firm in the country to achieve that status. Datalab founded the Snowflake South Africa User Group, now a community of 750+ members. Douglas’s co-founder holds the distinction of being the first Snowflake Data Superhero in Africa.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9aff1f7aaf7d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datalabsolutions/sap-business-data-cloud-and-snowflake-reimagining-the-intelligent-enterprise-9aff1f7aaf7d">SAP Business Data Cloud and Snowflake: Reimagining the Intelligent Enterprise</a> was originally published in <a href="https://medium.com/datalabsolutions">datalab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Architecting the Agentic Enterprise: Key Takeaways from Snowflake Summit 2026]]></title>
            <link>https://medium.com/datalabsolutions/architecting-the-agentic-enterprise-key-takeaways-from-snowflake-summit-2026-a34f12a4a523?source=rss-f5ad440e2a9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a34f12a4a523</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[data-superhero]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[snowflake]]></category>
            <dc:creator><![CDATA[Douglas Day]]></dc:creator>
            <pubDate>Sun, 14 Jun 2026 16:39:06 GMT</pubDate>
            <atom:updated>2026-06-14T16:39:37.093Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aZxFj-HGdLr-kp20P5quKA.png" /></figure><p>Let’s be honest: most organisations are still figuring out AI.</p><p>While there has been plenty of experimentation with chatbots, copilots, document summarisation, and code generation, many businesses are only now starting to understand what AI means for their architecture, operating models, governance frameworks, and development practices. New terminology seems to appear every month, from Retrieval-Augmented Generation (RAG) and Model Context Protocols (MCPs) to agents, agentic workflows, skills, and AI-powered automation.</p><p>What Snowflake Summit 2026 demonstrated is that the conversation is rapidly moving beyond AI assistants towards the concept of the <strong>Agentic Enterprise, </strong>a world where AI doesn’t simply answer questions but actively participates in business processes, collaborates with employees, interacts with enterprise systems, and helps drive decisions.</p><p>However, for this vision to become reality, organisations need more than just AI models. Agents require access to trusted, governed, and real-time data. They need to work seamlessly across applications and platforms without complex integration projects. They need the ability to understand business context, operate within governance boundaries, and make decisions using current information rather than yesterday’s batch loads.</p><p>Several key themes emerged throughout Summit 2026. Data velocity is becoming increasingly important as organisations look to support real-time decision-making through streaming architectures. Interoperability is replacing traditional integration approaches, with open standards such as Apache Iceberg removing friction between platforms and enabling data to be shared and accessed across different technologies. Agentic development practices are beginning to emerge, bringing together local development environments, cloud execution, enterprise data, AI agents, skills, and MCP-connected tools into a single development experience. At the same time, governance is evolving beyond data protection to encompass agent identity, accountability, security, and control.</p><p>The question for organisations is no longer whether AI is coming, but whether their data platforms, governance models, architectures, and teams are ready for what’s next.</p><p>Snowflake Summit 2026 provided a glimpse into how Snowflake intends to address these challenges and build the foundation for the Agentic Enterprise.</p><h3>1. The Rise of the Agentic Enterprise</h3><p>Perhaps the most significant shift at Summit was the evolution of AI from assistant to worker.</p><p>Over the past two years, most organisations have focused on AI assistants. Employees ask questions, generate content, summarise information, and receive recommendations. While valuable, these use cases still require humans to interpret the results and take action.</p><p>The next phase is fundamentally different.</p><p>Agentic systems are designed to execute tasks, orchestrate workflows, collaborate with employees, and interact directly with enterprise systems. Rather than simply supporting work, agents become participants in getting work done.</p><p>This shift introduces new opportunities and new challenges. Organisations will need to think about how business processes are designed, how human and AI workers collaborate, how institutional knowledge is captured as reusable skills, and how governance extends beyond data access to autonomous decision making.</p><p>Many organisations are still learning the terminology and experimenting with the technology. However, the direction of travel is becoming increasingly clear. The future workforce is likely to consist of both humans and AI agents working together.</p><h3>Key announcements</h3><ul><li>Snowflake CoWork (formerly Intelligence)</li><li>Multi-agent orchestration</li><li>User Skills for reusable business capabilities</li><li>Agent Automations</li><li>Cortex Sense enterprise memory</li><li>Natoma acquisition</li><li>Personal enterprise agents for knowledge workers</li></ul><h3>2. Data Velocity: The Fuel for Agentic Decision Making</h3><p>One of the strongest messages from Summit was the growing importance of data velocity.</p><p>Traditional analytics platforms were designed around historical reporting. Daily refreshes, overnight processing, and scheduled reporting cycles were often sufficient for business decision making.</p><p>Agentic systems operate differently.</p><p>An AI agent managing inventory, monitoring fraud, responding to customer interactions, optimising logistics, or coordinating operational workflows requires current information. Waiting hours or days for refreshed data introduces delays that reduce effectiveness and limit autonomy.</p><p>As organisations deploy more intelligent systems, streaming data becomes increasingly important. The ability to process events as they happen enables agents to make more informed decisions and respond to changing business conditions faster.</p><p>This represents a significant architectural shift. Many organisations have invested heavily in data warehouses and analytics platforms but have not yet fully embraced streaming architectures. Summit 2026 suggests that streaming is becoming a foundational capability for supporting agentic workloads.</p><p>Data velocity is no longer simply a technical concern. It is becoming a business capability.</p><h3>Key announcements</h3><ul><li>Snowflake Data Stream, fully managed Kafka-compatible streaming</li><li>Postgres Data Mirroring</li><li>Adaptive Compute</li><li>Interactive Compiler</li><li>Unistore enhancements</li><li>Hybrid Tables General Availability</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jLBfVMyCvieFRG-dkCU83w.png" /></figure><h3>3. Interoperability is Replacing Integration</h3><p>For decades, enterprise data architecture has largely been built around integration.</p><p>Data is extracted, transformed, copied, replicated, and moved between systems. While this approach has enabled analytics and reporting, it has also introduced significant complexity, cost, and governance challenges.</p><p>Every copy creates friction.</p><p>It increases storage costs, creates reconciliation challenges, introduces latency, and complicates security and governance.</p><p>One of the most important strategic themes at Summit was the move towards interoperability.</p><p>Instead of moving data between platforms, Snowflake is increasingly focused on allowing different technologies to operate against the same governed datasets. This approach reduces duplication while providing organisations with greater flexibility in selecting technologies and tools.</p><p>Apache Iceberg has become a central component of this vision.</p><p>Open table formats allow organisations to avoid locking data into a single processing engine while still maintaining governance, performance, and consistency. As AI, analytics, operational systems, and external engines increasingly need access to the same information, interoperability becomes critical.</p><p>In many ways, interoperability may prove to be just as important as AI itself. Organisations cannot create intelligent systems if information remains trapped within silos.</p><h3>Key announcements</h3><ul><li>Snowflake Managed Iceberg Storage GA</li><li>Apache Iceberg v3 support</li><li>Bi-directional external engine writes</li><li>Open Sharing enhancements</li><li>Cross-platform data access</li><li>Zero-copy sharing capabilities</li></ul><h3>4. MCPs and the Connected Enterprise</h3><p>AI agents create the most value when they can take action.</p><p>Answering questions is useful.</p><p>Executing tasks is transformational.</p><p>One of the most interesting themes from Summit was Snowflake’s commitment to the Model Context Protocol (MCP) ecosystem. MCPs are rapidly emerging as a standard mechanism for connecting agents to enterprise applications, services, APIs, and tools.</p><p>Historically, every integration required custom development. APIs simplified this challenge by standardising how applications communicate. MCPs have the potential to do the same thing for AI agents.</p><p>This matters because organisations operate across hundreds of systems. CRM platforms, ticketing systems, collaboration tools, development environments, finance applications, and operational platforms all contain information and business processes.</p><p>For agents to become truly useful, they need to interact with these systems.</p><p>MCPs allow agents to move beyond simply retrieving information and into executing business actions. Creating tickets, updating customer records, triggering workflows, sending communications, and coordinating activities all become possible through a common integration framework.</p><p>Many organisations are still exploring how MCPs fit into their architecture, but it is increasingly clear that they will play an important role in enabling enterprise AI adoption.</p><h3>Key announcements</h3><ul><li>MCP support within CoWork</li><li>MCP support within CoCo</li><li>100+ enterprise MCP integrations</li><li>Salesforce, Jira, Slack, ServiceNow, Gmail connectivity</li></ul><h3>5. Agentic Development Practices are Emerging</h3><p>Software development is changing rapidly.</p><p>Developers are increasingly working alongside AI systems that can generate code, analyse repositories, execute commands, investigate issues, and automate repetitive tasks.</p><p>This shift is beginning to influence how development environments themselves are designed.</p><p>Historically, developers worked within local environments that were largely disconnected from enterprise data platforms and governance frameworks. The emergence of cloud-hosted agents and AI-native development tools is changing this model.</p><p>Development workflows are becoming increasingly integrated with enterprise data, cloud infrastructure, documentation repositories, and operational systems.</p><p>This creates opportunities to accelerate delivery while improving consistency and governance.</p><p>More importantly, it introduces entirely new design patterns.</p><p>Organisations are beginning to think about designing systems for agents, creating reusable skills, orchestrating specialised agents, and combining human expertise with autonomous execution.</p><p>The software development lifecycle itself is becoming increasingly agentic.</p><h3>Key announcements</h3><ul><li>CoCo Desktop</li><li>Cloud Agents</li></ul><h3>6. Governance: The Foundation of the Agentic Enterprise</h3><p>If there was one theme that appeared across almost every announcement, it was governance.</p><p>As organisations move towards agentic systems, governance must evolve beyond simply controlling access to data.</p><p>Businesses now need to govern what agents can see, understand, decide, and do.</p><p>This introduces new requirements around accountability, transparency, auditability, security, and semantic consistency.</p><p>Without governance, organisations will struggle to move AI beyond experimentation.</p><p>Trust becomes the critical factor.</p><p>Business leaders need confidence that agents are operating against trusted information. Security teams need visibility into actions performed by autonomous systems. Data teams need assurance that business definitions remain consistent regardless of which application, dashboard, model, or agent is accessing information.</p><p>Governance is increasingly becoming the foundation that enables AI adoption rather than a constraint that slows it down.</p><p>The organisations that establish strong governance frameworks today will be significantly better positioned to scale agentic systems in the future.</p><h3>Key announcements</h3><ul><li>Horizon Context</li><li>Semantic governance layer</li><li>Agent Identity</li><li>Prompt Injection Protection</li><li>Intent-Based Governance</li><li>Agent auditing and lineage</li><li>Context-aware security controls</li><li>Enterprise-wide semantic consistency</li></ul><h3>Final Thoughts</h3><p>Snowflake Summit 2026 was not simply about introducing new AI features.</p><p>It showcased the building blocks required for organisations to transition from experimenting with AI to operating as an Agentic Enterprise.</p><p>Across all six themes, a common pattern emerged.</p><p>Data needs to move faster. Systems need to work together more easily. Agents need access to business processes and enterprise applications. Development practices need to evolve. Governance needs to extend beyond data and into autonomous decision making.</p><p>Perhaps most importantly, interoperability is becoming a strategic priority. Open technologies such as Apache Iceberg, MCPs, and open sharing frameworks are reducing friction between platforms and creating a more connected technology ecosystem.</p><p>The organisations that gain the greatest advantage from AI over the next decade will not necessarily be those with the largest models or the most sophisticated prompts.</p><p>They will be the organisations that build the data platforms, governance frameworks, operating models, and development practices required to support a workforce that increasingly includes both humans and AI agents.</p><p>That, more than anything else, was the message from Snowflake Summit 2026.</p><h3>Next Steps</h3><ul><li>Learn more about <a href="https://reg.snowflake.com/flow/snowflake/summit26/digitalreg/page/main">Snowflake Summit</a></li><li>Sign up for a <a href="https://bit.ly/SnowflakeTrial">Snowflake Trial</a></li></ul><p>If you found this useful, follow me on <a href="https://bit.ly/LinkedIn-DouglasDay">LinkedIn</a> for more on the Snowflake AI Data Cloud.</p><p>#AIDataCloud #Snowflake #AgenticEnterprise</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a34f12a4a523" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datalabsolutions/architecting-the-agentic-enterprise-key-takeaways-from-snowflake-summit-2026-a34f12a4a523">Architecting the Agentic Enterprise: Key Takeaways from Snowflake Summit 2026</a> was originally published in <a href="https://medium.com/datalabsolutions">datalab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Datalab Became a Snowflake’s Elite Partners in Four Years]]></title>
            <link>https://medium.com/datalabsolutions/how-datalab-became-a-snowflakes-elite-partner-in-four-years-a7e525a4d72f?source=rss-f5ad440e2a9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7e525a4d72f</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[snowflake-computing]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[snowflake-data-cloud]]></category>
            <dc:creator><![CDATA[Douglas Day]]></dc:creator>
            <pubDate>Tue, 26 May 2026 14:56:00 GMT</pubDate>
            <atom:updated>2026-05-26T14:56:00.568Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0IveMB8558aDYy9CV10-tw.png" /><figcaption>How we became a Snowflake Elite Partner</figcaption></figure><p><strong><em>By Douglas Day Co-Founder, Datalab.</em></strong></p><p><strong><em>Connect on </em></strong><a href="/service/mailto:douglas@datalabsolutions.ai"><strong><em>Email</em></strong></a><strong><em> | </em></strong><a href="https://www.linkedin.com/in/douglasday1/"><strong><em>LinkedIn</em></strong></a><strong><em> | </em></strong><a href="https://medium.com/@douglas_day"><strong><em>Medium</em></strong></a><strong><em> | </em></strong><a href="https://www.datalabsolutions.ai/"><strong><em>datalabsolutions.ai</em></strong></a></p><p><em>A founder story about a deliberate bet, an elastic band permanently stretched, and what Elite status actually means when you’ve earned it the hard way.</em></p><p>Most data consultancies don’t fail because they pick the wrong technology. They fail because they never stop building infrastructure long enough to build something that actually matters.</p><p>That was the quiet tension inside Datalab four years ago, not something we talked about openly, but something visible in our timelines, in our delivery cycles, in the conversations that kept circling back to the same frustration: too much time spent on plumbing. Not enough on insight.</p><p>What happened next is the kind of story that looks inevitable in hindsight. It wasn’t.</p><h3>The Pivot</h3><p>It was post-COVID, and the world was reconfiguring. We had built Datalab over 11 years into a respected South African data consultancy. The traditional on-premise stack had served us well, the kind of robust but rigid infrastructure that defined a generation of BI consulting. But the constraints were becoming impossible to ignore.</p><p>Fixed compute. Fixed capacity. Upgrade cycles that consumed months. Clients waiting on infrastructure decisions before analysts could do any actual analysis. We were, quietly, spending our best people on the wrong problems.</p><blockquote><strong>We were spending our best people on infrastructure instead of insights. That had to change.</strong></blockquote><p>So we evaluate, not casually, but systematically. Technology stacks, support models, training ecosystems, regional strategy. We were looking for something that could carry a genuine business transformation, not just a technology upgrade.</p><p>Then we signed up for a <a href="https://www.snowflake.com/">Snowflake</a> trial.</p><p>What we found surprised us. The separation of storage and compute. Zero-copy cloning. The micro-partition architecture. Data sharing as a native capability. The speed to get from zero to running, not in weeks, but in hours. It wasn’t a hard sell. The product made the argument for itself.</p><blockquote><strong>We were taken aback by the ease of use, the underlying architecture, the capabilities. It just worked.</strong></blockquote><p>The decision was made. We were going cloud-first, and Snowflake was the platform we were going to build everything on.</p><h3>The Early Bet</h3><p>Here is what made the bet interesting, and genuinely uncertain at the time: Snowflake was only just beginning its engagement in South Africa.</p><p>In the US and Europe, the growth story was already written. In South Africa and Africa more broadly, it was still a blank page. We weren’t just adopting a technology, we were helping to pioneer a market.</p><p>The advantage of being an early mover is speed and positioning. The disadvantage is that you are, for a while, building into a void. No established client appetite. No local proof points. No ecosystem of peers to benchmark against. Just conviction, and the belief that what was working everywhere else would eventually work here too.</p><p>The migration itself was less painful than we expected. Snowflake’s native SQL foundation meant that moving from our traditional tooling wasn’t a re-education, it was a translation. The real tension lay elsewhere.</p><blockquote><strong>The hardest part was maintaining our delivery commitments on existing work while onboarding new clients into Snowflake. We were building the plane while flying it.</strong></blockquote><p>Small team. Growing demand. The elastic band was already starting to stretch.</p><h3>The Build, and the Thread of Being First</h3><p>There is a thread running through our story that is easy to miss if you’re only looking at the commercial milestones. It is the thread of being first.</p><p>First locally founded Elite partner in South Africa. First to launch the Snowflake South Africa User Group. And in a recognition that I’m genuinely proud of becoming the first Snowflake Data Superhero in the region.</p><p>The SuperHero designation is not handed out for tenure or revenue. It is Snowflake’s recognition of extraordinary contribution to community, the kind of work that doesn’t appear on a balance sheet but shapes an entire ecosystem. Delivering AI labs, running online and in-person technical training, creating learning materials, writing, blogging, webinars. The consistent, compounding work of helping other people get smarter about something you believe in.</p><p>None of it would have been possible without <a href="https://www.linkedin.com/in/rezaduplooy/">Reza du Plooy</a>, my business partner, who did the work that makes everything actually happen, finding speakers, coordinating venues, managing the logistics, ordering the food and drink. The invisible infrastructure behind every successful event. It is easy to stand at the front of a room. It is harder, and more valuable, to be the person who made sure the room was ready.</p><blockquote><strong>We value the opportunity to do these things. It’s not a cost. It’s our why.</strong></blockquote><p>Rather than waiting for the Snowflake ecosystem to arrive in South Africa, we helped build it. Two years ago, we launched the <a href="https://usergroups.snowflake.com/south-africa/">Snowflake South Africa User Group</a> and continue to run monthly events from February through November. Customer stories, technical deep dives and AI labs. The community has grown to over 600 members.</p><p>This was never about marketing. It was driven by a genuine conviction to give something back, to bring people together, to create a shared ecosystem where everyone could learn. The kind of community building that doesn’t have a business case, because the motivation was never commercial. It was simply the right thing to do.</p><blockquote><strong>We decided early on that we wanted to invest our time and energy into helping to build the ecosystem. Not just be in it.</strong></blockquote><p>In parallel, we were building our technical stack outward from Snowflake. Matillion for data integration. dbt for modelling. Sigma and ThoughtSpot for analytics. Power BI where clients needed it. Not a random collection of badges, a curated, end-to-end capability designed to deliver on the full data promise, from raw ingestion to boardroom insight.</p><p>The Snowflake partnership itself became a genuine engine of growth. Not the badge, the relationship. Joint customer engagements. Co-selling. Technical investment. The kind of partnership where both sides are genuinely building something together, not just sharing a logo.</p><h3>What We Bring That Others Don’t</h3><p>Datalab is, by design, a specialist. In a market where larger consultancies compete on headcount and brand recognition, we compete on something harder to scale and harder to replicate, depth and personalisation.</p><p>Fifteen years of delivery pedigree. Development standards refined through hundreds of client engagements. A team that includes industrial engineers alongside data and AI engineers, people who bring domain knowledge and business fluency, not just technical capability.</p><p>And a model where every client deals directly with senior leadership. There is no junior team hiding behind a senior pitch. What you see is what you get.</p><blockquote><strong>Small team. Big impact. Every client is highly valued. You deal directly with people who are experts in their field.</strong></blockquote><p>In South Africa, only one other consultancy has achieved Elite partner status with Snowflake. They have a different model, larger, built differently. We are the first local founded consultancy in the country to get there. That distinction matters. It says something about what Elite actually measures, and it isn’t headcount.</p><h3>What Elite Actually Means</h3><p>Ask for the marketing answer and you’ll get something about partner tiers and revenue thresholds. The real answer is different.</p><blockquote><strong>Elite status isn’t the outcome. It’s the evidence. Evidence that we’ve been delivering value, acquiring the right skills, building the right relationships. Our client success is our barometer.</strong></blockquote><p>Elite, in this framing, is not a destination. It’s a mirror. It reflects back the sum of the choices we made over four years: the community built, the certifications earned, the delivery standards maintained, the clients who came back.</p><p>The goal was never the badge. The goal was to assemble all the pieces, great sales capability, great technical depth, great support, and if we did that well enough, Elite would follow. It did.</p><p>But as Winston Churchill reminds us:</p><blockquote><strong>success is not final.</strong></blockquote><h3>The Invisible Weight</h3><p>What the announcement doesn’t show, and what doesn’t make it into the LinkedIn posts, is what it actually costs to build something like this.</p><p>There is a particular kind of pressure that comes with a fast-growing consultancy. It doesn’t ease as you scale, it compounds. Every new client, every new capability, every new hire raises the standard that has to be met on every existing engagement. The elastic band stretches. Just as you catch up, it stretches again.</p><blockquote><strong>It’s like an elastic band, constantly stretched. Just as you catch up and relax, you’re stretched again.</strong></blockquote><p>What sustains it is not the strategy. It’s the people. The team whose enthusiasm, energy, and commitment to delivery is the real engine behind everything else. And the clients who trust us enough to come back, and to let the story we sold them become their new reality.</p><p>That moment, when a client sees the thing, they were promised actually working, actually delivering, actually changing how their business makes decisions, that is the barometer. Not the badge.</p><h3>The Next Four Years</h3><p>Artificial intelligence is doing to the data consultancy what Snowflake did to the data warehouse. The architecture is shifting again. The question of what it means to deliver value is being rewritten in real time.</p><p>Snowflake Cortex. Agentic AI. Copilot-assisted development. The speed of delivery is changing, which means the model of delivery has to change with it. We are not vibe coding our way through it, we are formalising agentic development practices, building the kind of rigour around AI-assisted engineering that our clients will eventually need at enterprise scale.</p><p>For our clients, the challenge is different. Boards are asking about AI. Most organisations don’t yet have a clear picture of what’s actually possible versus what’s just noise. Our role, as it has always been, is to help them see clearly: from proof of concept to production, from AI data engineering to full agentic implementations.</p><blockquote><strong>We’re helping customers understand the technologies, the use cases, and the path to delivery. The art of the possible, made real.</strong></blockquote><p>What the next four years look like, precisely, nobody knows. The external environment is changing faster than any strategy can fully anticipate. But that uncertainty, the pressure to be better, to deliver more, to keep up with monthly Snowflake releases and weekly shifts in the AI landscape, is not a burden.</p><p>It’s what gets us out of bed in the morning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iztDxN49O1oUkhL2Yt1gYQ.png" /><figcaption>Your Local Snowflake Elite Partner</figcaption></figure><h3>For the Consultancies Still Building</h3><p>If there is advice worth extracting from our journey for specialist consultancies navigating the same path, it would be this:</p><p>Understand why you are doing this in the first place. Have the right motivations. The rewards only come after significant investment, human and financial, and it is worth being honest about what that actually means.</p><p>The financial cost is the visible one. The human cost is harder to talk about. Building something like this requires your time, and time is not a commodity you can get back. It is evenings. It is weekends. It is moments with family and friends that you are not fully present for, because part of your mind is always somewhere else. The people closest to you carry a share of this journey whether they signed up for it or not.</p><p>What I have found, though, is that the sacrifice looks different in hindsight. When the people who gave up time with you get to see what that time built, when they witness you achieve what you set out to achieve, there is a shared pride in that. The goal becomes theirs too, in some way.</p><blockquote><strong>The balance between ambition and presence is something you need to be conscious and mindful of. It doesn’t manage itself.</strong></blockquote><p>That balance is not something you solve once. It is something you return to, recalibrate, and recommit to throughout the journey. The early years will not validate the bet quickly enough for comfort. You have to hold the conviction longer than feels reasonable, and you have to make sure the people around you can hold it with you.</p><p>Learn to embrace the unknown. Experiment. Pivot when the market tells you something. Find great people to work with, clients who share your vision, and partners you can genuinely trust.</p><p>And then invest in the ecosystem, not because it will return a measurable ROI in the next quarter, but because the businesses that help build markets earn a place in them that others simply cannot buy.</p><p>We know this, because we lived it.</p><p><em>Douglas Day is the co-founder of Datalab, a South African data and AI consultancy and Snowflake Elite Partner, the first specialist firm in the country to achieve that status. Datalab founded the Snowflake South Africa User Group, now a community of 600+ members. Douglas’s co-founder holds the distinction of being the first Snowflake Data SuperHero in Africa.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jd0OxlFI7RAJR7To5c3vMQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7e525a4d72f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datalabsolutions/how-datalab-became-a-snowflakes-elite-partner-in-four-years-a7e525a4d72f">How Datalab Became a Snowflake’s Elite Partners in Four Years</a> was originally published in <a href="https://medium.com/datalabsolutions">datalab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake AI SQL User Guide: AI_EMBED]]></title>
            <link>https://medium.com/snowflake/snowflake-ai-sql-user-guide-ai-embed-b0b2eccc0f75?source=rss-f5ad440e2a9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0b2eccc0f75</guid>
            <category><![CDATA[data-superhero]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[snowflake-data-cloud]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[snowflake]]></category>
            <dc:creator><![CDATA[Douglas Day]]></dc:creator>
            <pubDate>Fri, 24 Apr 2026 19:01:01 GMT</pubDate>
            <atom:updated>2026-04-24T19:01:01.640Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5RwC_wz0QSrN7B7UF_s01w.png" /></figure><h3><strong>What is AI_EMBED?</strong></h3><p>AI_EMBED is a Snowflake Cortex AI function that creates a vector embedding — a high-dimensional numerical representation — from text (or images). Texts with similar meanings produce vectors that are close together in vector space, which is the foundation for semantic search, clustering, classification, and recommendation systems — no external services or ML pipelines required.</p><p>Listen to a quick technical breakdown of the Snowflake AI_EMBED function. In this short 5-minute audio overview, we explore what the function does, how its parameters work, and when you would use it in real-world Snowflake workloads.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttps%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F2300688593%26show_artwork%3Dtrue&amp;display_name=SoundCloud&amp;url=https%3A%2F%2Fsoundcloud.com%2Fdouglasday1%2Fai_embed%3Futm_source%3Dclipboard%26utm_medium%3Dtext%26utm_campaign%3Dsocial_sharing%26si%3D5261da306ca943d692a315adfc051ea4&amp;image=https%3A%2F%2Fi1.sndcdn.com%2Fartworks-Aj2XWGLveVgVXNkc-10o1dQ-t500x500.jpg&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/d3662e15c137625ce3b4948734cbd135/href">https://medium.com/media/d3662e15c137625ce3b4948734cbd135/href</a></iframe><p><strong>What we’ll cover:</strong></p><ol><li><strong>Single Embedding</strong> — Generate a vector for “hello world”</li><li><strong>Inspect Dimensions</strong> — Check the vector size with VECTOR_DIMENSION</li><li><strong>Column Embeddings</strong> — Embed every row in a table</li><li><strong>Cosine Similarity Search</strong> — Rank rows against a natural language query</li><li><strong>L2 Distance Search</strong> — Nearest neighbour by Euclidean distance</li><li><strong>Store Embeddings</strong> — Persist vectors in a table for efficient reuse</li><li><strong>Query Stored Embeddings</strong> — Embed only the query, not the whole table</li><li><strong>Compare Models</strong> — 1024 vs 768 dimension models side by side</li><li><strong>Similarity Matrix</strong> — Cross-row comparison within categories</li></ol><p><strong>Key takeaway:</strong> AI_EMBED returns a VECTOR type. On its own it’s just numbers — the power comes when you combine it with vector functions like VECTOR_COSINE_SIMILARITY and VECTOR_L2_DISTANCE. The critical performance pattern is to pre-compute and store embeddings, then embed only the query at search time.</p><h3>Setup</h3><p>Before using AI_SIMILARITY, we create a temporary table with short descriptions across three categories — fruit, vehicles, and tech — to demonstrate the different comparison patterns.</p><h4>Create Database and Schemas</h4><pre>USE ROLE ACCOUNTADMIN;<br>CREATE DATABASE IF NOT EXISTS DEMO_AI;<br>CREATE SCHEMA IF NOT EXISTS DEMO_AI.RAW;</pre><h4>Create Warehouse</h4><pre>CREATE WAREHOUSE IF NOT EXISTS SUPERHERO_GEN1_XS_WH<br>    WAREHOUSE_SIZE = &#39;XSMALL&#39;<br>    AUTO_SUSPEND = 60<br>    AUTO_RESUME = TRUE;</pre><h4>Set Context</h4><pre>USE ROLE ACCOUNTADMIN;<br>USE DATABASE DEMO_AI;<br>USE SCHEMA RAW;<br>USE WAREHOUSE SUPERHERO_GEN1_XS_WH;</pre><h4>Create Temporary Table with Sample Data</h4><pre>CREATE OR REPLACE TEMPORARY TABLE DEMO_AI.RAW.EMBED_DEMO<br>(<br>    ID INT,<br>    CATEGORY VARCHAR,<br>    DESCRIPTION VARCHAR<br>);<br><br>INSERT INTO DEMO_AI.RAW.EMBED_DEMO VALUES<br>(1, &#39;ANIMAL&#39;,  &#39;A large grey mammal with a trunk and tusks that lives in Africa and Asia&#39;),<br>(2, &#39;ANIMAL&#39;,  &#39;A small furry pet that purrs and chases mice&#39;),<br>(3, &#39;ANIMAL&#39;,  &#39;A loyal four-legged companion that barks and fetches sticks&#39;),<br>(4, &#39;FOOD&#39;,    &#39;A round baked dough topped with tomato sauce and melted cheese&#39;),<br>(5, &#39;FOOD&#39;,    &#39;Raw fish served on seasoned rice, a traditional Japanese dish&#39;),<br>(6, &#39;FOOD&#39;,    &#39;Layers of pasta sheets with meat sauce, ricotta, and mozzarella&#39;),<br>(7, &#39;SPORT&#39;,   &#39;A team sport where players kick a round ball into a net&#39;),<br>(8, &#39;SPORT&#39;,   &#39;An individual sport where players hit a ball over a net with rackets&#39;),<br>(9, &#39;SPORT&#39;,   &#39;A winter sport involving sliding down snowy mountains on a board&#39;);</pre><h4>Verify Data</h4><pre>SELECT * FROM DEMO_AI.RAW.EMBED_DEMO;</pre><h3>1. Single Embedding</h3><p>The simplest use of AI_EMBED — pass a model name and a string literal and get back a vector. This confirms the function is working and shows you what the raw output looks like.</p><p><strong>How it works:</strong></p><ul><li>Pass a model name as the first argument (e.g., &#39;snowflake-arctic-embed-l-v2.0&#39;)</li><li>Pass the text to embed as the second argument</li><li>AI_EMBED returns a VECTOR type — an array of floating-point numbers</li></ul><pre>SELECT <br>    AI_EMBED<br>    (<br>        &#39;snowflake-arctic-embed-l-v2.0&#39;,<br>        &#39;hello world&#39;<br>    ) AS EMBEDDING_VECTOR;</pre><h3>2. Inspect Vector Dimensions</h3><p>Different models produce vectors of different sizes. Use VECTOR_DIMENSION to check. The Arctic L v2.0 model produces 1024-dimensional vectors; the M v1.5 model produces 768.</p><p><strong>How it works:</strong></p><ul><li>Wrap AI_EMBED(...) inside VECTOR_DIMENSION(...) to get the dimension count</li><li>1024-dimensional vectors capture more nuance but use more storage</li><li>768-dimensional vectors are smaller and faster but slightly less precise</li></ul><pre>SELECT <br>    VECTOR_DIMENSION<br>    (<br>        AI_EMBED(&#39;snowflake-arctic-embed-l-v2.0&#39;, &#39;hello world&#39;)<br>    ) AS NUM_DIMENSIONS;</pre><h3>3. Column Embeddings</h3><p>Embed every row in a table. This is the typical first step — you generate embeddings for your data so you can search, compare, or cluster later.</p><p><strong>How it works:</strong></p><ul><li>Pass the text column as the second argument to AI_EMBED</li><li>Each row gets its own vector</li><li>The result can be stored in a table with a VECTOR column for reuse</li></ul><pre>SELECT <br>    ID,<br>    DESCRIPTION,<br>    AI_EMBED<br>    (<br>        &#39;snowflake-arctic-embed-l-v2.0&#39;,<br>        DESCRIPTION<br>    ) AS EMBEDDING<br>FROM <br>    DEMO_AI.RAW.EMBED_DEMO;</pre><h3>4. Cosine Similarity Search</h3><p>The most common use case — embed a query and compare it against every row’s embedding using VECTOR_COSINE_SIMILARITY. Higher scores mean more similar.</p><p><strong>How it works:</strong></p><ul><li>Embed both the column and the query with the same model</li><li>VECTOR_COSINE_SIMILARITY returns a float between -1 and 1 (1 = identical direction)</li><li>ORDER BY descending and LIMIT to get the top matches</li><li>The query doesn’t need to use the same words as the data</li></ul><pre>SELECT <br>    ID,<br>    DESCRIPTION,<br>    VECTOR_COSINE_SIMILARITY<br>    (<br>        AI_EMBED(&#39;snowflake-arctic-embed-l-v2.0&#39;, DESCRIPTION),<br>        AI_EMBED(&#39;snowflake-arctic-embed-l-v2.0&#39;, &#39;a pet that lives at home&#39;)<br>    ) AS SIMILARITY<br>FROM <br>    DEMO_AI.RAW.EMBED_DEMO<br>ORDER BY <br>    SIMILARITY DESC<br>LIMIT 5;</pre><h3>5. L2 Distance Search (Nearest Neighbour)</h3><p>An alternative to cosine similarity — VECTOR_L2_DISTANCE measures Euclidean distance. Lower values mean more similar (the opposite of cosine similarity).</p><p><strong>How it works:</strong></p><ul><li>Embed both the column and the query with the same model</li><li>VECTOR_L2_DISTANCE returns a float where 0 = identical</li><li>ORDER BY ascending (closest first) instead of descending</li><li>Best for use cases where magnitude matters, not just direction</li></ul><pre>SELECT <br>    ID,<br>    DESCRIPTION,<br>    VECTOR_L2_DISTANCE<br>    (<br>        AI_EMBED(&#39;snowflake-arctic-embed-l-v2.0&#39;, DESCRIPTION),<br>        AI_EMBED(&#39;snowflake-arctic-embed-l-v2.0&#39;, &#39;Italian cuisine&#39;)<br>    ) AS DISTANCE<br>FROM <br>    DEMO_AI.RAW.EMBED_DEMO<br>ORDER BY <br>    DISTANCE ASC<br>LIMIT 5;</pre><h3>6. Store Embeddings in a Table</h3><p>The critical performance pattern. Embed your data once and store the vectors in a table. Then at search time, you only embed the query — not the entire dataset.</p><p><strong>How it works:</strong></p><ul><li>Use CREATE TABLE ... AS SELECT with AI_EMBED to materialise embeddings</li><li>The EMBEDDING column stores a VECTOR type</li><li>Re-embed only when the underlying data changes</li><li>This is dramatically cheaper and faster than re-embedding on every query</li></ul><pre>CREATE OR REPLACE TEMPORARY TABLE DEMO_AI.RAW.EMBED_STORED AS<br>SELECT <br>    ID,<br>    CATEGORY,<br>    DESCRIPTION,<br>    AI_EMBED<br>    (<br>        &#39;snowflake-arctic-embed-l-v2.0&#39;,<br>        DESCRIPTION<br>    ) AS EMBEDDING<br>FROM <br>    DEMO_AI.RAW.EMBED_DEMO;</pre><h3>Verify Stored Embeddings</h3><pre>SELECT * FROM DEMO_AI.RAW.EMBED_STORED;</pre><h3>7. Query Pre-Stored Embeddings (Efficient Search)</h3><p>Now that embeddings are stored, search is fast — embed only the query string and compare it against the pre-computed vectors.</p><p><strong>How it works:</strong></p><ul><li>Reference the stored EMBEDDING column directly — no AI_EMBED call on the data side</li><li>Only the query string gets embedded at runtime (one LLM call total)</li><li>VECTOR_COSINE_SIMILARITY compares the query vector against every stored vector</li><li>This scales to millions of rows efficiently</li></ul><pre>SELECT <br>    ID,<br>    DESCRIPTION,<br>    VECTOR_COSINE_SIMILARITY<br>    (<br>        EMBEDDING,<br>        AI_EMBED(&#39;snowflake-arctic-embed-l-v2.0&#39;, &#39;team ball game&#39;)<br>    ) AS SIMILARITY<br>FROM <br>    DEMO_AI.RAW.EMBED_STORED<br>ORDER BY <br>    SIMILARITY DESC<br>LIMIT 3;</pre><h3>8. Compare Two Models Side by Side</h3><p>Snowflake offers multiple embedding models at different dimension sizes. Here we compare the 1024-dimension Arctic L v2.0 against the 768-dimension Arctic M v1.5.</p><p><strong>How it works:</strong></p><ul><li>Call AI_EMBED with different model names on the same text</li><li>Use VECTOR_DIMENSION to confirm the output size</li><li>1024 dimensions = more precision, more storage</li><li>768 dimensions = faster, cheaper, slightly less precise</li></ul><pre>SELECT <br>    VECTOR_DIMENSION<br>    (<br>        AI_EMBED(&#39;snowflake-arctic-embed-l-v2.0&#39;, &#39;hello world&#39;)<br>    ) AS DIMS_1024,<br>    VECTOR_DIMENSION<br>    (<br>        AI_EMBED(&#39;snowflake-arctic-embed-m-v1.5&#39;, &#39;hello world&#39;)<br>    ) AS DIMS_768;</pre><h3>9. Similarity Matrix (Cross-Row Comparison)</h3><p>Compare every row against every other row within the same category using the stored embeddings. This reveals which descriptions are most and least similar to each other.</p><p><strong>How it works:</strong></p><ul><li>Self-join the stored embeddings table with CROSS JOIN and A.ID &lt; B.ID to avoid duplicates</li><li>Filter by category so you only compare within groups</li><li>VECTOR_COSINE_SIMILARITY(A.EMBEDDING, B.EMBEDDING) scores each pair</li><li>No AI_EMBED calls at runtime — everything uses pre-computed vectors</li></ul><pre>SELECT <br>    A.ID AS ID_A,<br>    B.ID AS ID_B,<br>    A.DESCRIPTION AS DESC_A,<br>    B.DESCRIPTION AS DESC_B,<br>    VECTOR_COSINE_SIMILARITY(A.EMBEDDING, B.EMBEDDING) AS COSINE_SIM<br>FROM <br>    DEMO_AI.RAW.EMBED_STORED A<br>    CROSS JOIN DEMO_AI.RAW.EMBED_STORED B<br>WHERE <br>    A.ID &lt; B.ID<br>    AND A.CATEGORY = B.CATEGORY<br>ORDER BY <br>    COSINE_SIM DESC;</pre><h3>Summary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yukVQ3tpHI4so-ErEeDdAg.png" /></figure><p><strong>Try:</strong></p><ul><li>Use AI_EMBED with AI_SIMILARITY for a two-pass pipeline — fast embedding search first, then precise similarity scoring on the top candidates</li><li>Create a vector index on the stored embedding column for sub-second search across millions of rows</li><li>Combine stored embeddings with AI_FILTER to narrow by topic first, then rank by vector similarity</li></ul><h3>Next Steps</h3><ul><li>Learn more on <a href="https://docs.snowflake.com/en/sql-reference/functions/ai_embed">docs.snowflake.com</a></li><li>Sign up for a <a href="https://bit.ly/SnowflakeTrial">Snowflake Trial</a></li></ul><p>If you found this useful, follow me on <a href="https://bit.ly/LinkedIn-DouglasDay">LinkedIn</a> for more Cortex AI SQL and Snowflake AI Data Cloud use cases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0b2eccc0f75" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snowflake/snowflake-ai-sql-user-guide-ai-embed-b0b2eccc0f75">Snowflake AI SQL User Guide: AI_EMBED</a> was originally published in <a href="https://medium.com/snowflake">Snowflake Builders Blog: Data Engineers, App Developers, AI, &amp; Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake AI SQL User Guide: AI_SIMILARITY]]></title>
            <link>https://medium.com/snowflake/snowflake-ai-sql-user-guide-ai-similarity-1302ceac2796?source=rss-f5ad440e2a9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1302ceac2796</guid>
            <category><![CDATA[snowflake-data-cloud]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[data-superhero]]></category>
            <dc:creator><![CDATA[Douglas Day]]></dc:creator>
            <pubDate>Thu, 23 Apr 2026 19:01:01 GMT</pubDate>
            <atom:updated>2026-04-23T19:01:01.551Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kr978yjWrNl7sN0iJSchZA.png" /><figcaption><strong>What is AI_SIMILARITY?</strong></figcaption></figure><h3><strong>What is AI_SIMILARITY?</strong></h3><p>AI_SIMILARITY is a Snowflake Cortex AI function that returns a float between 0 and 1 indicating how semantically similar two pieces of text are. Unlike traditional string functions (EDITDISTANCE, JAROWINKLER_SIMILARITY), it understands meaning — <em>&quot;a feline rested on a rug&quot;</em> scores high against <em>&quot;the cat sat on the mat&quot;</em> — no external services or ML pipelines required.</p><p>Listen to a quick technical breakdown of the Snowflake AI_SIMILARITY function. In this short 5-minute audio overview, we explore what the function does, how its parameters work, and when you would use it in real-world Snowflake workloads.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttps%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F2300689961%26show_artwork%3Dtrue&amp;display_name=SoundCloud&amp;url=https%3A%2F%2Fsoundcloud.com%2Fdouglasday1%2Fai_similarity%3Futm_source%3Dclipboard%26utm_medium%3Dtext%26utm_campaign%3Dsocial_sharing%26si%3D125c385553d9466ca28d646632e169db&amp;image=https%3A%2F%2Fi1.sndcdn.com%2Fartworks-jEnKwtAJwyEyHmQ7-ke1G3A-t500x500.jpg&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/0dba0320db506c616ab54b997276761d/href">https://medium.com/media/0dba0320db506c616ab54b997276761d/href</a></iframe><p><strong>What we’ll cover:</strong></p><ol><li><strong>Basic String Comparison</strong> — Score two plain-English sentences</li><li><strong>Identical vs Unrelated</strong> — Boundary values (≈1.0 vs ≈0.0)</li><li><strong>Semantic Search</strong> — Rank descriptions against a natural language query</li><li><strong>Threshold-Based Matching</strong> — Return only rows above a cutoff</li><li><strong>Cross-Row Comparison</strong> — Self-join to find similar descriptions within a category</li><li><strong>Fuzzy Deduplication</strong> — Identify company name duplicates (e.g., “AWS” ↔ “Amazon Web Services”)</li><li><strong>Category Prediction</strong> — Assign a label based on highest similarity to reference phrases</li></ol><p><strong>Key takeaway:</strong> AI_SIMILARITY is a scalar function that returns a FLOAT. It drops into SELECT, WHERE, ORDER BY, or CASE — anywhere you&#39;d use a number. The difference from traditional string functions is that it compares meaning, not characters.</p><h3>Setup</h3><p>Before using AI_SIMILARITY, we create a temporary table with short descriptions across three categories — fruit, vehicles, and tech — to demonstrate the different comparison patterns.</p><h4>Create Database and Schemas</h4><pre>USE ROLE ACCOUNTADMIN;<br>CREATE DATABASE IF NOT EXISTS DEMO_AI;<br>CREATE SCHEMA IF NOT EXISTS DEMO_AI.RAW;</pre><h4>Create Warehouse</h4><pre>CREATE WAREHOUSE IF NOT EXISTS SUPERHERO_GEN1_XS_WH<br>    WAREHOUSE_SIZE = &#39;XSMALL&#39;<br>    AUTO_SUSPEND = 60<br>    AUTO_RESUME = TRUE;</pre><h4>Set Context</h4><pre>USE ROLE ACCOUNTADMIN;<br>USE DATABASE DEMO_AI;<br>USE SCHEMA RAW;<br>USE WAREHOUSE SUPERHERO_GEN1_XS_WH;</pre><h4>Create Temporary Table with Sample Data</h4><pre>CREATE OR REPLACE TEMPORARY TABLE DEMO_AI.RAW.SIMILARITY_DEMO<br>(<br>    ID INT,<br>    CATEGORY VARCHAR,<br>    DESCRIPTION VARCHAR<br>);<br>INSERT INTO DEMO_AI.RAW.SIMILARITY_DEMO VALUES<br>(1, &#39;FRUIT&#39;,     &#39;A round red fruit that grows on trees and is commonly used in pies&#39;),<br>(2, &#39;FRUIT&#39;,     &#39;A yellow curved fruit that monkeys are known to enjoy&#39;),<br>(3, &#39;FRUIT&#39;,     &#39;A small round purple fruit that grows in clusters on vines&#39;),<br>(4, &#39;VEHICLE&#39;,   &#39;A four-wheeled motor vehicle used for transporting passengers&#39;),<br>(5, &#39;VEHICLE&#39;,   &#39;A large vehicle with an open back for carrying heavy loads&#39;),<br>(6, &#39;VEHICLE&#39;,   &#39;A two-wheeled vehicle powered by pedalling&#39;),<br>(7, &#39;TECH&#39;,      &#39;A portable personal computer with a built-in screen and keyboard&#39;),<br>(8, &#39;TECH&#39;,      &#39;A handheld device used for making calls, browsing the internet, and taking photos&#39;),<br>(9, &#39;TECH&#39;,      &#39;A wearable device on the wrist that tracks fitness and shows notifications&#39;);</pre><h4>Verify Data</h4><pre>SELECT * FROM DEMO_AI.RAW.SIMILARITY_DEMO;</pre><h3>1. Basic String Comparison</h3><p>The simplest use of AI_SIMILARITY — pass two string literals and get a score. This confirms the function understands that “cat” and “feline” are semantically related.</p><p><strong>How it works:</strong></p><ul><li>Pass two text strings as arguments</li><li>AI_SIMILARITY returns a float between 0.0 (unrelated) and 1.0 (identical meaning)</li><li>The comparison is meaning-aware — synonyms, paraphrasing, and abbreviations are handled</li></ul><pre>SELECT <br>    AI_SIMILARITY<br>    (<br>        &#39;The cat sat on the mat&#39;,<br>        &#39;A feline rested on a rug&#39;<br>    ) AS SIMILARITY_SCORE;</pre><h3>2. Identical vs Unrelated Texts</h3><p>Understanding the boundaries. Identical text scores close to 1.0. Completely unrelated text scores close to 0.0. This helps you calibrate expectations when setting thresholds.</p><p><strong>How it works:</strong></p><ul><li>Identical strings return a score near 1.0</li><li>Semantically unrelated strings return a score near 0.0</li><li>The exact values depend on the underlying embedding model</li></ul><pre>SELECT <br>    AI_SIMILARITY(&#39;I love pizza&#39;, &#39;I love pizza&#39;) AS IDENTICAL,<br>    AI_SIMILARITY(&#39;I love pizza&#39;, &#39;Quantum physics is complex&#39;) AS UNRELATED;</pre><h3>3. Semantic Search (Find Closest Match)</h3><p>The most common use case — compare a natural language query against every row in a table and rank by similarity. Here we search for “something you ride to work on two wheels”.</p><p><strong>How it works:</strong></p><ul><li>Compute AI_SIMILARITY(column, query) for every row</li><li>ORDER BY the score descending to rank results</li><li>Use LIMIT to return only the top matches</li><li>The query doesn’t need to use the same words as the data</li></ul><pre>SELECT <br>    ID,<br>    DESCRIPTION,<br>    AI_SIMILARITY<br>    (<br>        DESCRIPTION,<br>        &#39;something you ride to work on two wheels&#39;<br>    ) AS MATCH_SCORE<br>FROM <br>    DEMO_AI.RAW.SIMILARITY_DEMO<br>ORDER BY <br>    MATCH_SCORE DESC<br>LIMIT 5;</pre><h3>4. Threshold-Based Matching</h3><p>Instead of ranking all rows, return only those above a similarity threshold. This is useful when you want a yes/no answer — “is this similar enough?”</p><p><strong>How it works:</strong></p><ul><li>Place AI_SIMILARITY(column, query) &gt; threshold in the WHERE clause</li><li>Only rows meeting the threshold are returned</li><li>Start with 0.5 and adjust based on your data — inspect edge cases</li></ul><pre>SELECT <br>    ID,<br>    DESCRIPTION,<br>    AI_SIMILARITY<br>    (<br>        DESCRIPTION,<br>        &#39;a portable computing device&#39;<br>    ) AS MATCH_SCORE<br>FROM <br>    DEMO_AI.RAW.SIMILARITY_DEMO<br>WHERE <br>    AI_SIMILARITY<br>    (<br>        DESCRIPTION,<br>        &#39;a portable computing device&#39;<br>    ) &gt; 0.5;</pre><h3>5. Cross-Row Comparison (Self-Join)</h3><p>Compare every row against every other row within the same category. This reveals which descriptions are most similar to each other — useful for clustering and outlier detection.</p><p><strong>How it works:</strong></p><ul><li>Self-join the table using CROSS JOIN with A.ID &lt; B.ID to avoid duplicates</li><li>Filter by category so you only compare within groups</li><li>AI_SIMILARITY(A.DESCRIPTION, B.DESCRIPTION) scores each pair</li><li>ORDER BY score descending to find the most similar pairs first</li></ul><pre>SELECT <br>    A.ID AS ID_A,<br>    B.ID AS ID_B,<br>    A.DESCRIPTION AS DESC_A,<br>    B.DESCRIPTION AS DESC_B,<br>    AI_SIMILARITY(A.DESCRIPTION, B.DESCRIPTION) AS PAIR_SCORE<br>FROM <br>    DEMO_AI.RAW.SIMILARITY_DEMO A<br>    CROSS JOIN DEMO_AI.RAW.SIMILARITY_DEMO B<br>WHERE <br>    A.ID &lt; B.ID<br>    AND A.CATEGORY = B.CATEGORY<br>ORDER BY <br>    PAIR_SCORE DESC;</pre><h3>6. Fuzzy Deduplication</h3><p>Identify duplicate records that traditional exact-match or ILIKE would miss. Here we create a second table with company name variations and find pairs that likely refer to the same entity.</p><p><strong>How it works:</strong></p><ul><li>Create a table with known duplicates written differently (e.g., “AWS” vs “Amazon Web Services”)</li><li>Self-join with a similarity threshold to find candidate duplicates</li><li>AI_SIMILARITY understands that “AWS” is an abbreviation for “Amazon Web Services”</li><li>Traditional string functions would score these near zero — AI_SIMILARITY scores them high</li></ul><h4>Create Duplicates Table</h4><pre>CREATE OR REPLACE TEMPORARY TABLE DEMO_AI.RAW.SIMILARITY_DUPES<br>(<br>    ID INT,<br>    COMPANY_NAME VARCHAR<br>);<br><br>INSERT INTO DEMO_AI.RAW.SIMILARITY_DUPES VALUES<br>(1, &#39;Snowflake Inc.&#39;),<br>(2, &#39;Snowflake Computing&#39;),<br>(3, &#39;Amazon Web Services&#39;),<br>(4, &#39;AWS&#39;),<br>(5, &#39;Microsoft Corporation&#39;),<br>(6, &#39;Microsoft Corp.&#39;);</pre><h4>Find Duplicate Candidates</h4><pre>SELECT <br>    A.ID AS ID_A,<br>    B.ID AS ID_B,<br>    A.COMPANY_NAME AS NAME_A,<br>    B.COMPANY_NAME AS NAME_B,<br>    AI_SIMILARITY(A.COMPANY_NAME, B.COMPANY_NAME) AS SIMILARITY<br>FROM <br>    DEMO_AI.RAW.SIMILARITY_DUPES A<br>    CROSS JOIN DEMO_AI.RAW.SIMILARITY_DUPES B<br>WHERE <br>    A.ID &lt; B.ID<br>    AND AI_SIMILARITY(A.COMPANY_NAME, B.COMPANY_NAME) &gt; 0.5<br>ORDER BY <br>    SIMILARITY DESC;</pre><h3>7. Category Prediction</h3><p>Assign a category label to each row by comparing it against reference phrases and picking the one with the highest similarity score. This is a zero-shot classification approach.</p><p><strong>How it works:</strong></p><ul><li>Define a reference phrase for each category (e.g., “fruit that you eat”, “vehicle for transportation”)</li><li>Compute AI_SIMILARITY against each reference phrase</li><li>Use CASE with GREATEST to pick the category with the highest score</li><li>No training data or model setup required — the reference phrases are the “labels”</li></ul><pre>SELECT <br>    D.ID,<br>    D.DESCRIPTION,<br>    AI_SIMILARITY(D.DESCRIPTION, &#39;fruit that you eat&#39;) AS FRUIT_SCORE,<br>    AI_SIMILARITY(D.DESCRIPTION, &#39;vehicle for transportation&#39;) AS VEHICLE_SCORE,<br>    AI_SIMILARITY(D.DESCRIPTION, &#39;electronic technology device&#39;) AS TECH_SCORE,<br>    CASE <br>        GREATEST<br>        (<br>            AI_SIMILARITY(D.DESCRIPTION, &#39;fruit that you eat&#39;),<br>            AI_SIMILARITY(D.DESCRIPTION, &#39;vehicle for transportation&#39;),<br>            AI_SIMILARITY(D.DESCRIPTION, &#39;electronic technology device&#39;)<br>        )<br>        WHEN AI_SIMILARITY(D.DESCRIPTION, &#39;fruit that you eat&#39;) THEN &#39;FRUIT&#39;<br>        WHEN AI_SIMILARITY(D.DESCRIPTION, &#39;vehicle for transportation&#39;) THEN &#39;VEHICLE&#39;<br>        ELSE &#39;TECH&#39;<br>    END AS PREDICTED_CATEGORY<br>FROM <br>    DEMO_AI.RAW.SIMILARITY_DEMO D;</pre><h3>Summary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QWTxhfCU8Ifh_w2rru3LMg.png" /></figure><p><strong>Try:</strong></p><ul><li>Combine AI_SIMILARITY with AI_EMBED to pre-compute embeddings and avoid recalculating on every query</li><li>Use AI_SIMILARITY with AI_FILTER for a two-pass pipeline — filter by topic first, then rank by similarity</li><li>Store similarity scores in a table to power dashboards and recommendation engines</li></ul><h3>Next Steps</h3><ul><li>Learn more on <a href="https://docs.snowflake.com/en/sql-reference/functions/ai_similarity">docs.snowflake.com</a></li><li>Sign up for a <a href="https://bit.ly/SnowflakeTrial">Snowflake Trial</a></li></ul><p>If you found this useful, follow me on <a href="https://bit.ly/LinkedIn-DouglasDay">LinkedIn</a> for more Cortex AI SQL and Snowflake AI Data Cloud use cases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1302ceac2796" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snowflake/snowflake-ai-sql-user-guide-ai-similarity-1302ceac2796">Snowflake AI SQL User Guide: AI_SIMILARITY</a> was originally published in <a href="https://medium.com/snowflake">Snowflake Builders Blog: Data Engineers, App Developers, AI, &amp; Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake AI SQL User Guide: AI_FILTER]]></title>
            <link>https://medium.com/snowflake/snowflake-ai-sql-user-guide-ai-filter-995e6083d38a?source=rss-f5ad440e2a9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/995e6083d38a</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[snowflake-data-cloud]]></category>
            <category><![CDATA[data-superhero]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Douglas Day]]></dc:creator>
            <pubDate>Wed, 22 Apr 2026 19:01:01 GMT</pubDate>
            <atom:updated>2026-04-22T19:01:01.429Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cfLO7dQj4SZm94HaW_9q7w.png" /></figure><h3><strong>What is AI_FILTER?</strong></h3><p>AI_FILTER is a Snowflake Cortex AI function that evaluates each row against a natural language condition and returns TRUE or FALSE. It replaces complex LIKE / ILIKE / regex chains with a single, intent-driven prompt — no external services or ML pipelines required.</p><p>Listen to a quick technical breakdown of the Snowflake AI_FILTER function. In this short 5-minute audio overview, we explore what the function does, how its parameters work, and when you would use it in real-world Snowflake workloads.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttps%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F2300689604%26show_artwork%3Dtrue&amp;display_name=SoundCloud&amp;url=https%3A%2F%2Fsoundcloud.com%2Fdouglasday1%2Fai_filter%3Fsi%3D06ba204f41b64a03918e2b864d243808%26utm_source%3Dclipboard%26utm_medium%3Dtext%26utm_campaign%3Dsocial_sharing&amp;image=https%3A%2F%2Fi1.sndcdn.com%2Fartworks-6wBA5qLIGDiQV3GT-XmC5zA-t500x500.jpg&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/42099f061d430089238e19ce39e684fa/href">https://medium.com/media/42099f061d430089238e19ce39e684fa/href</a></iframe><p><strong>What we’ll cover:</strong></p><ol><li><strong>String Literal Test</strong> — Quick scalar test on a hardcoded sentence</li><li><strong>Product Defect Filtering</strong> — Find reviews mentioning defects or breakage</li><li><strong>Nuanced Intent</strong> — Distinguish comfort feedback from sound quality feedback</li><li><strong>Negation</strong> — Exclude positive-only reviews using NOT AI_FILTER</li><li><strong>Filter Then Classify</strong> — Combine AI_FILTER with AI_CLASSIFY in one query</li><li><strong>CASE Expression Tagging</strong> — Tag rows without removing them</li><li><strong>Counting Matches</strong> — Aggregate filtered results with COUNT_IF</li></ol><p><strong>Key takeaway:</strong> AI_FILTER returns a BOOLEAN. It drops straight into WHERE, HAVING, CASE WHEN, or COUNT_IF — anywhere you&#39;d use a traditional predicate. The difference is that the condition is written in plain English, not regex.</p><h3>Setup</h3><p>Before using AI_FILTER, we create a temporary table with sample product reviews to demonstrate the different filtering patterns.</p><h4>Create Database and Schemas</h4><pre>USE ROLE ACCOUNTADMIN;<br>CREATE DATABASE IF NOT EXISTS DEMO_AI;<br>CREATE SCHEMA IF NOT EXISTS DEMO_AI.RAW;</pre><h4>Create Warehouse</h4><pre>CREATE WAREHOUSE IF NOT EXISTS SUPERHERO_GEN1_XS_WH<br>    WAREHOUSE_SIZE = &#39;XSMALL&#39;<br>    AUTO_SUSPEND = 60<br>    AUTO_RESUME = TRUE;</pre><h4>Set Context</h4><pre>USE ROLE ACCOUNTADMIN;<br>USE DATABASE DEMO_AI;<br>USE SCHEMA RAW;<br>USE WAREHOUSE SUPERHERO_GEN1_XS_WH;</pre><h4>Create Temporary Table with Sample Data</h4><pre>CREATE OR REPLACE TEMPORARY TABLE DEMO_AI.RAW.FILTER_DEMO<br>(<br>    REVIEW_ID INT,<br>    PRODUCT VARCHAR,<br>    REVIEW VARCHAR<br>);<br><br>INSERT INTO DEMO_AI.RAW.FILTER_DEMO VALUES<br>(1, &#39;Headphones&#39;,  &#39;Amazing sound quality. Best purchase this year. The noise cancellation is incredible.&#39;),<br>(2, &#39;Headphones&#39;,  &#39;Comfortable for short sessions but after 2 hours my ears start hurting. Sound is decent.&#39;),<br>(3, &#39;Headphones&#39;,  &#39;The Bluetooth disconnects every 10 minutes. Totally unusable with my laptop. Returned them.&#39;),<br>(4, &#39;Keyboard&#39;,    &#39;Perfect for coding. Mechanical switches feel great and the build quality is solid.&#39;),<br>(5, &#39;Keyboard&#39;,    &#39;Software is buggy and crashed twice during setup. Keys feel nice once you get it working.&#39;),<br>(6, &#39;Blender&#39;,     &#39;Makes smoothies in seconds. Easy to clean. Love the glass jug.&#39;),<br>(7, &#39;Blender&#39;,     &#39;Motor is powerful but unbelievably loud. Wakes up everyone in the house.&#39;),<br>(8, &#39;Blender&#39;,     &#39;Blade assembly cracked after 3 months. Terrible quality control for the price.&#39;);</pre><h4>Verify Data</h4><pre>SELECT * FROM DEMO_AI.RAW.FILTER_DEMO;</pre><h3>1. String Literal Test</h3><p>AI_FILTER can work on a plain string literal without a table — useful for quickly testing a prompt before running it across a full dataset.</p><p><strong>How it works:</strong></p><ul><li>Pass any text string as the first argument</li><li>Provide a natural language condition as the second argument</li><li>AI_FILTER returns TRUE or FALSE</li></ul><pre>SELECT <br>    AI_FILTER<br>    (<br>        &#39;The package arrived two days late and the box was damaged&#39;,<br>        &#39;the text mentions a delivery or shipping problem&#39;<br>    ) AS IS_SHIPPING_ISSUE;</pre><h3>2. Product Defect Filtering</h3><p>The core use case for AI_FILTER — put it in the WHERE clause to return only rows matching a natural language condition. Here we find reviews that describe product defects.</p><p><strong>How it works:</strong></p><ul><li>Place AI_FILTER(column, prompt) in the WHERE clause</li><li>Only rows where the condition evaluates to TRUE are returned</li><li>The prompt understands synonyms and context — “cracked”, “disconnects”, and “broke” all match “defect or breakage”</li></ul><pre>SELECT <br>    REVIEW_ID,<br>    PRODUCT,<br>    REVIEW<br>FROM <br>    DEMO_AI.RAW.FILTER_DEMO<br>WHERE <br>    AI_FILTER<br>    (<br>        REVIEW,<br>        &#39;the review describes a product defect, malfunction, or breakage&#39;<br>    );</pre><h3>3. Nuanced Intent (Comfort vs Sound)</h3><p>AI_FILTER can distinguish between closely related topics that keyword matching would struggle with. Here we specifically target reviews about physical comfort or ergonomics — not sound quality.</p><p><strong>How it works:</strong></p><ul><li>Write a specific prompt that describes exactly what you’re looking for</li><li>AI_FILTER understands the semantic difference between comfort feedback and sound feedback</li><li>Reviews mentioning “ears hurting” match, but reviews only mentioning “sound quality” do not</li></ul><pre>SELECT <br>    REVIEW_ID,<br>    PRODUCT,<br>    REVIEW<br>FROM <br>    DEMO_AI.RAW.FILTER_DEMO<br>WHERE <br>    AI_FILTER<br>    (<br>        REVIEW,<br>        &#39;the review specifically mentions physical comfort or ergonomics&#39;<br>    );</pre><h3>4. Negation (Exclude Positive-Only Reviews)</h3><p>Use NOT AI_FILTER(...) to exclude rows that match a condition. Here we filter out reviews that are entirely positive, keeping only those with some criticism.</p><p><strong>How it works:</strong></p><ul><li>Prefix AI_FILTER with NOT to invert the result</li><li>Rows where the condition is TRUE are excluded</li><li>This is useful for removing noise — e.g., keeping only actionable feedback</li></ul><pre>SELECT <br>    REVIEW_ID,<br>    PRODUCT,<br>    REVIEW<br>FROM <br>    DEMO_AI.RAW.FILTER_DEMO<br>WHERE <br>    NOT AI_FILTER<br>    (<br>        REVIEW,<br>        &#39;the review is entirely positive with no criticism or complaints&#39;<br>    );</pre><h3>5. Filter Then Classify</h3><p>Combine AI_FILTER with AI_CLASSIFY in a single query. First, AI_FILTER narrows the result set to only complaints. Then, AI_CLASSIFY categorises each complaint by issue type.</p><p><strong>How it works:</strong></p><ul><li>AI_FILTER in the WHERE clause removes non-complaint rows</li><li>AI_CLASSIFY in the SELECT runs only on the filtered rows</li><li>This reduces cost — AI_CLASSIFY only processes the rows that passed the filter</li><li>Access the classification label with :label::VARCHAR</li></ul><pre>SELECT <br>    REVIEW_ID,<br>    PRODUCT,<br>    REVIEW,<br>    AI_CLASSIFY<br>    (<br>        REVIEW,<br>        [&#39;Hardware Issue&#39;, &#39;Software Issue&#39;, &#39;Comfort Issue&#39;]<br>    ):label::VARCHAR AS ISSUE_TYPE<br>FROM <br>    DEMO_AI.RAW.FILTER_DEMO<br>WHERE <br>    AI_FILTER<br>    (<br>        REVIEW,<br>        &#39;the review contains a complaint or negative feedback&#39;<br>    );</pre><h3>6. CASE Expression Tagging</h3><p>Use AI_FILTER inside a CASE expression to tag rows without removing them. Each row gets a label based on which condition matches first.</p><p><strong>How it works:</strong></p><ul><li>Place multiple AI_FILTER calls inside CASE WHEN branches</li><li>Each branch tests a different condition</li><li>The first matching condition wins (standard SQL CASE behaviour)</li><li>All rows are returned — none are removed</li></ul><pre>SELECT <br>    REVIEW_ID,<br>    PRODUCT,<br>    REVIEW,<br>    CASE <br>        WHEN AI_FILTER(REVIEW, &#39;the review mentions a product defect or breakage&#39;) THEN &#39;DEFECT&#39;<br>        WHEN AI_FILTER(REVIEW, &#39;the review mentions connectivity or software problems&#39;) THEN &#39;TECH_ISSUE&#39;<br>        WHEN AI_FILTER(REVIEW, &#39;the review is entirely positive&#39;) THEN &#39;POSITIVE&#39;<br>        ELSE &#39;OTHER&#39;<br>    END AS REVIEW_TAG<br>FROM <br>    DEMO_AI.RAW.FILTER_DEMO;</pre><h3>7. Counting Matches Per Product</h3><p>Use AI_FILTER inside COUNT_IF to count how many rows match a condition per group. This is useful for reporting and monitoring.</p><p><strong>How it works:</strong></p><ul><li>COUNT_IF(AI_FILTER(...)) counts rows where the condition is TRUE</li><li>Combine with GROUP BY and COUNT(*) to get totals and ratios</li><li>This gives you a per-product complaint rate in a single query</li></ul><pre>SELECT <br>    PRODUCT,<br>    COUNT(*) AS TOTAL_REVIEWS,<br>    COUNT_IF<br>    (<br>        AI_FILTER(REVIEW, &#39;the review contains negative feedback or complaints&#39;)<br>    ) AS NEGATIVE_COUNT<br>FROM <br>    DEMO_AI.RAW.FILTER_DEMO<br>GROUP BY <br>    PRODUCT;</pre><h3>Summary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kfY_YhR6_vNjJRZZUppWLg.png" /></figure><p><strong>Try:</strong></p><ul><li>Combine AI_FILTER with AI_AGG to aggregate only the rows that matter (e.g., summarise only negative reviews)</li><li>Use AI_FILTER with AI_SENTIMENT for a two-pass pipeline — filter by topic, then score by sentiment</li><li>Store AI_FILTER results in a BOOLEAN column to avoid re-evaluating the same rows on every query</li></ul><h3>Next Steps</h3><ul><li>Learn more on <a href="https://docs.snowflake.com/en/sql-reference/functions/ai_filter">docs.snowflake.com</a></li><li>Sign up for a <a href="https://bit.ly/SnowflakeTrial">Snowflake Trial</a></li></ul><p>If you found this useful, follow me on <a href="https://bit.ly/LinkedIn-DouglasDay">LinkedIn</a> for more Cortex AI SQL and Snowflake AI Data Cloud use cases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=995e6083d38a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snowflake/snowflake-ai-sql-user-guide-ai-filter-995e6083d38a">Snowflake AI SQL User Guide: AI_FILTER</a> was originally published in <a href="https://medium.com/snowflake">Snowflake Builders Blog: Data Engineers, App Developers, AI, &amp; Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake AI SQL User Guide: AI_SUMMARIZE_AGG]]></title>
            <link>https://medium.com/snowflake/snowflake-ai-sql-user-guide-ai-summarize-agg-b8900ae44cbc?source=rss-f5ad440e2a9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8900ae44cbc</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-superhero]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[snowflake-data-cloud]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Douglas Day]]></dc:creator>
            <pubDate>Tue, 21 Apr 2026 19:01:01 GMT</pubDate>
            <atom:updated>2026-04-21T19:01:01.406Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k9e8nL9WYChrZ6-9KIGSAw.png" /></figure><h3><strong>What is AI_SUMMARIZE_AGG?</strong></h3><p>AI_SUMMARIZE_AGG is a Snowflake Cortex AI aggregate function that summarizes a column of text data into a single result. Unlike the row-level SNOWFLAKE.CORTEX.SUMMARIZE (which summarizes one text per row), AI_SUMMARIZE_AGG reads across multiple rows and produces a combined summary — no external services or ML pipelines required. It also handles datasets larger than the maximum LLM context window automatically.</p><p>Listen to a quick technical breakdown of the Snowflake AI_SUMMARIZE_AGG function. In this short 5-minute audio overview, we explore what the function does, how its parameters work, and when you would use it in real-world Snowflake workloads.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttps%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F2300683220%26show_artwork%3Dtrue&amp;display_name=SoundCloud&amp;url=https%3A%2F%2Fsoundcloud.com%2Fdouglasday1%2Fai_summarise_agg%3Fin%3Ddouglasday1%2Fsets%2Fuser-guide-snowflake-ai-sql%26si%3De1c1a16bcd7245b7a2f602e65884a6ba%26utm_source%3Dclipboard%26utm_medium%3Dtext%26utm_campaign%3Dsocial_sharing&amp;image=https%3A%2F%2Fi1.sndcdn.com%2Fartworks-Biu4zyAG7JV9BmGp-Gxfbyg-t500x500.jpg&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd22375ababf39208e050f3ed199e6d4/href">https://medium.com/media/dd22375ababf39208e050f3ed199e6d4/href</a></iframe><p><strong>What we’ll cover:</strong></p><ol><li><strong>SNOWFLAKE — String Literal</strong> — Row-level summary on a single text</li><li><strong>AI_SUMMARIZE_AGG — All Rows</strong> — Collapse all rows into one summary</li><li><strong>AI_SUMMARIZE_AGG — GROUP BY</strong> — One summary per category</li><li><strong>AI_SUMMARIZE_AGG — String Literal</strong> — Scalar usage on a hardcoded text</li><li><strong>AI_SUMMARIZE_AGG — Multi-Column</strong> — Combine columns with || before summarizing</li><li><strong>Side-by-Side Comparison</strong> — Row-level vs aggregate on the same data</li><li><strong>AI_AGG — Custom Instruction</strong> — Targeted aggregation as an alternative</li></ol><p><strong>Key takeaway:</strong> Snowflake provides two summarization functions. SUMMARIZE works row by row, one text in, one summary out. AI_SUMMARIZE_AGG is an aggregate function, it works with GROUP BY just like COUNT() or SUM(), collapsing multiple rows into a single summary. Use SUMMARIZE when you need per-row summaries, AI_SUMMARIZE_AGG when you need to distill many rows into one.</p><h3>Setup</h3><p>Before using the summarization functions, we create a temporary table with sample articles across four categories, technology, architecture, security, and cost, to demonstrate both row-level and aggregate summarization.</p><h4>Create Database and Schemas</h4><pre>USE ROLE ACCOUNTADMIN;<br>CREATE DATABASE IF NOT EXISTS DEMO_AI;<br>CREATE SCHEMA IF NOT EXISTS DEMO_AI.RAW;</pre><h4>Create Warehouse</h4><pre>CREATE WAREHOUSE IF NOT EXISTS SUPERHERO_GEN1_XS_WH<br>    WAREHOUSE_SIZE = &#39;XSMALL&#39;<br>    AUTO_SUSPEND = 60<br>    AUTO_RESUME = TRUE;</pre><h4>Set Context</h4><pre>USE ROLE ACCOUNTADMIN;<br>USE DATABASE DEMO_AI;<br>USE SCHEMA RAW;<br>USE WAREHOUSE SUPERHERO_GEN1_XS_WH;</pre><h4>Create Temporary Table with Sample Data</h4><pre>CREATE OR REPLACE TEMPORARY TABLE DEMO_AI.RAW.SUMMARIZE_DEMO<br>(<br>    ARTICLE_ID INT,<br>    CATEGORY VARCHAR,<br>    ARTICLE_TEXT VARCHAR<br>);<br><br>INSERT INTO DEMO_AI.RAW.SUMMARIZE_DEMO VALUES<br>(1, &#39;TECHNOLOGY&#39;, &#39;Snowflake Cortex gives you instant access to industry-leading large language models ...&#39;),<br>(2, &#39;TECHNOLOGY&#39;, &#39;The AI_SUMMARIZE_AGG function summarizes a column of text data ...&#39;),<br>(3, &#39;ARCHITECTURE&#39;, &#39;Snowflake is built on a unique multi-cluster shared data architecture ...&#39;),<br>(4, &#39;SECURITY&#39;, &#39;Snowflake provides comprehensive security features to protect your data ...&#39;),<br>(5, &#39;COST&#39;, &#39;Snowflake uses a consumption-based pricing model where you pay for what you use ...&#39;),<br>(6, &#39;TECHNOLOGY&#39;, &#39;Dynamic Tables in Snowflake provide a declarative approach to building data pipelines ...&#39;);</pre><h4>Verify Data</h4><pre>SELECT * FROM DEMO_AI.RAW.SUMMARIZE_DEMO;</pre><h3>1. SUMMARIZE — String Literal</h3><p>The simplest entry point — pass a string literal to SUMMARIZE and get a summary back. No table required.</p><p><strong>How it works:</strong></p><ul><li>Pass any text string to SUMMARIZE(text)</li><li>Returns a VARCHAR summary of the input</li><li>This is a row-level function — it summarizes one text at a time</li><li>Useful for prototyping before running against a full table</li></ul><pre>SELECT <br>    SNOWFLAKE.CORTEX.SUMMARIZE<br>    (<br>        &#39;Snowflake Cortex gives you instant access to industry-leading large language models trained by researchers at companies like Anthropic, Mistral, Meta, and Google, including Snowflake Arctic, an open enterprise-grade model developed by Snowflake. Since these LLMs are fully hosted and managed by Snowflake, using them requires no setup. Your data stays within Snowflake, giving you the performance, scalability, and governance you expect.&#39;<br>    ) AS SUMMARY;</pre><h3>2. AI_SUMMARIZE_AGG — Summarize All Rows Into One</h3><p>The core aggregate function. AI_SUMMARIZE_AGG reads every row in the result set and produces a single combined summary.</p><p><strong>How it works:</strong></p><ul><li>AI_SUMMARIZE_AGG(column) takes one argument — the text column</li><li>All rows are collapsed into a single summary result</li><li>The function handles datasets larger than the maximum LLM context window</li><li>Returns one row with one summary, regardless of how many input rows</li></ul><pre>SELECT <br>    AI_SUMMARIZE_AGG(ARTICLE_TEXT) AS OVERALL_SUMMARY<br>FROM <br>    DEMO_AI.RAW.SUMMARIZE_DEMO;</pre><h3>3. AI_SUMMARIZE_AGG — GROUP BY</h3><p>AI_SUMMARIZE_AGG works with GROUP BY just like any aggregate function. Each group gets its own summary.</p><p><strong>How it works:</strong></p><ul><li>Add a GROUP BY clause on the column you want to segment by</li><li>AI_SUMMARIZE_AGG processes only the rows within each group</li><li>Each group produces its own independent summary</li><li>Categories with multiple articles get a combined summary; categories with one article get a summary of that single article</li></ul><pre>SELECT <br>    CATEGORY,<br>    AI_SUMMARIZE_AGG(ARTICLE_TEXT) AS CATEGORY_SUMMARY<br>FROM <br>    DEMO_AI.RAW.SUMMARIZE_DEMO<br>GROUP BY <br>    CATEGORY;</pre><h3>4. AI_SUMMARIZE_AGG — String Literal (Scalar Usage)</h3><p>AI_SUMMARIZE_AGG can also work on a plain string literal without a table — useful for quick ad-hoc summarization.</p><p><strong>How it works:</strong></p><ul><li>Pass any text string directly to AI_SUMMARIZE_AGG(text)</li><li>Returns a summary of the input string</li><li>Functionally similar to SUMMARIZE for single texts, but uses the aggregate model</li><li>Useful for prototyping before running against a column</li></ul><pre>SELECT <br>    AI_SUMMARIZE_AGG<br>    (<br>        &#39;Snowflake is a cloud data platform that separates compute and storage. It supports structured and semi-structured data. Virtual warehouses provide independent compute. The platform offers near-unlimited scalability and concurrency.&#39;<br>    ) AS SUMMARY;</pre><h3>5. AI_SUMMARIZE_AGG — Multiple Columns with CONCAT</h3><p>Concatenate multiple columns into a single expression using ||. This lets AI_SUMMARIZE_AGG see additional context, like which category an article belongs to, when generating the summary.</p><p><strong>How it works:</strong></p><ul><li>Use || or CONCAT() to combine columns into a single string</li><li>Include labels (e.g., &#39;Category: &#39;) so the model understands the structure</li><li>AI_SUMMARIZE_AGG processes the combined string as a single text input per row</li><li>The summary can reference the enriched context</li></ul><pre>SELECT <br>    CATEGORY,<br>    AI_SUMMARIZE_AGG(&#39;Category: &#39; || CATEGORY || &#39;\nArticle: &#39; || ARTICLE_TEXT) AS ENRICHED_SUMMARY<br>FROM <br>    DEMO_AI.RAW.SUMMARIZE_DEMO<br>GROUP BY <br>    CATEGORY;</pre><h3>6. Side-by-Side Comparison</h3><p>Compare SUMMARIZE (row-level) with AI_SUMMARIZE_AGG (aggregate) on the same data to see the fundamental difference.</p><p><strong>How it works:</strong></p><ul><li>SUMMARIZE on a single row gives you a summary of that one article</li><li>AI_SUMMARIZE_AGG across all TECHNOLOGY articles gives you a combined summary</li><li>Same data, different scope — per-row vs per-group</li></ul><h4>Row-Level Summary (Single Article)</h4><pre>SELECT <br>    ARTICLE_ID,<br>    SNOWFLAKE.CORTEX.SUMMARIZE(ARTICLE_TEXT) AS ROW_LEVEL_SUMMARY,<br>    ARTICLE_TEXT<br>FROM <br>    DEMO_AI.RAW.SUMMARIZE_DEMO<br>WHERE <br>    ARTICLE_ID = 1;</pre><h4>Aggregate Summary (All Technology Articles)</h4><pre>SELECT <br>    AI_SUMMARIZE_AGG(ARTICLE_TEXT) AS AGGREGATED_TECH_SUMMARY<br>FROM <br>    DEMO_AI.RAW.SUMMARIZE_DEMO<br>WHERE <br>    CATEGORY = &#39;TECHNOLOGY&#39;;</pre><h3>7. AI_AGG — Custom Instruction</h3><p>AI_AGG is the instruction-driven alternative to AI_SUMMARIZE_AGG. Where AI_SUMMARIZE_AGG produces a general-purpose summary, AI_AGG lets you control exactly what the output looks like.</p><p><strong>How it works:</strong></p><ul><li>AI_AGG(column, instruction) takes two arguments — the text and a natural language instruction</li><li>The instruction controls the output format, tone, and focus</li><li>Use AI_SUMMARIZE_AGG when you want a general summary; use AI_AGG when you want targeted output</li><li>AI_AGG also supports GROUP BY</li></ul><h4>Theme Extraction</h4><pre>SELECT <br>    AI_AGG<br>    (<br>        ARTICLE_TEXT,<br>        &#39;Identify the top 3 key themes across all articles and provide a one-sentence summary for each theme&#39;<br>    ) AS THEMED_SUMMARY<br>FROM <br>    DEMO_AI.RAW.SUMMARIZE_DEMO;</pre><h4>Custom Instruction with GROUP BY</h4><pre>SELECT <br>    CATEGORY,<br>    AI_AGG<br>    (<br>        ARTICLE_TEXT,<br>        &#39;Summarize the key points for a non-technical executive audience&#39;<br>    ) AS EXEC_SUMMARY<br>FROM <br>    DEMO_AI.RAW.SUMMARIZE_DEMO<br>GROUP BY <br>    CATEGORY;</pre><p>You can find more information regarding AI_AGG in a previous post, <a href="https://medium.com/p/878d56a59898">here</a></p><h3>Summary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1b3UmGUiEaIeEn8rQ15_8w.png" /></figure><p><strong>Try:</strong></p><ul><li>Combine AI_SUMMARIZE_AGG with AI_FILTER to summarize only relevant rows (e.g., negative reviews)</li><li>Use AI_AGG when you need more control over the output format than AI_SUMMARIZE_AGG provides</li><li>Store aggregate summaries in a table and refresh them on a schedule using tasks or dynamic tables</li></ul><h3>Next Steps</h3><ul><li>Learn more on <a href="https://docs.snowflake.com/en/sql-reference/functions/ai_summarize_agg">docs.snowflake.com</a></li><li>Sign up for a <a href="https://bit.ly/SnowflakeTrial">Snowflake Trial</a></li></ul><p>If you found this useful, follow me on <a href="https://bit.ly/LinkedIn-DouglasDay">LinkedIn</a> for more Cortex AI SQL and Snowflake AI Data Cloud use cases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8900ae44cbc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snowflake/snowflake-ai-sql-user-guide-ai-summarize-agg-b8900ae44cbc">Snowflake AI SQL User Guide: AI_SUMMARIZE_AGG</a> was originally published in <a href="https://medium.com/snowflake">Snowflake Builders Blog: Data Engineers, App Developers, AI, &amp; Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake AI SQL User Guide: AI_AGG]]></title>
            <link>https://medium.com/snowflake/snowflake-ai-sql-user-guide-ai-agg-878d56a59898?source=rss-f5ad440e2a9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/878d56a59898</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-superhero]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[snowflake-data-cloud]]></category>
            <dc:creator><![CDATA[Douglas Day]]></dc:creator>
            <pubDate>Tue, 21 Apr 2026 00:01:02 GMT</pubDate>
            <atom:updated>2026-04-21T00:01:02.553Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8nafG6Aj_BldID6P7KxzMw.png" /></figure><h3><strong>What is AI_AGG?</strong></h3><p>AI_AGG is a Snowflake Cortex AI aggregate function that reduces a column of text into a single result using a natural language instruction you provide. Unlike AI_SUMMARIZE_AGG (which gives a general-purpose summary), AI_AGG lets you control exactly what the output looks like — no external services or ML pipelines required.</p><p>Listen to a quick technical breakdown of the Snowflake AI_AGG function. In this short 5-minute audio overview, we explore what the function does, how its parameters work, and when you would use it in real-world Snowflake workloads.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttps%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F2300691230%26show_artwork%3Dtrue&amp;display_name=SoundCloud&amp;url=https%3A%2F%2Fsoundcloud.com%2Fdouglasday1%2Fai_agg%3Futm_source%3Dclipboard%26utm_medium%3Dtext%26utm_campaign%3Dsocial_sharing%26si%3De24ee0a327b04a8ab6877d07481c530f&amp;image=https%3A%2F%2Fi1.sndcdn.com%2Fartworks-bDTITFPwDfIIMJue-hHLBmg-t500x500.jpg&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/d223c35bcd5a9ed3952df401de9c16f1/href">https://medium.com/media/d223c35bcd5a9ed3952df401de9c16f1/href</a></iframe><p><strong>What we’ll cover:</strong></p><ol><li><strong>Simple String Literal</strong> — Quick scalar usage on a ratings array</li><li><strong>Theme Extraction</strong> — Identify recurring themes across all reviews</li><li><strong>GROUP BY Aggregation</strong> — Pros and cons per product</li><li><strong>Executive Summaries</strong> — Audience-appropriate aggregation by category</li><li><strong>Multi-Column Input</strong> — Combine product ID with review text using ||</li><li><strong>Actionable Insights</strong> — Prioritised action list for a product team</li><li><strong>AI_AGG vs AI_SUMMARIZE_AGG</strong> — General summary vs targeted aggregation</li></ol><p><strong>Key takeaway:</strong> AI_AGG is an aggregate function — it works with GROUP BY just like SUM() or COUNT(). The difference is that the instruction you provide controls <em>what</em> gets produced, not just <em>how</em> rows are collapsed.</p><h3>Setup</h3><p>Before using AI_AGG, we create a temporary table with sample product reviews to demonstrate the different aggregation patterns.</p><h4>Create Database and Schemas</h4><pre>USE ROLE ACCOUNTADMIN;<br>CREATE DATABASE IF NOT EXISTS DEMO_AI;<br>CREATE SCHEMA IF NOT EXISTS DEMO_AI.RAW;</pre><h4>Create Warehouse</h4><pre>CREATE WAREHOUSE IF NOT EXISTS SUPERHERO_GEN1_XS_WH<br>    WAREHOUSE_SIZE = &#39;XSMALL&#39;<br>    AUTO_SUSPEND = 60<br>    AUTO_RESUME = TRUE;</pre><h4>Set Context</h4><pre>USE ROLE ACCOUNTADMIN;<br>USE DATABASE DEMO_AI;<br>USE SCHEMA RAW;<br>USE WAREHOUSE SUPERHERO_GEN1_XS_WH;</pre><h4>Create Temporary Table with Sample Data</h4><pre>CREATE OR REPLACE TEMPORARY TABLE DEMO_AI.RAW.AGG_DEMO<br>(<br>    PRODUCT_ID INT,<br>    CATEGORY VARCHAR,<br>    REVIEW VARCHAR<br>);<br><br>INSERT INTO DEMO_AI.RAW.AGG_DEMO VALUES<br>(1, &#39;ELECTRONICS&#39;, &#39;Amazing sound quality on these headphones. Best purchase this year. The noise cancellation is top-notch and battery life lasts a full day.&#39;),<br>(1, &#39;ELECTRONICS&#39;, &#39;Good headphones but the ear cups get uncomfortable after a couple of hours. Sound is crisp and clear though.&#39;),<br>(1, &#39;ELECTRONICS&#39;, &#39;Returned them after a week. The Bluetooth kept disconnecting from my laptop and customer support was unhelpful.&#39;),<br>(2, &#39;ELECTRONICS&#39;, &#39;This keyboard is a dream for coding. Mechanical switches feel great and the RGB lighting is customisable. Build quality is solid.&#39;),<br>(2, &#39;ELECTRONICS&#39;, &#39;Decent keyboard but the software to configure macros is buggy. Keys themselves are satisfying.&#39;),<br>(3, &#39;KITCHEN&#39;,    &#39;Love this blender. Makes smoothies in seconds and cleanup is easy. The glass jug feels premium.&#39;),<br>(3, &#39;KITCHEN&#39;,    &#39;Powerful motor but incredibly loud. Wakes up the whole house when I make my morning smoothie.&#39;),<br>(3, &#39;KITCHEN&#39;,    &#39;Broke after 3 months. The blade assembly cracked. Disappointed for the price.&#39;);</pre><h4>Verify Data</h4><pre>SELECT * FROM DEMO_AI.RAW.AGG_DEMO;</pre><h3>1. Simple String Literal</h3><p>AI_AGG can work on a plain string literal without a table — useful for quick ad-hoc analysis. Here we pass a ratings array and ask it to summarise for a consumer audience.</p><p><strong>How it works:</strong></p><ul><li>Pass any text string as the first argument</li><li>Provide a natural language instruction as the second argument</li><li>AI_AGG returns a single VARCHAR result shaped by your instruction</li></ul><pre>SELECT <br>    AI_AGG<br>    (<br>        &#39;[Excellent, Excellent, Great, Mediocre]&#39;,<br>        &#39;Summarize the product ratings for a blog post targeting consumers&#39;<br>    ) AS RATING_SUMMARY;</pre><h3>2. Theme Extraction (Aggregate All Rows)</h3><p>When you run AI_AGG over a column without a GROUP BY, it aggregates every row in the result set into a single output. Here we ask it to find recurring themes across all product reviews.</p><p><strong>How it works:</strong></p><ul><li>Pass the review column as the first argument</li><li>The instruction tells AI_AGG what to extract — in this case, themes</li><li>All rows are collapsed into one result</li></ul><pre>SELECT <br>    AI_AGG<br>    (<br>        REVIEW,<br>        &#39;Identify the top 3 recurring themes across all product reviews and provide a one-sentence summary for each&#39;<br>    ) AS THEMED_INSIGHTS<br>FROM <br>    DEMO_AI.RAW.AGG_DEMO;</pre><h3>3. GROUP BY Aggregation</h3><p>AI_AGG works with GROUP BY just like any aggregate function. Here we aggregate reviews per product to get a pros and cons breakdown for each.</p><p><strong>How it works:</strong></p><ul><li>Add a GROUP BY clause on the column you want to segment by</li><li>AI_AGG processes only the rows within each group</li><li>Each group produces its own independent result</li></ul><pre>SELECT <br>    PRODUCT_ID,<br>    AI_AGG<br>    (<br>        REVIEW,<br>        &#39;List the pros and cons mentioned by reviewers in bullet point format&#39;<br>    ) AS PROS_AND_CONS<br>FROM <br>    DEMO_AI.RAW.AGG_DEMO<br>GROUP BY <br>    PRODUCT_ID;</pre><h3>4. Executive Summaries (Audience-Targeted)</h3><p>The instruction controls the tone and format of the output. Here we ask for a summary written for a non-technical executive audience, grouped by category.</p><p><strong>How it works:</strong></p><ul><li>Describe your target audience in the instruction</li><li>AI_AGG adjusts language, detail level, and format accordingly</li><li>Combine with GROUP BY to get one summary per segment</li></ul><pre>SELECT <br>    CATEGORY,<br>    AI_AGG<br>    (<br>        REVIEW,<br>        &#39;Summarize the customer feedback for a non-technical executive audience in two sentences&#39;<br>    ) AS EXEC_SUMMARY<br>FROM <br>    DEMO_AI.RAW.AGG_DEMO<br>GROUP BY <br>    CATEGORY;</pre><h3>5. Multi-Column Input</h3><p>You can concatenate multiple columns into a single expression using ||. This lets AI_AGG see additional context — like which product a review belongs to — when generating its output.</p><p><strong>How it works:</strong></p><ul><li>Use || or CONCAT() to combine columns into a single string</li><li>Include labels (e.g., &#39;Product ID: &#39;) so the model understands the structure</li><li>AI_AGG processes the combined string as a single text input per row</li></ul><pre>SELECT <br>    CATEGORY,<br>    AI_AGG<br>    (<br>        &#39;Product ID: &#39; || PRODUCT_ID || &#39;\nReview: &#39; || REVIEW,<br>        &#39;For each product, identify the single biggest complaint and suggest one improvement&#39;<br>    ) AS IMPROVEMENT_PLAN<br>FROM <br>    DEMO_AI.RAW.AGG_DEMO<br>GROUP BY <br>    CATEGORY;</pre><h3>6. Actionable Insights</h3><p>AI_AGG can produce structured, actionable output — not just summaries. Here we ask it to create a prioritised action list for a product team.</p><p><strong>How it works:</strong></p><ul><li>Use an instruction that describes the desired output format (e.g., “prioritised action list”)</li><li>Set constraints (e.g., “no more than 5 items”) to control output length</li><li>AI_AGG reads all rows and produces a single structured result</li></ul><pre>SELECT <br>    AI_AGG<br>    (<br>        REVIEW,<br>        &#39;Based on these product reviews, create a prioritised action list for the product team with no more than 5 items&#39;<br>    ) AS ACTION_LIST<br>FROM <br>    DEMO_AI.RAW.AGG_DEMO;</pre><h3>7. AI_AGG vs AI_SUMMARIZE_AGG</h3><p>AI_SUMMARIZE_AGG produces a general-purpose summary. AI_AGG lets you target exactly what you want. This example compares both on the same data.</p><p><strong>How it works:</strong></p><ul><li>AI_SUMMARIZE_AGG(column) takes one argument — the text column — and returns a general summary</li><li>AI_AGG(column, instruction) takes two arguments — the text column and a natural language instruction</li><li>Run both on the same filtered data to see the difference</li></ul><h3>General Summary with AI_SUMMARIZE_AGG</h3><pre>SELECT <br>    AI_SUMMARIZE_AGG(REVIEW) AS GENERAL_SUMMARY<br>FROM <br>    DEMO_AI.RAW.AGG_DEMO<br>WHERE <br>    PRODUCT_ID = 1;</pre><h3>Targeted Aggregation with AI_AGG</h3><pre>SELECT <br>    AI_AGG<br>    (<br>        REVIEW,<br>        &#39;Extract only the negative feedback and suggest how to address each issue&#39;<br>    ) AS TARGETED_FEEDBACK<br>FROM <br>    DEMO_AI.RAW.AGG_DEMO<br>WHERE <br>    PRODUCT_ID = 1;</pre><h3>Summary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-YlDVD6NMsjAH2QI_ssNVw.png" /></figure><p><strong>Try:</strong></p><ul><li>Combine AI_AGG with AI_FILTER to aggregate only relevant rows (e.g., negative reviews)</li><li>Use AI_AGG with GROUP BY on time periods to track how feedback evolves over weeks or months</li><li>Store AI_AGG results in a table and use them as input to dashboards or automated reports</li></ul><h3>Next Steps</h3><ul><li>Learn more on <a href="https://docs.snowflake.com/en/sql-reference/functions/ai_agg">docs.snowflake.com</a></li><li>Sign up for a <a href="https://bit.ly/SnowflakeTrial">Snowflake Trial</a></li></ul><p>If you found this useful, follow me on <a href="https://bit.ly/LinkedIn-DouglasDay">LinkedIn</a> for more Cortex AI SQL and Snowflake AI Data Cloud use cases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=878d56a59898" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snowflake/snowflake-ai-sql-user-guide-ai-agg-878d56a59898">Snowflake AI SQL User Guide: AI_AGG</a> was originally published in <a href="https://medium.com/snowflake">Snowflake Builders Blog: Data Engineers, App Developers, AI, &amp; Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake AI SQL User Guide: AI_TRANSLATE]]></title>
            <link>https://medium.com/snowflake/snowflake-ai-sql-user-guide-ai-translate-76756ad5dea3?source=rss-f5ad440e2a9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/76756ad5dea3</guid>
            <category><![CDATA[data-superhero]]></category>
            <category><![CDATA[snowflake-data-cloud]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[ai-sql]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Douglas Day]]></dc:creator>
            <pubDate>Fri, 10 Apr 2026 19:01:01 GMT</pubDate>
            <atom:updated>2026-04-10T19:01:01.415Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DAkE9i2Q5Bx9u7mRubjS4Q.png" /></figure><h3><strong>What is AI_TRANSLATE?</strong></h3><p>AI_TRANSLATE is a Snowflake Cortex AI function that translates text from one language to another. It supports auto-detection of the source language, ISO 639-1 language codes, and works seamlessly on table columns. No external translation APIs, no credential management, no data leaving Snowflake.</p><p>Listen to a quick technical breakdown of the Snowflake AI_TRANSLATE function. In this short 5-minute audio overview, we explore what the function does, how its parameters work, and when you would use it in real-world Snowflake workloads.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttps%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F2292147047%26show_artwork%3Dtrue&amp;display_name=SoundCloud&amp;url=https%3A%2F%2Fsoundcloud.com%2Fdouglasday1%2Fai_translate%3Futm_source%3Dclipboard%26utm_medium%3Dtext%26utm_campaign%3Dsocial_sharing%26si%3Dfc48f0998a9941268b3ad9387d3c2a58&amp;image=https%3A%2F%2Fi1.sndcdn.com%2Fartworks-x47vEyUGwVtzvdlz-1f2HNQ-t500x500.jpg&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/50a7fe4cd225a557b02e4301d638a858/href">https://medium.com/media/50a7fe4cd225a557b02e4301d638a858/href</a></iframe><h3><strong>What we’ll cover:</strong></h3><ol><li><strong>Basic Translation</strong> — Translate a string literal between specific languages</li><li><strong>Auto-Detect Source Language</strong> — Let AI_TRANSLATE identify the source language automatically</li><li><strong>Translate a Table Column</strong> — Translate every row, using auto-detect or a source language column</li><li><strong>Multiple Target Languages</strong> — Translate one text into several languages in a single query</li><li><strong>Round-Trip Translation</strong> — Translate forward and back to compare fidelity</li><li><strong>Chaining with AI_SENTIMENT</strong> — Translate then analyse sentiment</li><li><strong>Chaining with AI_CLASSIFY</strong> — Translate then classify into categories</li></ol><p><strong>Key takeaway:</strong> AI_TRANSLATE takes three arguments — text, from_language, to_language. Pass an empty string &#39;&#39; as the source language to auto-detect. The function returns a plain VARCHAR — no JSON parsing needed.</p><h3>Setup</h3><p>We create a temporary table with six text samples in different languages — English, French, German, Spanish, Japanese, and Portuguese. Each row includes the source language code for use in later examples.</p><h4>Create Database and Schemas</h4><pre>USE ROLE ACCOUNTADMIN;<br>CREATE DATABASE IF NOT EXISTS DEMO_AI;<br>CREATE SCHEMA IF NOT EXISTS DEMO_AI.RAW;</pre><h4>Create Warehouse</h4><pre>CREATE WAREHOUSE IF NOT EXISTS SUPERHERO_GEN1_XS_WH<br>    WAREHOUSE_SIZE = &#39;XSMALL&#39;<br>    AUTO_SUSPEND = 60<br>    AUTO_RESUME = TRUE;</pre><h4>Set Context</h4><pre>USE ROLE ACCOUNTADMIN;<br>USE DATABASE DEMO_AI;<br>USE SCHEMA RAW;<br>USE WAREHOUSE SUPERHERO_GEN1_XS_WH;</pre><h4>Create Temporary Table with Multilingual Text</h4><pre>CREATE OR REPLACE TEMPORARY TABLE DEMO_AI.RAW.TRANSLATE_DEMO<br>(<br>    MSG_ID INT,<br>    SOURCE_LANG VARCHAR,<br>    MESSAGE_TEXT VARCHAR<br>);<br><br>INSERT INTO DEMO_AI.RAW.TRANSLATE_DEMO VALUES<br>(1, &#39;en&#39;, &#39;Snowflake Cortex provides instant access to industry-leading large language models. Your data stays within Snowflake, giving you the performance, scalability, and governance you expect.&#39;),<br>(2, &#39;fr&#39;, &#39;La cuisine française est reconnue dans le monde entier pour sa finesse et sa diversité. Chaque région possède ses spécialités et ses traditions culinaires uniques.&#39;),<br>(3, &#39;de&#39;, &#39;Die künstliche Intelligenz verändert die Art und Weise, wie Unternehmen Daten analysieren und Entscheidungen treffen. Maschinelles Lernen ermöglicht präzisere Vorhersagen als je zuvor.&#39;),<br>(4, &#39;es&#39;, &#39;El análisis de datos se ha convertido en una herramienta fundamental para las empresas modernas. La capacidad de procesar grandes volúmenes de información permite tomar decisiones más informadas.&#39;),<br>(5, &#39;ja&#39;, &#39;データウェアハウスは企業の意思決定を支援する重要な基盤です。クラウド技術の進歩により、より柔軟でスケーラブルなソリューションが可能になりました。&#39;),<br>(6, &#39;pt&#39;, &#39;O aprendizado de máquina está revolucionando a forma como interagimos com a tecnologia. Assistentes virtuais e sistemas de recomendação são apenas o começo dessa transformação.&#39;);</pre><h4>Verify Data</h4><pre>SELECT * FROM DEMO_AI.RAW.TRANSLATE_DEMO;</pre><h3>1. Basic Translation (Simplest Usage)</h3><p>Translate a string literal by specifying the source and target language codes.</p><p><strong>How it works:</strong></p><ul><li>Three arguments: text, from_language, to_language</li><li>Language codes follow ISO 639–1 (e.g. en, fr, de, es, ja, pt)</li><li>Returns a plain VARCHAR — no JSON parsing needed</li><li>This is the simplest Cortex AI function to use</li></ul><h4>English to French</h4><pre>SELECT <br>    AI_TRANSLATE<br>    (<br>        &#39;Snowflake makes data engineering simple and scalable.&#39;,<br>        &#39;en&#39;,<br>        &#39;fr&#39;<br>    ) AS TRANSLATED_TEXT;</pre><h4>English to Spanish</h4><pre>SELECT <br>    AI_TRANSLATE<br>    (<br>        &#39;Snowflake makes data engineering simple and scalable.&#39;,<br>        &#39;en&#39;,<br>        &#39;es&#39;<br>    ) AS TRANSLATED_TEXT;</pre><h4>English to German</h4><pre>SELECT <br>    AI_TRANSLATE<br>    (<br>        &#39;Snowflake makes data engineering simple and scalable.&#39;,<br>        &#39;en&#39;,<br>        &#39;de&#39;<br>    ) AS TRANSLATED_TEXT;</pre><h3>2. Auto-Detect Source Language</h3><p>Pass an empty string &#39;&#39; as the source language and AI_TRANSLATE will automatically detect the language of the input text.</p><p><strong>How it works:</strong></p><ul><li>Pass &#39;&#39; (empty string) as the second argument</li><li>AI_TRANSLATE identifies the source language automatically</li><li>Useful when you have mixed-language data and don’t know the source language per row</li><li>Works reliably across all supported languages</li></ul><pre>SELECT <br>    AI_TRANSLATE<br>    (<br>        &#39;La cuisine française est reconnue dans le monde entier.&#39;,<br>        &#39;&#39;,<br>        &#39;en&#39;<br>    ) AS TRANSLATED_TEXT;</pre><h3>3. Translate a Table Column</h3><p>Apply AI_TRANSLATE to every row in a table. Two approaches: auto-detect the source language, or use a source language column.</p><h4>Auto-Detect Source Language</h4><pre>SELECT <br>    MSG_ID,<br>    SOURCE_LANG,<br>    MESSAGE_TEXT AS ORIGINAL_TEXT,<br>    AI_TRANSLATE(MESSAGE_TEXT, &#39;&#39;, &#39;en&#39;) AS ENGLISH_TRANSLATION<br>FROM <br>    DEMO_AI.RAW.TRANSLATE_DEMO;</pre><h4>Using the Source Language Column</h4><pre>SELECT <br>    MSG_ID,<br>    SOURCE_LANG,<br>    MESSAGE_TEXT AS ORIGINAL_TEXT,<br>    AI_TRANSLATE(MESSAGE_TEXT, SOURCE_LANG, &#39;en&#39;) AS ENGLISH_TRANSLATION<br>FROM <br>    DEMO_AI.RAW.TRANSLATE_DEMO;</pre><h3>4. Translate to Multiple Languages at Once</h3><p>Translate a single text into several target languages in one query by calling AI_TRANSLATE multiple times with different target codes.</p><pre>SELECT <br>    AI_TRANSLATE(&#39;Hello, how are you today?&#39;, &#39;en&#39;, &#39;fr&#39;) AS FRENCH,<br>    AI_TRANSLATE(&#39;Hello, how are you today?&#39;, &#39;en&#39;, &#39;es&#39;) AS SPANISH,<br>    AI_TRANSLATE(&#39;Hello, how are you today?&#39;, &#39;en&#39;, &#39;de&#39;) AS GERMAN,<br>    AI_TRANSLATE(&#39;Hello, how are you today?&#39;, &#39;en&#39;, &#39;ja&#39;) AS JAPANESE,<br>    AI_TRANSLATE(&#39;Hello, how are you today?&#39;, &#39;en&#39;, &#39;pt&#39;) AS PORTUGUESE;</pre><h3>5. Round-Trip Translation (Forward and Back)</h3><p>Translate text to another language and back again to evaluate translation fidelity. A CTE keeps it clean.</p><p><strong>How it works:</strong></p><ul><li>Step 1: Translate English to French in a CTE</li><li>Step 2: Translate the French result back to English</li><li>Compare the original with the round-trip result to assess quality</li><li>Differences highlight where nuance or idiom was lost in translation</li></ul><pre>WITH STEP1 AS<br>(<br>    SELECT <br>        &#39;The quick brown fox jumps over the lazy dog.&#39; AS ORIGINAL,<br>        AI_TRANSLATE(&#39;The quick brown fox jumps over the lazy dog.&#39;, &#39;en&#39;, &#39;fr&#39;) AS TO_FRENCH<br>)<br>SELECT <br>    ORIGINAL,<br>    TO_FRENCH,<br>    AI_TRANSLATE(TO_FRENCH, &#39;fr&#39;, &#39;en&#39;) AS BACK_TO_ENGLISH<br>FROM <br>    STEP1;</pre><h3>6. Chaining with AI_SENTIMENT</h3><p>Translate foreign-language text to English, then run sentiment analysis on the translation. This lets you analyse sentiment across all languages using a single consistent pipeline.</p><pre>SELECT <br>    MSG_ID,<br>    SOURCE_LANG,<br>    MESSAGE_TEXT AS ORIGINAL_TEXT,<br>    AI_TRANSLATE(MESSAGE_TEXT, &#39;&#39;, &#39;en&#39;) AS ENGLISH_TRANSLATION,<br>    AI_SENTIMENT(AI_TRANSLATE(MESSAGE_TEXT, &#39;&#39;, &#39;en&#39;)):categories[0]:sentiment::VARCHAR AS SENTIMENT<br>FROM <br>    DEMO_AI.RAW.TRANSLATE_DEMO;</pre><h3>7. Chaining with AI_CLASSIFY</h3><p>Translate foreign-language text to English, then classify the translation into categories.</p><pre>SELECT <br>    MSG_ID,<br>    SOURCE_LANG,<br>    AI_TRANSLATE(MESSAGE_TEXT, &#39;&#39;, &#39;en&#39;) AS ENGLISH_TRANSLATION,<br>    AI_CLASSIFY<br>    (<br>        AI_TRANSLATE(MESSAGE_TEXT, &#39;&#39;, &#39;en&#39;),<br>        [&#39;Technology&#39;, &#39;Cooking&#39;, &#39;Data Analytics&#39;, &#39;Machine Learning&#39;]<br>    ):labels[0]::VARCHAR AS CATEGORY<br>FROM <br>    DEMO_AI.RAW.TRANSLATE_DEMO;</pre><h3>Summary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pi9CfntJxunvW7HxMJ-njQ.png" /></figure><p>Try:</p><ul><li>Build a multilingual analytics pipeline: translate → sentiment → classify in a single query</li><li>Use auto-detect for mixed-language datasets like support tickets and social media</li><li>Create localised content by translating to multiple target languages simultaneously</li><li>Chain with AI_REDACT to translate and redact PII in one pipeline</li></ul><h3>Next Steps</h3><ul><li>Learn more on <a href="https://docs.snowflake.cn/en/sql-reference/functions/ai_translate">docs.snowflake.com</a></li><li>Sign up for a <a href="https://bit.ly/SnowflakeTrial">Snowflake Trial</a></li></ul><p>If you found this useful, follow me on <a href="https://bit.ly/LinkedIn-DouglasDay">LinkedIn</a> for more Cortex AI SQL and Snowflake AI Data Cloud use cases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76756ad5dea3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snowflake/snowflake-ai-sql-user-guide-ai-translate-76756ad5dea3">Snowflake AI SQL User Guide: AI_TRANSLATE</a> was originally published in <a href="https://medium.com/snowflake">Snowflake Builders Blog: Data Engineers, App Developers, AI, &amp; Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>