Microsoft Semantic Kernel - Build LLM Apps in C# DOT NET and Python
Key Takeaways
The video demonstrates how to build LLM apps using Microsoft Semantic Kernel in C# and Python, covering its features, capabilities, and usage in tasks such as prompt templating, chaining, and planning.
Full Transcript
hey what's up coders welcome to one little coder Microsoft has recently launched an open source package called semantic kernel it's like a framework which helps you integrate large language models within your existing applications for example let's say you've got a gpd4 use case and you already have an application for example a calendar application how do you efficiently integrate the gpt4 inside your calendar application is what you can use semantic kernel for if you heard this and then you thought oh is this related to Lang chain or is this like GPT index exactly Microsoft is coming up with a similar framework what Lang chain has been doing in the python world and Microsoft has started with C sharp I don't know who uses C sharp like I'm not quite familiar with C sharp at this point but it looks like Microsoft is starting with C sharp keeping Microsoft developers in mind and also semantic kernel is coming soon for python so in this video I'm going to show you certain details that I know about semantic kernel I have not tried semantic kernel yet I'm not a c-sharp developer but I'm going to tell you everything that I know about semantic kernel including they've got a free LinkedIn course and how you can build your skills on top of it to start with couple of days back Microsoft put out a block opposing hello semantic kernel and basically what they are saying is semantic kernel is a lightweight SDK like let's say framework that lets you mix conventional programming languages like C sharp and python with large language model AI proms with what kind of things that they can do they can help you with prompt templating which is something that long chain already has got now what is a prompt templating so for example if you want to ask a question why is this why let's say a particular product is bad now instead of having the product hard coded you can have a prompt template in which like you can use like very similar like what you do with if string in Python you can do prompt template there so now that is prompt templating you can do chaining combining multiple responses training is more complicated than multiple responses just planning capabilities so prompt here semantic kernel can help you with prompt templating chaining planning multiple capabilities that's what they have said so now what does it help you do it helps you do certain things for example you want to summarize a Lindy chat that is already on um you know like some platform you can do that or you want to flag an important Next Step that is in Microsoft graph you can do that if you want to plan your next trip along with booking an air ticket you can do that so if you see this is like an automation I don't know how many of you actually know about if this then that there is a very popular application like back in the day um it's a it's an application where you can set rules if this then that so you can set like an automation rule like very similar like with this appear but on the free app version so what you can see here what Microsoft is trying to do is it's trying to bring together that kind of capability within the large language model space for existing developers so they want to capture the existing developers like C sharp developers or python developers who want to integrate large language model capabilities within their application now specifically talking about semantic kernel what is it central to semantic kernel that like the most important thing for semantic kernel is something called a skill now what is this skill going to do the skill can be either of these two so the skill can be a semantic code or a native code now what is the semantic code a semantic code is when you have a large language model prompt an AI prompt for a large language model is semantic code and a native code is like a normal computer code so now a skill is like combination of these functions and these functions could be semantic code or a native code and this combines and then creates the collection of skills the skills that are going to be used for everything else in this now that is skill now the next thing is memory memory is basically context when you have a conversation with charge GPT does charge GPT understand what you said at the start so that context is what memory is and connectors like for example you have got slack in your company you want to use slack data you want to use Google Google sheet data so these are connectors so they are providing you memory connector how you connect this with skill and finally they have something called a planner and we can see see from this picture also they have something called planner now what is a planner planner facilitates you to do complex tasks by taking a user ask and then translating it to skill memory connector so like user would come and say you know I want to do this that that statement from the user is now split into skill memory connector with the help of planner and that's what planner is doing and semantic kernel currently supports even the latest gpd4 and also Azure open a service again I have not tried it myself but it looks quite promising from what is Microsoft doing it almost feels like Microsoft is in like some crazy Nitro mode if you if you're familiar with car race to just ship something every single day and capture this entire large language model so they almost did not capture the browser model or maybe browser was forced on people they had a good operating system but you know still a lot of people love Mac but still Microsoft operating system is quite big they did not do well on the laptop Hardware side they did not do well on the smartphone Hardware side they did not do anything at all on the I mean there was Windows OS but they couldn't capitalize a good Market in the smartphone OS side and search engine we all know it looks like Microsoft wants to really establish themselves as the AI leader in the in the space current space that we have got if you compare it with companies like Google Apple Amazon like the fan companies meta is quite good but generally if you see so semantic kernel looks like your Lang chain equivalent if you are in the Microsoft ecosystem or if you are in let's say C sharp to start with but like I said it's not only C sharp but at this point there is a there is a python preview that is available right now so you can see it's a very simple python code so you can see it's um you import semantic kernel and then use import async IO create the kernel and from there you add some configuration about which model do you want to use um for example fine tuning model like the base model DaVinci which prompting model you want to use open a key after that you create the prompt which is very similar like your prompting template and then you are going to create a semantic function as you can see this is a semantic function it's not a native function so native function would be like simple python code this is semantic function and then you are going to say what do you want to summarize because this is a summarization script and then you run everything and then you get the result so now this is a very simple example of how you can use semantic kernel for a summarization task with open a open GPT 3 in this case it takes wency over 3 GPT 3.5 now this is also coming and they are going to it's currently it's called preview but it's not finalized but this is currently available so semantic kernel is available for C sharp users python users now if you want to get started with semantic kernel I would strongly encourage you to go read this blog post but again they have come up with this LinkedIn course for free I mean if you do not know Microsoft owns LinkedIn so they have come up with this LinkedIn course where you can learn introduction to semantic kernel who is semantic kernel for what is semantic kernel why do you develop something on semantic kernel rather than you know going native getting started with semantic kernel and then some example sample examples I have not taken the course yet but you can actually see that there are already 513 people actively taking this course and uh 221 9 291 people have bookmarked there is an interest in this course and if you if you are let's say a C sharp developer like a DOT net developer then you should definitely look at semantic kernel so overall if you're a dotnet developer if you're a python developer it's really good for you to get familiarized with this particular World which is a large language model world and a lot of people have been seeing the benefit of using Lang chain as opposed to directly doing something with open a so it provides a lot of this what Microsoft is giving so if you want something alternative to Lang chain or if you want to look at something new from a big corporation like Microsoft definitely this is an open source package but you can bet on a development from a company like Microsoft so if you are looking for this kind of large language model based EI application or if you already have an application which you want to include large language model in it to be powered by AI then semantic kernel is something that definitely you should check out I will link all the required links in the YouTube description I hope this video was helpful to you in learning what does Microsoft schematic kernel and how can you use it what do you do with that if you have any question let me know in the comment section otherwise I will see you in another video
Original Description
Microsoft Semantic Kernel is designed to support and encapsulate several design patterns from the latest in AI research, such that developers can infuse their applications with complex skills like prompt chaining, recursive reasoning, summarization, zero/few-shot learning, contextual memory, long-term memory, embeddings, semantic indexing, planning, and accessing external knowledge stores as well as your own data.
Semantic Kernel Blog post - https://devblogs.microsoft.com/semantic-kernel/hello-world/
Semantic Kernel Github - https://github.com/microsoft/semantic-kernel
SK Skills - https://github.com/microsoft/semantic-kernel/blob/main/docs/SKILLS.md
Sample Dotnet LLM Apps - https://github.com/microsoft/semantic-kernel/tree/main/samples/notebooks/dotnet
Linkedin Course - https://www.linkedin.com/learning/introducing-semantic-kernel-building-ai-based-apps/introducing-semantic-kernel?autoplay=true
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from 1littlecoder · 1littlecoder · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
How to create your Free Data Science Blog on Github with Fastpages from Fastai
1littlecoder
Making Interactive Matplotlib Plots for Data Science Visualizations on Jupyter (Python)
1littlecoder
Create your first Data Science Web App using R Shiny
1littlecoder
How to create a Reproducible Example in R using reprex
1littlecoder
No Code Visualization using esquisse with Tableau-like Drag and Drop GUI in R
1littlecoder
Scrape HTML Table using rvest and Process them for insights using tidyverse in R
1littlecoder
Google Teachable Machine Learning Build No Code AI solution
1littlecoder
Create meaningful fake tidy datasets in R using fakir [#rstats Package]
1littlecoder
How to enable using R Programming with Visual Studio VS Code
1littlecoder
Python, Community, Books - with Abhiram R - Bangpypers Co-organizers | 1littlecoder podcast
1littlecoder
Growing a Tech Community across India - Anubha Maneshwar, Founder Girlscript | 1littlecoder Podcast
1littlecoder
Intro to Google Colab - How to use Colab
1littlecoder
Intro to Plotly Express - Complex Interactive Charts with One-Line of Python Code
1littlecoder
Indic NLP Python Toolkit Open Source Development - iNLTK Creator Gaurav Arora | 1littlecoder Podcast
1littlecoder
Do you want a career in Data Science - Tamil Webinar
1littlecoder
Android Smartphone Analysis in R [Live Coding Screencast]
1littlecoder
Programmatically create Images, Memes, Watermarks using Python with imgmaker
1littlecoder
Kaggle Walkthrough to get you started with Data Science - Webinar
1littlecoder
Community, Corporate Job, Coding - Gnana Lakshmi T C aka Gyan, WomenWhoCode Leadership Fellow
1littlecoder
Easy ggplot2 Theme Customization with {ggeasy} | Data Visualization in R
1littlecoder
Excel to R - Pivot + Bar Chart in Excel & R using tidyverse [Live Coding]
1littlecoder
Excel to R #2 - VLOOKUP in Excel to LEFT_JOIN, MERGE in R
1littlecoder
5 websites to get Free Real-World Datasets for Data Science/ML Projects
1littlecoder
Excel to R #3 - APPROXIMATE VLOOKUP in Excel to FUZZY LEFT_JOIN in R
1littlecoder
Correlation-alternative PPS (Predictive Power Score) Python Package Demo
1littlecoder
Automated Website Screenshots in R using {webshot}
1littlecoder
Installing Custom RStudio Theme (Synthwave85)
1littlecoder
Analyse Google Trends Search Data in R using {gtrendsR}
1littlecoder
3 Tips to ask question on Stack Overflow the right way to get answers
1littlecoder
Learn Data Science with R - Mini Projects - Web Scraping Zomato
1littlecoder
Easily make Dumbbell Chart using {ggcharts} | Data Visualization in R
1littlecoder
GET Hackernews Front Page Results using REST API in R
1littlecoder
Quickly deploy ML WebApps from Google Colab using ngrok
1littlecoder
Use Jupyter Notebooks within VSCode (Visual Studio Code) in 2020
1littlecoder
Plotly Interactive Plots as Pandas Plotting Backend df.plot()
1littlecoder
Stack Overflow Developer Survey 2020 Highlights for New Programmers
1littlecoder
Matplotlib Animation Charts in Python using Celluloid
1littlecoder
Coding, Postwoman, Passion Project Book - Liyas Thomas Open Source Developer - 1littlecoder podcast
1littlecoder
Aspiring Data Scientist, Tips on How to learn Business Domain Knowledge
1littlecoder
Bokeh Interactive Charts as Pandas Plotting Backend df.plot_bokeh()
1littlecoder
Easy Fast Python Pandas Summary with Sidetable | Pandas Tips & Tricks
1littlecoder
Inception, Content Ideas, Consistency - Srivatsan Srinivasan AIEngineering YouTube Content Creator
1littlecoder
ggplot2 Text Customization with ggtext | Data Visualization in R
1littlecoder
Penguins Dataset Overview - iris alternative | EDA Data Visualization in R
1littlecoder
YouTube Growth Tips, Content Creation - Bhavesh Bhatt, YouTuber (Data Science & Machine Learning) #7
1littlecoder
Matplotlib Animated Bar Chart Race in Python | Data Visualization
1littlecoder
Simple Python GUI Development using {guietta}
1littlecoder
#8 Niche, Growth, Monetization - David Langer - YouTuber Dave on Data
1littlecoder
Simple Fast 3-step Python OCR using Deep Learning 40+ Languages
1littlecoder
Github New Feature Profile Summary/Mini-Resume - Profile Views
1littlecoder
Otto ML Assistant, GPT-3 on Philosophers, Nvidia-ARM - 3 ML Tech News
1littlecoder
What is OpenAI GPT-3 - Hype, Examples, Worries
1littlecoder
Julia 1.5, Datamuse API, Live HDR+ Pixel 4a - Machine Learning Tech News
1littlecoder
Self-driving Car Engineer sentenced, arXiv Dataset, AI/ML Startup Idea - Machine Learning Tech News
1littlecoder
GPT-3 Explorer, Ciphey (Automated Decryption), Py-Sudoku - ML Tech News
1littlecoder
How to use Advanced Google Search to extract Email Ids from Linkedin
1littlecoder
Cartoonizer Toon-IT (AI Web App), GPT-3 Advice, Android Earthquake Detection - ML Tech News
1littlecoder
Flow - R Package to visualize code logic, functions as a Flow Diagram
1littlecoder
Build GPT-3-like Language Model on Google Colab with minGPT [PyTorch]
1littlecoder
Create a Pencil Sketch Portrait with Python OpenCV
1littlecoder
More on: LLM Foundations
View skill →Related Reads
📰
📰
📰
📰
Guardrails AI: preventing LLM hallucinations and enforcing output structure
Dev.to AI
I Built a Dead-Simple API Gateway for My Local LLMs in 50 Lines of Python
Dev.to AI
Build with Open-Weight LLMs: A Developer's Guide to API Integration
Dev.to AI
How to Add Real-Time Web Search to LlamaIndex Agents
Dev.to · Cecilia Hill
🎓
Tutor Explanation
DeepCamp AI