{"id":5298,"date":"2025-06-19T08:55:22","date_gmt":"2025-06-19T15:55:22","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/azure-sql\/?p=5298"},"modified":"2025-11-18T09:17:37","modified_gmt":"2025-11-18T17:17:37","slug":"announcing-general-availability-of-native-vector-type-functions-in-azure-sql","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/azure-sql\/announcing-general-availability-of-native-vector-type-functions-in-azure-sql\/","title":{"rendered":"Announcing General Availability of Native Vector Type &amp; Functions in Azure SQL"},"content":{"rendered":"<p>We are happy to announce that Native vector support in Azure SQL Database and Azure SQL Managed Instance is moving to General Availability this summer.\nDeployments are already underway, and several regions have begun receiving the feature.<\/p>\n<h2>What is going GA?<\/h2>\n<h3>Integrated Vector Data Type<\/h3>\n<p>Azure SQL introduces a dedicated <a href=\"https:\/\/learn.microsoft.com\/sql\/t-sql\/data-types\/vector-data-type?view=azuresqldb-current&amp;tabs=csharp\">VECTOR data type<\/a> that simplifies the creation, storage, and querying of high-dimensional vector embeddings \u00a0vector embeddings directly within your relational database.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2024\/11\/createvectortable.png\"><img decoding=\"async\" class=\"wp-image-3756 alignnone aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2024\/11\/createvectortable.png\" alt=\"Image createvectortable\" width=\"353\" height=\"287\" srcset=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2024\/11\/createvectortable.png 499w, https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2024\/11\/createvectortable-300x244.png 300w\" sizes=\"(max-width: 353px) 100vw, 353px\" \/><\/a><\/p>\n<h3>Built-in Vector Functions<\/h3>\n<p>Includes essential vector operations like: VECTOR_DISTANCE , VECTOR_NORM \u00a0VECTOR_NORMALIZE. Read more <a href=\"https:\/\/learn.microsoft.com\/sql\/t-sql\/functions\/vector-functions-transact-sql?view=azuresqldb-current\">here<\/a><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2024\/11\/vectordistance.png\"><img decoding=\"async\" class=\"wp-image-3757 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2024\/11\/vectordistance.png\" alt=\"Image vectordistance\" width=\"659\" height=\"241\" srcset=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2024\/11\/vectordistance.png 763w, https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2024\/11\/vectordistance-300x110.png 300w\" sizes=\"(max-width: 659px) 100vw, 659px\" \/><\/a><\/p>\n<hr \/>\n<h2>Use Cases<\/h2>\n<p>With the General Availability of Native vector support, Azure SQL is no longer just a place to store and query relational data. It is a platform for building intelligent, context-aware, and production-ready AI applications. Whether you&#8217;re enabling semantic search, powering RAG pipelines, or orchestrating multi-agent workflows, everything you need is now available directly inside your database.<\/p>\n<p>Here are some examples of what you can do with it:<\/p>\n<h2><strong>\ud83d\udd0d<\/strong><strong> Semantic Search<\/strong><\/h2>\n<p>For Example : A user visits your internal help portal and types:\n&gt; \u201c<span style=\"color: #003366\">How do I reset my password?<\/span>\u201d<\/p>\n<p>Instead of relying on exact keyword matches, Azure SQL uses vector similarity to retrieve the most relevant documents, even if they use different phrasing like:<\/p>\n<ul>\n<li>\u201c<span style=\"color: #003366\">Steps to recover account access<\/span>\u201d<\/li>\n<li>\u201c<span style=\"color: #003366\">Changing login credentials<\/span>\u201d<\/li>\n<li>\u201c<span style=\"color: #003366\">Forgotten password recovery guide<\/span>\u201d<\/li>\n<\/ul>\n<p>These documents are stored in the SQL Database with precomputed vector embeddings. The user\u2019s query is embedded and compared using <a href=\"https:\/\/learn.microsoft.com\/sql\/t-sql\/functions\/vector-distance-transact-sql?view=azuresqldb-current\">VECTOR_DISTANCE<\/a> function, returning the closest matches , all within a single SQL query.<\/p>\n<p>The user sees the most helpful articles ranked by semantic relevance, not just keyword overlap improving discoverability and user satisfaction.<\/p>\n<h2><strong>\ud83d\udcda<\/strong><strong> Retrieval-Augmented Generation (RAG)<\/strong><\/h2>\n<p>Example: You\u2019re building a chatbot that answers questions about your company\u2019s HR policies. A user asks:&gt;<span style=\"color: #003366\"> \u201cWhat\u2019s the parental leave policy?\u201d<\/span><\/p>\n<p>Here\u2019s how the RAG pipeline works with Azure SQL:<\/p>\n<ul>\n<li><strong>Embed the query<\/strong>\nThe user\u2019s question is converted into a vector embedding using an embedding model (e.g., OpenAI or Azure OpenAI)<\/li>\n<li><strong>Retrieve relevant content<\/strong>\nAzure SQL performs a vector similarity search against a table of HR policy documents which contain pre computed vector embeddings stored in the Vector Datatype\nIt finds the top 3 most relevant entries, such as<\/li>\n<li><span style=\"color: #003366\">\u201cParental Leave Policy \u2013 Updated 2024\u201d<\/span><\/li>\n<li><span style=\"color: #003366\">\u201cMaternity and Paternity Benefits Overview\u201d<\/span><\/li>\n<li><span style=\"color: #003366\">\u00a0\u201cLeave of Absence Guidelines for New Parents\u201d\n<\/span><\/li>\n<li><strong>Generate a grounded response<\/strong>\nThese documents are passed to an LLM (like GPT-4) along with the original question.\nThe model generates a response like:\u00a0\u00a0 &gt; \u201c<span style=\"color: #003366\"><em>Our parental leave policy provides up to 16 weeks of paid leave for primary caregivers and 6 weeks for secondary caregivers. This applies to both birth and adoptive parents. For more details, refer to the HR portal or contact your HRBP<\/em><\/span>.\u201d<\/li>\n<\/ul>\n<p>This approach ensures the answer is accurate, up-to-date, and grounded in your company\u2019s actual policies<\/p>\n<h2><strong>\ud83e\udd16Conversational Agents<\/strong><\/h2>\n<p><strong>Conversational Agent Example: Insurance Scenario\n<\/strong>A user asks: &gt;<span style=\"color: #003366\">\u201cI\u2019m meeting with John Doe. What can you tell me about him?\u201d<\/span><\/p>\n<p>The system activates a collaborative agentic workflow, where each agent interacts with specific tables in the database:<\/p>\n<ul>\n<li><strong>Orchestrator Agent<\/strong>\nParses the request and determines which agents to engage. It understands the schema and knows that customer-related data is distributed across multiple domains.<\/li>\n<li><strong>CRM Agent<\/strong>\nRetrieves John Doe\u2019s profile, including ID, contact details, and relationship history .Queries the\u00a0dbo.customers\u00a0table to retrieve John Doe\u2019s profile:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/06\/Screenshot-2025-06-18-225119.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-5308\" src=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/06\/Screenshot-2025-06-18-225119.png\" alt=\"Screenshot 2025 06 18 225119 image\" width=\"904\" height=\"469\" srcset=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/06\/Screenshot-2025-06-18-225119.png 904w, https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/06\/Screenshot-2025-06-18-225119-300x156.png 300w, https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/06\/Screenshot-2025-06-18-225119-768x398.png 768w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/a><\/p>\n<ul>\n<li><strong>Claims Agent<\/strong>\nPulls all claims associated with John Doe\u2014status, amounts, and incident types. Uses the\u00a0CustomerId\u00a0from the CRM agent to fetch claims from dbo.claims\u00a0table<\/li>\n<li><strong>Payments Agent<\/strong>\nIT fetches payment history, outstanding balances, and reimbursement timelines. Retrieves payment history from the\u00a0dbo.payments\u00a0table:<\/li>\n<\/ul>\n<p>Each agent has an expert-level view of its domain and knows how to query its respective tables. The orchestrator coordinates their outputs and composes a unified summary for the user\u2014such as John Doe\u2019s ID, address, claims history, and payment status.<\/p>\n<p>This modular design allows the system to scale and respond intelligently to complex, multi-step queries making it a true agentic AI solution built on top of Azure SQL.<\/p>\n<p>\ud83d\udc49 Want to see this in action? Check out this <a href=\"https:\/\/www.youtube.com\/watch?v=1Idzjm05UmY\">video<\/a><\/p>\n<hr \/>\n<p>The power of this capability goes far beyond individual patterns. Let\u2019s look at how it fits into the broader AI ecosystem and how our customers are using it<\/p>\n<h2><strong>Rich Ecosystem Integrations<\/strong><\/h2>\n<p>Native vector support in Azure SQL is deeply integrated with the broader Microsoft AI ecosystem\u2014enabling seamless development across tools like <a href=\"https:\/\/www.youtube.com\/watch?v=Xjj02G8QlUE\">Semantic Kernel<\/a>, <a href=\"https:\/\/devblogs.microsoft.com\/azure-sql\/langchain-with-sqlvectorstore-example\/\">LangChain<\/a>, <a href=\"https:\/\/devblogs.microsoft.com\/azure-sql\/vector-search-with-azure-sql-semantic-kernel-and-entity-framework-core\/\">EF Core<\/a> and <a href=\"https:\/\/devblogs.microsoft.com\/azure-sql\/sql-vector-store-data-ingestion-and-retrieval-using-azure-logic-apps\/\">Logic Apps<\/a><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/06\/Picture1.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-5315\" src=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/06\/Picture1.png\" alt=\"Integrations with AIecosystem\" width=\"576\" height=\"325\" srcset=\"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/06\/Picture1.png 576w, https:\/\/devblogs.microsoft.com\/azure-sql\/wp-content\/uploads\/sites\/56\/2025\/06\/Picture1-300x169.png 300w\" sizes=\"(max-width: 576px) 100vw, 576px\" \/><\/a><\/p>\n<h2><strong>Enhancements to TDS Protocol<\/strong><\/h2>\n<p>Vectors in Azure SQL are stored in an optimized binary format but are exposed as JSON arrays for developer convenience. With GA, <strong>supported<\/strong> drivers can now leverage enhancements to the TDS protocol to transmit vector data more efficiently in binary format.\nThis reduces payload size, eliminates the overhead of JSON parsing, and preserves full floating-point precision\u2014resulting in faster, more accurate performance for high-dimensional vector workloads in AI and ML scenarios . More info will be updated <a href=\"https:\/\/learn.microsoft.com\/sql\/t-sql\/data-types\/vector-data-type?view=azuresqldb-current&amp;tabs=csharp\">here.<\/a><\/p>\n<h2><strong>GA = Goodbye Limitations<\/strong><\/h2>\n<p>With GA, we\u2019ve removed several limitations that existed during preview. From improved indexing support (preview) to expanded driver compatibility, tighter integration with Azure SQL\u2019s enterprise-grade security model. The GA release is more robust, scalable, and production-ready.\nYou can find the full list of changes and lifted restrictions in our documentation <a href=\"https:\/\/learn.microsoft.com\/sql\/t-sql\/data-types\/vector-data-type?view=azuresqldb-current&amp;tabs=csharp\">here.<\/a><\/p>\n<hr \/>\n<h2><strong>\ud83d\udd26Customer Spotlight:<\/strong><\/h2>\n<p>Mondra, a sustainability intelligence platform, is using\u00a0<strong>Azure SQL\u2019s native vector support<\/strong>\u00a0and\u00a0<strong>Azure OpenAI<\/strong>\u00a0to power their AI assistant,\u00a0<em>Sherpa<\/em>. This agentic solution helps food retailers analyze the environmental impact of over 60,000 products and 1 million ingredients\u2014reducing lifecycle assessment time from weeks to just\u00a0<strong>four hours<\/strong><\/p>\n<p>\u201cWhen we process new data, we have a massive amount that needs to go out immediately. Azure SQL Database Hyperscale was the only tier that allowed us to do a massive data push without affecting the user experience in our platform.\u201d\n\u2014\u00a0<em>Marco De Sanctis, CTO, Mondra<\/em><\/p>\n<p>Sherpa combines\u00a0<strong>Vector search<\/strong>,\u00a0<strong>Semantic Kernel<\/strong>, and\u00a0<strong>agentic orchestration<\/strong>\u00a0to deliver personalized insights, generate reports, and support scenario analysis\u2014all while maintaining performance, scalability, and data privacy. It\u2019s a real-world example of how native vector support in Azure SQL enables intelligent, production AI applications. Read the full story <a href=\"https:\/\/www.microsoft.com\/customers\/story\/23618-mondra-global-limited-azure-sql-database\">here<\/a><\/p>\n<hr \/>\n<h2><strong>What\u2019s Next:<\/strong><\/h2>\n<p>Azure SQL combines enterprise-grade performance with intelligent query optimization. Vector similarity search is executed alongside traditional SQL queries enabling hybrid workloads without compromising speed or scale.\nAnd we\u2019re not stopping there.<\/p>\n<p><strong>DiskANN-Based Vector Index<\/strong><\/p>\n<p>The next evolution in performance is already underway with\u00a0<strong>DiskANN<\/strong>, a high-performance, disk-based approximate nearest neighbor indexing algorithm.\nDiskANN-based vector indexing is currently available in\u00a0<strong>private preview for Azure SQL<\/strong>\u00a0and in\u00a0<strong>public preview for SQL Server 2025<\/strong>. This unlocks fast vector search at scale, even on massive datasets that exceed memory limits.\nRead more <a href=\"https:\/\/techcommunity.microsoft.com\/blog\/sqlserver\/announcing-public-preview-of-diskann-in-sql-server-2025\/4414683\">here<\/a><\/p>\n<h3><strong>New Set of AI Functions<\/strong><\/h3>\n<p>New family of built-in AI functions that bring model-driven intelligence directly into your database\nThese are currently in <a href=\"https:\/\/learn.microsoft.com\/sql\/t-sql\/functions\/ai-generate-embeddings-transact-sql?view=sql-server-ver17\">preview<\/a> in SQL Server 2025 and will be coming soon to Azure SQL:<\/p>\n<ul>\n<li>AI_GENERATE_EMBEDDINGS\u00a0\u2013 Creates embeddings using a pre-created AI model definition stored in the database<\/li>\n<li>AI_GENERATE_CHUNKS\u00a0\u2013 Generates text fragments (\u201cchunks\u201d) based on type, size, and source expression<\/li>\n<li>CREATE EXTERNAL MODEL\u00a0\u2013 Defines external model endpoints for inference, including location, authentication, and purpose<\/li>\n<\/ul>\n<hr \/>\n<h2><strong>\ud83d\ude80<\/strong>Zero to RAG in under 5 minutes:<\/h2>\n<p>Too much to digest and just getting started? We\u2019ve got you!\nWhether you&#8217;re new to Azure, exploring Azure SQL for the first time, or just beginning your journey with Retrieval-Augmented Generation (RAG), this is your moment.\nNative vector support in Azure SQL is designed to be beginner-friendly, developer-ready, and enterprise-tough. You don\u2019t need to be an AI expert to get started.<\/p>\n<p>We\u2019ve built a <a href=\"https:\/\/github.com\/Azure-Samples\/azure-sql-db-vector-search\/tree\/main\/5-Min-RAG-SQL-Accelerator\"><strong>one-click accelerator<\/strong> <\/a>that automates the entire Azure SQL + Azure OpenAI setup for a RAG application in under 5 minutes, reducing manual configuration to just click and go.\nA <a href=\"https:\/\/github.com\/Azure-Samples\/azure-sql-db-vector-search\/tree\/main\/5-Min-RAG-SQL-Accelerator\/Step2-Deploy-RAG-App\">Streamlit web UI<\/a> that showcases Azure SQL\u2019s native vector search on sample data (e.g. semantic product search or resume matching) with no coding required .\nNo complex setup. No external dependencies. Just clone, deploy, and explore.<\/p>\n<h2>\ud83d\udca1Dont move your data to AI. Bring AI to your data<\/h2>\n<p>Explore the docs, try the samples, and start transforming your data into intelligence.<\/p>\n<ul>\n<li>Take a look at the official documentation\u00a0<a href=\"https:\/\/learn.microsoft.com\/en-us\/sql\/t-sql\/functions\/vector-functions-transact-sql?view=azuresqldb-current\">here.<\/a><\/li>\n<li>You can also use this GitHub Repo full of samples:\u00a0<a href=\"https:\/\/github.com\/Azure-Samples\/azure-sql-db-vector-search\">https:\/\/github.com\/Azure-Samples\/azure-sql-db-vector-search<\/a>.<\/li>\n<li>If you are looking for end-to-end samples, take a look here\u00a0<a href=\"https:\/\/aka.ms\/sqlai-samples\">https:\/\/aka.ms\/sqlai-samples<\/a>\u00a0where you\u2019ll find:\n<ul>\n<li>Retrieval Augmented Generation (RAG) on your own data using LangChain<\/li>\n<li>RAG and Natural-Language-to-SQL (NL2SQL) together to build a complete chatbot on your own data, using Semantic Kernel<\/li>\n<li>A tool to quickly vectorize data you already have in your database and enable it for AI<\/li>\n<li>And much more!<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>If you have specific requests, don\u2019t forget to submit them through the\u00a0<a href=\"https:\/\/feedback.azure.com\/d365community\/forum\/04fe6ee0-3b25-ec11-b6e6-000d3a4f0da0\">Azure SQL and SQL Server feedback portal<\/a>, where other users can also contribute and help us prioritize future developments. We look forward to hearing your ideas!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are happy to announce that Native vector support in Azure SQL Database and Azure SQL Managed Instance is moving to General Availability this summer. Deployments are already underway, and several regions have begun receiving the feature. What is going GA? Integrated Vector Data Type Azure SQL introduces a dedicated VECTOR data type that simplifies [&hellip;]<\/p>\n","protected":false},"author":159391,"featured_media":3568,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[601,1,576,577,634,672,615,625],"tags":[642,590,510,465,627,647],"class_list":["post-5298","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-azure-sql","category-rest","category-rest-endpoint-invocation","category-semantic-kernel","category-sql-server-2025","category-vectors","category-vs-code","tag-agentic-rag","tag-ai","tag-azure-sql-database","tag-azuresql","tag-rag","tag-vectors"],"acf":[],"blog_post_summary":"<p>We are happy to announce that Native vector support in Azure SQL Database and Azure SQL Managed Instance is moving to General Availability this summer. Deployments are already underway, and several regions have begun receiving the feature. What is going GA? Integrated Vector Data Type Azure SQL introduces a dedicated VECTOR data type that simplifies [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/posts\/5298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/users\/159391"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/comments?post=5298"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/posts\/5298\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/media\/3568"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/media?parent=5298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/categories?post=5298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sql\/wp-json\/wp\/v2\/tags?post=5298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}