Blog Post

Healthcare and Life Sciences Blog
2 MIN READ

Want to build a Copilot for your app? Semantic Kernel & Prompt Flow for Beginners

MatthewAnderson's avatar
Aug 17, 2023

Hi there, I’m back with another post, I recently co-presented on a developer-focused webinar on Semantic Kernel for beginners. This webinar was part of a series about leveraging Azure OpenAI, with this one diving into how to add intelligent experiences into your new and existing applications.

In the webinar, we focused on the AI Orchestration layer of the Copilot Stack, which is a framework that helps you design and implement AI solutions using Azure OpenAI. We focused on two tools: Semantic Kernel and Azure Prompt Flow. Semantic Kernel is an SDK that allows you to interact with AI models using natural language commands, while Azure Prompt Flow is a tool that helps you create and manage prompts for AI models.

The focus of my portion of the session (starts at 25:28 in the video) was geared toward developers and the use of the Semantic Kernel SDK to easily add AI into applications. I showed how you can use the SDK in both C# and Python to create plugins, plans, and personas for Semantic Kernel.

  • Plugins - modules that connect Semantic Kernel to different AI models or services, such as GPT-3, Azure Prompt Flow, or the Microsoft Graph.
  • Plans - sequences of actions that Semantic Kernel can execute to achieve a goal, such as booking a flight or writing some content.
  • Personas - profiles that define the preferences and personality of Semantic Kernel, such as tone, style, and humor.

I used a demo to introduce these concepts, where I deconstructed the Bing Chat extension for the Edge browser, going through development of a simplified version. I used Semantic Kernel to handle the natural language understanding and generation, as well as to access Deepa’s web service (which she created in Prompt Flow, see below) through plugins.

 

My co-presenter Deepa covered the use of Azure Prompt Flow, which is a graphical interface that lets you create and edit prompts for AI models. Deepa showed how you can use Azure Prompt Flow to create prompts from scratch or from templates, test them on different models and datasets, and deploy them to Semantic Kernel or other applications.

I thoroughly enjoyed presenting this session and I hope you learned something new and useful from it. If you missed it or want to watch it again, you can find the recording on demand on YouTube. You can also check out the other webinars in the series about Azure OpenAI.

 

Want to learn more? Here are the "Resources" links that we included toward the end of the webinar: 

 

Updated Aug 17, 2023
Version 2.0
  • Hi AMateos91, thanks for checking out the post and video!

     

    There are PowerShell and Bash scripts available to deploy the demoed Chat Copilot infrastructure, back-end, and front-end apps. Details of how to use the scripts are here: chat-copilot/scripts/deploy/README.md at main · microsoft/chat-copilot (github.com)

     

    Azure app registrations will need to be created in advance as a prerequisite, with instructions for that available in the same README linked above.

  • AMateos91's avatar
    AMateos91
    Iron Contributor

    Thank you so much for sharing!

    I would only have one question; is there any current automated implementations to code on PowerShell a faster track to deploy the environment required to set up the chat copilot?

     

    Thank you for your attention. Best!

  • AMateos91's avatar
    AMateos91
    Iron Contributor

    Hello Matthew, 

    Ok perfect. Everything understood.

     

    Thank you for your attention!

    Best regards