- Notifications
You must be signed in to change notification settings - Fork0
Integrate cutting-edge LLM technology quickly and easily into your apps
License
j4t-git/semantic-kernel
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
ℹ️NOTE: This project is just like AI and will evolve quickly.We invite you to join us in developing the Semantic Kernel together!Please contribute byusing GitHubDiscussions,opening GitHubIssues,sending usPRs,joining ourDiscord community.
Semantic Kernel (SK) is a lightweight SDK enabling integration of AI LargeLanguage Models (LLMs) with conventional programming languages. The SK extensibleprogramming model combines natural languagesemantic functions, traditionalcodenative functions, andembeddings-based memory unlocking new potentialand adding value to applications with AI.
SK supportsprompt templating, functionchaining,vectorized memory, andintelligent planningcapabilities out of the box.
Semantic Kernel supports and encapsulates several design patterns from the latestin AI research, such that developers can infuse their applications withplugins likepromptchaining, recursive reasoning, summarization, zero/few-shot learning, contextualmemory, long-term memory,embeddings, semantic indexing,planning, retrieval-augmented generation and accessing externalknowledge stores as well as your own data.
By joining the SK community, you can build AI-first apps faster and have a front-rowpeek at how the SDK is being built. SK has been released as open-source so that morepioneering developers can join us in crafting the future of this landmark momentin the history of computing.
Semantic Kernel is available to explore AI and build apps with C#, Python and Java:
![]() |
See theFeature Matrix to see a breakdown of feature parity between our currently supported languages.
The quickest way to get started with the basics is to get an API key(OpenAI or Azure OpenAI)and to run one of the C#, Python, and Java console applications/scripts:
- Create a new console app.
- Add the semantic kernel nuget
Microsoft.SemanticKernel
. - Copy the code fromhere into the app
Program.cs
file. - Replace the configuration placeholders for API key and other params with your key and settings.
- Run with
F5
ordotnet run
- Install the pip package:
python -m pip install semantic-kernel
. - Create a new script e.g.
hello-world.py
. - Store your API key and settings in an
.env
file as describedhere. - Copy the code fromhere into the
hello-world.py
script. - Run the python script.
- Clone the repository:
git clone https://github.com/microsoft/semantic-kernel.git
- Switch to
semantic-kernel
directory and then checkout experimental Java branch:git checkout experimental-java
- Follow the instructionshere
The repository includes some sample applications, with a React frontend anda backend web service using Semantic Kernel.
Follow the links for more information and instructions about running these apps.
Simple chat summary | Use ready-to-use plugins and get plugins into your app easily. |
Book creator | Use planner to deconstruct a complex goal and envision using the planner in your app. |
Authentication and APIs | Use a basic connector pattern to authenticate and connect to an API and imagine integrating external data into your app's LLM AI. |
GitHub repository Q&A | Use embeddings and memory to store recent data and allow you to query against it. |
Copilot Chat Sample App | Build your own chat experience based on Semantic Kernel. |
Requirements:
- You will need anOpen AI API Key orAzure Open AI service keyto get started.
- Azure Functions Core Toolsare required to run the kernel as a local web service, used by the sample web apps.
- .NET 6 SDK or.NET 7 SDK
- Yarn is used for installing web apps' dependencies.
Getting Semantic Kernel deployed to Azure as web app service is easy with one-click deployments. Clickhere to learn more on how to deploy to Azure.
For a more hands-on overview, you can also check out the C# and Python Jupyter notebooks, startingfrom here:
Requirements: C# notebooks require.NET 7and the VS CodePolyglot extension.
We welcome your contributions and suggestions to SK community! One of the easiestways to participate is to engage in discussions in the GitHub repository.Bug reports and fixes are welcome!
For new features, components, or extensions, please open an issue and discuss withus before sending a PR. This is to avoid rejection as we might be taking the corein a different direction, but also to consider the impact on the larger ecosystem.
To learn more and get started:
- Read thedocumentation
- Learn how tocontribute to the project
- Join theDiscord community
- Attendregular office hours and SK community events
- Follow the team on ourblog
This project has adopted theMicrosoft Open Source Code of Conduct.For more information see theCode of Conduct FAQor contactopencode@microsoft.comwith any additional questions or comments.
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under theMIT license.
About
Integrate cutting-edge LLM technology quickly and easily into your apps
Resources
License
Code of conduct
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- C#76.9%
- Python23.1%