/semantic-kernel-demos

Collection of demos for Semantic Kernel

Primary LanguageC#

Semantic Kernel Demos

Setup

You need to provide deployment, endpoint and apikey for your deployments. Set these as environment variables.

export deployment="your-deployment"
export endpoint="your-endpoint"
export apikey="your-apikey"

You can also use dotnet user-secrets to store these values.

dotnet user-secrets init
dotnet user-secrets set "deployment" "your-deployment"
dotnet user-secrets set "endpoint" "your-endpoint"
dotnet user-secrets set "apikey" "your-apikey"

Basic Chat

An example of a basic chatbot with a system prompt that set the tone of the conversation.

FunctionCalling

Demos of using plugins and function calling. Includes built-in functions and custom functions.

To use the Weather plugin, you need to provide an API key for OpenWeatherMap. Set this as a user secret.

dotnet user-secret set "OpenWeather:ApiKey" "your-apikey"

WebChat

An example of a chatbot that can be embedded in a web page.

Extract details from image

An example of using a vision model to extract details from an image. In this particular case it extracts company details from a PUB agreement.