Start learning how to use Semantic Kernel
In just a few steps, you can start running the getting started guides for Semantic Kernel in either C# or Python. After completing the guides, you'll know how to...
- Configure your local machine to run Semantic Kernel
- Run AI prompts from the kernel
- Make AI prompts dynamic with variables
- Create a simple AI agent
- Automatically combine functions together with planners
- Store and retrieve memory with embeddings
If you are an experienced developer, you can skip the guides and directly access the packages from the Nuget feed or PyPI.
Instructions for accessing the
SemanticKernel Nuget feed is available here. It's as easy as:
#r "nuget: Microsoft.SemanticKernel, *-*"
Requirements to run the guides
Before running the guides in C#, make sure you have the following installed on your local machine.
If you are using the Python guides, you just need
python. These guides have been tested on python versions 3.8-3.11.
Download and run the guides
To setup the guides, follow the steps below.
Have your OpenAI or Azure OpenAI keys ready to enter when prompted by the Jupyter notebook.
Use your web browser to visit aka.ms/sk/repo on GitHub.
Clone or fork the repo to your local machine.
If you are new to using GitHub and have never cloned a repo to your local machine, please review this guide.
If you are a new contributor to open source, please fork the repo to start your journey.
If you have trouble cloning or forking the repo, you can watch the video below.
While the repository is open in VS Code, navigate to the
Choose either the
pythonfolder based on your preferred programming language.
Open the 00-getting-started.ipynb notebook.
Activate each code snippet with the "play" button on the left hand side.
If you need help running the 00-getting-started.ipynb notebook, you can watch the video below.
Repeat for the remaining notebooks.
Like what you see?
If you are a fan of Semantic Kernel, please give the repo a ⭐️ star to show your support.
The guides are an easy way run sample code and learn how to use Semantic Kernel. If you want to learn more about the concepts behind Semantic Kernel, keep reading the docs. Based on your experience level, you can jump to the section that best fits your needs.
|Experience level||Next step|
|For beginners who are just starting to learn about AI||Learn prompt engineering|
|For people who are well versed in prompt engineering||Orchestrate AI plugins|
|For people familiar with using AI plugins||Store and retrieve memory|