{"id":2418,"date":"2024-04-04T13:59:58","date_gmt":"2024-04-04T20:59:58","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/semantic-kernel\/?p=2418"},"modified":"2024-04-08T08:32:25","modified_gmt":"2024-04-08T15:32:25","slug":"customer-case-study-datastax-and-semantic-kernel","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/agent-framework\/customer-case-study-datastax-and-semantic-kernel\/","title":{"rendered":"Customer Case Study: DataStax and Semantic Kernel"},"content":{"rendered":"<p>Today we\u2019ll dive into a customer case study from Datastax and their recent <a href=\"https:\/\/www.datastax.com\/press-release\/datastax-and-microsoft-collaborate-to-make-it-easier-to-build-enterprise-generative-ai-and-rag-applications-with-legacy-data?utm_medium=search_pd&amp;utm_source=google&amp;utm_campaign=ggl_s_nam_ent_brand&amp;utm_content=\">press release<\/a> and <a href=\"https:\/\/www.datastax.com\/blog\/microsoft-semantic-kernel-astra-db-integration-elevating-retrieval-augmented-generation\">announcement<\/a> on the DataStax and Microsoft collaboration on RAG capabilities on DataStax Astra DB\u00a0Thanks again to the DataStax team for their amazing partnership!<\/p>\n<p><strong>Microsoft and DataStax Simplify Building AI Agents with Legacy Apps and Data<\/strong><\/p>\n<p>In the ever-evolving landscape of artificial intelligence (AI) development, bridging the gap between legacy applications and cutting-edge AI technologies is a challenge for many enterprises. Companies often have hundreds or even thousands of existing applications that they want to bring into the AI world. Recognizing this challenge, Microsoft and DataStax have joined forces to simplify the process of building AI agents with legacy apps and data. Their latest partnership announcement combines AI development by enabling seamless integration of DataStax Astra DB with Microsoft&#8217;s Semantic Kernel.<\/p>\n<p>Microsoft\u2019s Semantic Kernel is an open-source SDK that helps solve this challenge, by making it easy to build generative AI agents that can call existing code. We\u2019re excited to announce the new integration of Semantic Kernel and DataStax Astra DB that enables developers to build upon their current codebase more easily, vectorize the data, and build production-grade GenAI apps and AI agents that utilize the relevance and precision provided by retrieval-augmented generation (RAG).<\/p>\n<p><strong>\u00a0What&#8217;s so cool about Semantic Kernel &#8211; shared by DataStax<\/strong><\/p>\n<p><a href=\"https:\/\/learn.microsoft.com\/en-us\/semantic-kernel\/overview\/\">Semantic Kernel<\/a>\u00a0is a GenAI\/RAG application and agent orchestration framework in Microsoft\u2019s stack of AI copilots and models. In many ways, it\u2019s similar to LangChain and LlamaIndex, but with more focus on enabling intelligent agents. Semantic Kernel provides capabilities for managing contextual conversations including previous chats, prompt history, and conversations, as well as planners for multi-step functions and connections (plug-ins) for third-party APIs to enable RAG grounded in enterprise data (learn more about why RAG is critical to generating responses that aren\u2019t only contextually accurate but also information-rich\u00a0<a href=\"https:\/\/www.datastax.com\/guides\/what-is-retrieval-augmented-generation\">here<\/a>).<\/p>\n<p>Another cool thing about Semantic Kernel is that prompts written for a Python version during app iteration can be used by the C# version for much faster execution at runtime. Semantic Kernel is also proven on Microsoft Azure for Copilot and has reference frameworks for developers to build their own scalable copilots with Azure.<\/p>\n<p><strong>Introducing the Astra DB Connector<\/strong><\/p>\n<p>DataStax has contributed the Astra DB connector in Python. This connector enables Astra DB to function as a vector database within Semantic Kernel. It&#8217;s a game-changer for developers building RAG applications that want to use Semantic Kernel\u2019s unique framework features for contextual conversations or intelligent agents, or for those targeting the Microsoft AI and Azure ecosystem. The integration allows for the storage of embeddings and the performance of semantic searches with unprecedented ease.<\/p>\n<p>By combining Semantic Kernel with Astra DB, developers can build powerful RAG applications with extended contextual conversation capabilities (such as managing chat and prompt histories) and multi-function or planner capabilities, on a globally scalable vector database proven to give more relevant and faster query responses.<\/p>\n<p><strong>A performance booster for Python developers<\/strong><\/p>\n<p>While this release will benefit a broad swath of the GenAI developer community, it\u2019s of particular interest to those who work in the Microsoft\/Azure ecosystem. By integrating Astra DB directly into Semantic Kernel, developers can now leverage Astra DB as a data source in their existing applications, streamlining the development process and enhancing application performance.<\/p>\n<p>To add Astra DB support to a Semantic Kernel application, simply import the module and register the memory store:<\/p>\n<pre class=\"prettyprint language-py\"><code class=\"language-py\"># import Astra DB connector\r\nimport semantic_kernel as sk\r\nfrom semantic_kernel.connectors.memory.astradb import AstraDBMemoryStore\r\n\r\n# create Astra memory store\r\nstore = AstraDBMemoryStore(ASTRA_DB_TOKEN, ASTRA_DB_ID, ASTRA_REGION, KEYSPACE, EMBEDDING_DIMENSION, SIMILARITY)\r\n\r\n#register Astra memory in Semantic Kernel Memory\r\nmemory = SemanticTextMemory(storage=store, embeddings_generator=kernel.get_service(\"text_embedding\"))<\/code><\/pre>\n<p><strong>Summary<\/strong><\/p>\n<p>The integration of Semantic Kernel and Astra DB extends beyond technical enhancements, paving the way for a range of business use cases from personalized customer service to intelligent product recommendations and beyond. It&#8217;s not just about making development easier; it&#8217;s about enabling the creation of more intelligent, responsive, and personalized AI applications that can transform industries.<\/p>\n<p><strong>For more information about this collaboration, visit the following links from DataStax:<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/www.datastax.com\/press-release\/datastax-and-microsoft-collaborate-to-make-it-easier-to-build-enterprise-generative-ai-and-rag-applications-with-legacy-data?utm_medium=search_pd&amp;utm_source=google&amp;utm_campaign=ggl_s_nam_ent_brand&amp;utm_content=\">DataStax and Microsoft Collaborate to Make it Easier to Build Enterprise Generative AI and RAG Applications with Legacy Data | DataStax<\/a><\/li>\n<li><a href=\"https:\/\/www.datastax.com\/blog\/microsoft-semantic-kernel-astra-db-integration-elevating-retrieval-augmented-generation\">Announcing the New Astra DB and Microsoft Semantic Kernel Integration: Elevating Retrieval Augmented Generation | DataStax<\/a><\/li>\n<\/ul>\n<p>Please reach out if you have any questions or feedback through our\u00a0<a href=\"https:\/\/github.com\/microsoft\/semantic-kernel\/discussions\/categories\/general\">Semantic Kernel GitHub Discussion Channel<\/a>. We look forward to hearing from you!\u00a0We would also love your support, if you\u2019ve enjoyed using Semantic Kernel, give us a star on\u00a0<a href=\"https:\/\/github.com\/microsoft\/semantic-kernel\">GitHub<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we\u2019ll dive into a customer case study from Datastax and their recent press release and announcement on the DataStax and Microsoft collaboration on RAG capabilities on DataStax Astra DB\u00a0Thanks again to the DataStax team for their amazing partnership! Microsoft and DataStax Simplify Building AI Agents with Legacy Apps and Data In the ever-evolving landscape [&hellip;]<\/p>\n","protected":false},"author":149071,"featured_media":2424,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[42,1],"tags":[48,57,58,9],"class_list":["post-2418","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-customer-story","category-semantic-kernel","tag-ai","tag-customer-case-study","tag-datastax","tag-semantic-kernel"],"acf":[],"blog_post_summary":"<p>Today we\u2019ll dive into a customer case study from Datastax and their recent press release and announcement on the DataStax and Microsoft collaboration on RAG capabilities on DataStax Astra DB\u00a0Thanks again to the DataStax team for their amazing partnership! Microsoft and DataStax Simplify Building AI Agents with Legacy Apps and Data In the ever-evolving landscape [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/posts\/2418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/users\/149071"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/comments?post=2418"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/posts\/2418\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/media\/2424"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/media?parent=2418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/categories?post=2418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/tags?post=2418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}