{"id":2872,"date":"2024-06-13T11:42:45","date_gmt":"2024-06-13T18:42:45","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/semantic-kernel\/?p=2872"},"modified":"2024-06-13T11:42:45","modified_gmt":"2024-06-13T18:42:45","slug":"building-generative-ai-apps-with-net-8-and-semantic-kernel","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/agent-framework\/building-generative-ai-apps-with-net-8-and-semantic-kernel\/","title":{"rendered":"Building Generative AI apps with .NET 8 and Semantic Kernel"},"content":{"rendered":"<p>Today&#8217;s we&#8217;d like to share a blog post from two members of the .NET team, Jordan Matthiesen and Luis Quintanilla, focused on <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/build-gen-ai-with-dotnet-8\/\">Building Generative AI apps with .NET 8 &#8211; .NET Blog (microsoft.com)<\/a>.<\/p>\n<p>The future of AI is here, and .NET is ready for it! With .NET 8, you can create amazing applications that integrate language models in your new and existing projects. You can go from an idea to a solution using the tools, services and frameworks you love. We\u2019ve made it easier than ever to learn, build, and deploy your LLM (Large Language Model) applications.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2024\/06\/dotnet-genAI-overview-Jun-2024.png\" alt=\"Learn from samples, build with Semantic Kernel, use tools like OpenAI, Deploy with .NET Aspire, Monitor in production\" \/><\/p>\n<h2>Why should I care about building apps with AI?<button class=\"linkicon\" title=\"\" aria-label=\"Copy Post URL\" data-id-href=\"https:\/\/devblogs.microsoft.com\/dotnet\/build-gen-ai-with-dotnet-8\/#why-should-i-care-about-building-apps-with-ai\" data-toggle=\"tooltip\" data-placement=\"right\" data-original-title=\"Copy Post URL\"><i class=\"fabric-icon fabric-icon--Link\"><\/i><\/button><\/h2>\n<div class=\"screenreader-text\" aria-atomic=\"true\" aria-live=\"polite\"><\/div>\n<p>If you haven\u2019t started exploring AI solutions yet, here are some compelling reasons to do so:<\/p>\n<ul>\n<li><strong>Increasing User Engagement and Retention<\/strong>: Offer more relevant and satisfying interactions.<\/li>\n<li><strong>Boost Productivity and Efficiency<\/strong>: Reduce errors and save time.<\/li>\n<li><strong>Create New Business Opportunities<\/strong>: Deliver innovative and value-added services.<\/li>\n<li><strong>Gaining a Competitive Edge<\/strong>: Stay ahead of market trends and meet customer expectations.<\/li>\n<\/ul>\n<p>These are just a few of the many benefits of integrating AI into your solutions. Let\u2019s dive into the .NET developer experience today.<\/p>\n<h2>How to get started<button class=\"linkicon\" title=\"\" aria-label=\"Copy Post URL\" data-id-href=\"https:\/\/devblogs.microsoft.com\/dotnet\/build-gen-ai-with-dotnet-8\/#how-to-get-started\" data-toggle=\"tooltip\" data-placement=\"right\" data-original-title=\"Copy Post URL\"><i class=\"fabric-icon fabric-icon--Link\"><\/i><\/button><\/h2>\n<p>If you\u2019re new to AI development, check out the new\u00a0<a href=\"https:\/\/aka.ms\/dotnet-ai-docs\" target=\"_blank\" rel=\"noopener\">.NET + AI documentation and samples<\/a>. Included here are also a set of\u00a0<a href=\"https:\/\/aka.ms\/AAqofiw\" target=\"_blank\" rel=\"noopener\">quickstart guides<\/a>\u00a0that will help you get hands on with the code and try things out for yourself, using Open AI models with the Azure OpenAI SDK, or the Semantic Kernel library., using Open AI models with the Azure OpenAI SDK, or the Semantic Kernel library.<\/p>\n<p>To explore more samples that utilize AI services available in Azure, take a look at the\u00a0<a href=\"https:\/\/aka.ms\/AAqpz31\" target=\"_blank\" rel=\"noopener\">Azure Developer templates for .NET and AI<\/a>\u00a0that were recently expanded with new examples.<\/p>\n<h2>What is Semantic Kernel and why should I use it?<button class=\"linkicon\" title=\"\" aria-label=\"Copy Post URL\" data-id-href=\"https:\/\/devblogs.microsoft.com\/dotnet\/build-gen-ai-with-dotnet-8\/#what-is-semantic-kernel-and-why-should-i-use-it\" data-toggle=\"tooltip\" data-placement=\"right\" data-original-title=\"Copy Post URL\"><i class=\"fabric-icon fabric-icon--Link\"><\/i><\/button><\/h2>\n<p>In many of our samples, you\u2019ll see us using Semantic Kernel (SK) \u2013 SK is an open-source library that lets you easily build AI solutions that can call your existing code. As a highly extensible SDK, you can use Semantic Kernel to work with models from\u00a0<a href=\"https:\/\/aka.ms\/AAqr0cg\" target=\"_blank\" rel=\"noopener\">OpenAI<\/a>,\u00a0<a href=\"https:\/\/aka.ms\/AAqq6np\" target=\"_blank\" rel=\"noopener\">Azure OpenAI<\/a>,\u00a0<a href=\"https:\/\/aka.ms\/AAqpz36\" target=\"_blank\" rel=\"noopener\">Hugging Face<\/a>, and more. You can also connect to popular vector stores like Qdrant, Milivus, Azure AI Search, and a growing list of others.<\/p>\n<p>While you can work with various models and vector stores using their own .NET SDKs and REST endpoints, Semantic Kernel makes it easier to do while minimizing the impact to your code. It provides a common set of abstractions you can use to access models and vector stores using dependency injection in .NET; so, you can swap different components out as you experiment and iterate on your apps.<\/p>\n<h2>Monitoring your application locally and in production<button class=\"linkicon\" title=\"\" aria-label=\"Copy Post URL\" data-id-href=\"https:\/\/devblogs.microsoft.com\/dotnet\/build-gen-ai-with-dotnet-8\/#monitoring-your-application-locally-and-in-production\" data-toggle=\"tooltip\" data-placement=\"right\" data-original-title=\"Copy Post URL\"><i class=\"fabric-icon fabric-icon--Link\"><\/i><\/button><\/h2>\n<p>At Build we also demonstrated how to debug and diagnose your AI solutions, including monitoring in production. Semantic Kernel supports end-to-end traceability and debugging of AI calls to help you diagnose performance, quality, and cost. SK builds on top of the\u00a0<a href=\"https:\/\/aka.ms\/AAqq6nv\" target=\"_blank\" rel=\"noopener\">OpenTelemetry (OTLP) protocol<\/a>, making it easy to monitor your application using any store or reporting tool that supports it.<\/p>\n<p><a href=\"https:\/\/aka.ms\/AAqofj3\" target=\"_blank\" rel=\"noopener\">.NET Aspire<\/a>\u00a0also offers robust support for debugging and diagnosing your applications. By building on top of the .NET OpenTelemetry SDK, a .NET implementation of the OpenTelemetry observability framework, .NET Aspire simplifies the configuration of Logging, Tracing, and Metrics. At development time, the .NET Aspire dashboard makes it easy to visualize your logs, traces, and metrics. When it\u2019s time to deploy your application to production, you can leverage tools and services like Prometheus and Azure Monitor.<\/p>\n<h6><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2024\/06\/dotnet-aspire-ai-telemetry.png\" alt=\"View of .NET Aspire dashboard showing telemetry for a chat call, showing details like model used and count of tokens used\" \/><\/h6>\n<p>Read more at the full blog here: <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/build-gen-ai-with-dotnet-8\/\">Building Generative AI apps with .NET 8 &#8211; .NET Blog (microsoft.com)<\/a><\/p>\n<h2>Next Steps:<\/h2>\n<p>We&#8217;d love to chat with you on your AI journey. <a href=\"https:\/\/aka.ms\/AAqr08w\" target=\"_blank\" rel=\"noopener\">Talk with our team by filling out a brief survey<\/a>.<\/p>\n<p>We\u2019re always interested in hearing from you. If you have feedback, questions or want to discuss further, feel free to reach out to us and the community on the<a href=\"https:\/\/github.com\/microsoft\/semantic-kernel\/discussions\" target=\"_blank\" rel=\"noopener\">\u00a0discussion boards<\/a>\u00a0on GitHub! We 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\" target=\"_blank\" rel=\"noopener\">GitHub<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s we&#8217;d like to share a blog post from two members of the .NET team, Jordan Matthiesen and Luis Quintanilla, focused on Building Generative AI apps with .NET 8 &#8211; .NET Blog (microsoft.com). The future of AI is here, and .NET is ready for it! With .NET 8, you can create amazing applications that integrate [&hellip;]<\/p>\n","protected":false},"author":149071,"featured_media":2364,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[78,17,1],"tags":[79,48,63,9],"class_list":["post-2872","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-net","category-announcements","category-semantic-kernel","tag-net","tag-ai","tag-microsoft-semantic-kernel","tag-semantic-kernel"],"acf":[],"blog_post_summary":"<p>Today&#8217;s we&#8217;d like to share a blog post from two members of the .NET team, Jordan Matthiesen and Luis Quintanilla, focused on Building Generative AI apps with .NET 8 &#8211; .NET Blog (microsoft.com). The future of AI is here, and .NET is ready for it! With .NET 8, you can create amazing applications that integrate [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/posts\/2872","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=2872"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/posts\/2872\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/media\/2364"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/media?parent=2872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/categories?post=2872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/tags?post=2872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}