Member-only story
Run AI Models in C# with Semantic Kernel: Build Smarter Applications
Understanding Semantic Kernel with C# Examples
Semantic Kernel (SK) is an open-source framework by Microsoft designed to enable AI-first development. It allows developers to integrate Large Language Models (LLMs) like OpenAI’s GPT into their applications in a structured and meaningful way. SK combines the power of AI with traditional programming patterns, enabling seamless interaction between AI and conventional code.
This article explains the core concepts of Semantic Kernel and provides a practical C# example.
What is Semantic Kernel?
Semantic Kernel acts as a bridge between AI and your application. It provides capabilities to define “skills,” which encapsulate AI prompts and traditional code into reusable units. These skills are then used to perform various tasks, such as answering questions, summarizing text, or performing complex workflows.
Key Features of Semantic Kernel
- Skills: Skills in SK are a collection of AI functions and traditional code. Each function performs a specific task.
- Plugins: Skills can act as plugins to extend the functionality of your application.