Semantic Kernel

The latest news from the Semantic Kernel team for developers

Latest posts

Protecting against Prompt Injection Attacks in Chat Prompts
Aug 28, 2024
Post comments count 0
Post likes count 3

Protecting against Prompt Injection Attacks in Chat Prompts

Mark Wallace Sophia Lagerkrans-Pandey
Mark,
Sophia

Semantic Kernel allows prompts to be automatically converted to ChatHistory instances. Developers can create prompts which include <message> tags and these will be parsed (using an XML parser) and converted into instances of ChatMessageContent. See mapping of prompt syntax to completion service model for more information. Currently it is possible to use variables and function calls to insert <message> tags into a prompt as shown here: This is problematic if the input variable contains user or indirect input and that content contains XML elements. Indirect input could come from an email. It is...

Step-by-Step Guide to Building a Powerful AI Monitoring Dashboard with Semantic Kernel and Azure Monitor
Aug 23, 2024
Post comments count 0
Post likes count 6

Step-by-Step Guide to Building a Powerful AI Monitoring Dashboard with Semantic Kernel and Azure Monitor

Sophia Lagerkrans-Pandey Akshay Kokane
Sophia,
Akshay

Today we're featuring a guest author, Akshay Kokane, who's a Software Engineer at Microsoft within the Azure CxP team. He's written an article we're sharing below, focused on a Step-by-Step Guide to Building a Powerful AI Monitoring Dashboard with Semantic Kernel and Azure Monitor: Master TokenUsage Metrics and Custom Metrics using SK Filters. We'll turn it over to Akshay to share more! Semantic Kernel is one of the best AI Framework for enterprise application. It provides cool and useful out of box features. In this blog we will look into how you can integrate Semantic Kernel with Azure Monitors, ...

Diving into Function Calling and its JSON Schema in Semantic Kernel Python
Aug 22, 2024
Post comments count 0
Post likes count 2

Diving into Function Calling and its JSON Schema in Semantic Kernel Python

Evan Mattson
Evan Mattson

One of the most exciting features available in certain Large Language Models (LLMs) is function-calling. In Semantic Kernel, we handle the heavy lifting so that you can bring your own code or utilize built-in plugins that cater to your use case. Our goal is to make it easy for you to incorporate function calling into your application. Today, we'll dive into how we create the function-calling JSON schema. This schema is a core piece of functionality that the model requires to decide which function to call for a given context. For those unfamiliar, function calling refers to executing local code, typically on a ...

Customer Case Study: KPMG Clara AI and Microsoft’s Semantic Kernel
Aug 20, 2024
Post comments count 0
Post likes count 1

Customer Case Study: KPMG Clara AI and Microsoft’s Semantic Kernel

Sophia Lagerkrans-Pandey
Sophia Lagerkrans-Pandey

Today we're featuring KPMG on our Semantic Kernel blog for their work on Clara AI in KPMG. You can learn more about the solution here: KPMG Partnership with Microsoft's Semantic Kernel Here's a quote from KPMG on the partnership, "Microsoft and KPMG entered a strategic alliance to modernize the work of KPMG professionals. KPMG Clara AI demonstrates the impact of that alliance. Built on Azure AI, KPMG Clara AI provides the latest in AI advancements to KPMG audit professionals in a responsible manner. By using Microsoft's Semantic Kernel, our development team quickly delivered complex, agentic AI workflow...

Customer Case Study: Orion Innovation’s usage of Kernel Arguments
Aug 15, 2024
Post comments count 0
Post likes count 1

Customer Case Study: Orion Innovation’s usage of Kernel Arguments

Sophia Lagerkrans-Pandey
Sophia Lagerkrans-Pandey

Today we're featuring Vyshag Vadakara and Prasanth Thekkelthody from Orion Innovation and a recent article Vyshag published focused on Orion's usage of Microsoft Semantic Kernel. The article is linked here: Discover the Magic of Microsoft’s Semantic Kernel Arguments.   Getting Started The article highlights the benefits of using Semantic Kernel and the best way to learn through exploring the samples provided in the repository. The article highlights the key benefits of Kernel Arguments. As Vyshag details in the article, "One of the features of the Semantic Kernel is its Kernel Arguments. These argume...

Support for Azure.AI.OpenAI and OpenAI v2 is here
Aug 13, 2024
Post comments count 0
Post likes count 4

Support for Azure.AI.OpenAI and OpenAI v2 is here

Mark Wallace
Mark Wallace

Update: We have released a new NuGet Gallery | Microsoft.SemanticKernel 1.18.1-rc release candidate which has been updated to depend on NuGet Gallery | OpenAI 2.0.0-beta.10 and NuGet Gallery | Azure.AI.OpenAI 2.0.0-beta.3. Today we are announcing that support for Azure.AI.OpenAI and OpenAI v2 .NET SDK is available in the Semantic Kernel v1.18.0-rc release candidate. This release supports the official OpenAI library for .NET which Microsoft announced at the Build 2024 conference. This new SDK ensures that .NET developers have parity with other programming language libraries when accessing Azure OpenAI models. T...

Guest Blog: Microsoft MVP Developed Course on Understanding Semantic Kernel
Aug 6, 2024
Post comments count 2
Post likes count 5

Guest Blog: Microsoft MVP Developed Course on Understanding Semantic Kernel

Sophia Lagerkrans-Pandey
Sophia Lagerkrans-Pandey

Today we're featuring an AI Microsoft Most Valuable Professional (MVP) who's been developing content on Semantic Kernel. We wanted to highlight Jamie Maguire's work and detail the multi-part blog below. Here's the link to his course: New Course: Understanding Semantic Kernel – Jamie Maguire https://jamiemaguire.net/index.php/2024/08/03/new-free-course-understanding-semantic-kernel/ Jamie has broken the Semantic Kernel content he's developed for an Understanding Semantic Kernel course into 7 parts. By the end of the course, you will understand: Learning Course Flow 0 – First Look, Integ...

Introducing enterprise multi-agent support in Semantic Kernel
Aug 1, 2024
Post comments count 1
Post likes count 5

Introducing enterprise multi-agent support in Semantic Kernel

Chris Rickman Evan Mattson
Chris,
Evan

The term "agent" has become a popular term within the industry. There have many different definitions, but at their core, they consist of a system prompt (i.e., a persona), plugins, and an ability to automatically reason and create plans to address user goals. Up until today, we've demonstrated how you could use components of Semantic Kernel to build agents. With just a few lines of code, you can use a chat completion model to answer user's questions and to automatically invoke plugins as necessary. What was missing, however, was a first-class agent abstraction. Not only would this simplify code by consolid...

What’s coming next? Summer / Fall roadmap for Semantic Kernel
Jul 30, 2024
Post comments count 2
Post likes count 4

What’s coming next? Summer / Fall roadmap for Semantic Kernel

Matthew Bolanos
Matthew Bolanos

It feels like yesterday when we went live with v1.0+ of all our SDKs (Python, Java, and C#) at Microsoft Build. Since then, the Semantic Kernel team has been hard at work making Semantic Kernel even better. Now that we've made some progress, we'd like to share what we have planned over the next few months for Microsoft Ignite. To see everything we have planned, check out the video below where I cover the 4 main areas we plan on investing in. You can also keep reading for a quick recap of our planned enhancements. Enhancing enterprise requirements We hear time and time again that the main value customers ...