SlideShare a Scribd company logo
Do you need Python to play
with LLM?
Marco De Nittis
Independent cloud architect
marco.denittis [a] gmail.com | @mdnmdn
First steps with Semantic Kernel
Who am I?
• Independent cloud architect
• Trainer
• ❤ cloud, serverless, devops, AI, wasm
• Curious and tinkerer
Objectives
• A gentle introduction to LLM-ized apps
• First steps with Semantic Kernel
BTW what is a LLM?
• Probabilistic engine: most probable text
response from input
• according to the corpus
• Pure function (almost)
• No dynamic/short term memory
string llm(string input,…){
…
}
Why in our app?
• Add some kind of intelligence
• Retrieve and summary info semantically
• Understand unstructured input
• Generate “creative” data
How
• Train custom AI model
• Refine existing models
• Consume 3rd party models via API
• OpenAI
• Azure AI services
• Hugging face
• …
Semantic Kernel …what?
• Integrate AI services with apps
• Open source SDK
• By Microsoft with ❤
• Enhance base functionality of AI API
• High level functions
• Overlaps with python fwk as langchain
• Multiplaform
• Features
• Connectivity to AI services
• Custom “functions" to empower AI
• Integrated memory support
• Orchestrate AI to use all features available
• Assistants API
Semantic Kernel 2
NEW
MangoBot
• Discord Bot
• Community helper
• AI driven
Demo
First steps
Architecture
• Connectors:
• consume AI model, vector DBs
• Plugins:
• Provide LLM enhancements
• “Make a summary”, “Sentiment analysis”
• Integrates with external systems
• “Send a message”, “List of discord users"
Plugins/functions
• Plugins: group of functions
• Functions: enhance model capabilities
• AI, prompt based:
• “Summarize”, “Write an haiku"
• Code based:
• “GetTime”, “Send a message”, “Search in internet”
Memory of a LLM
• LLMs have no memory
• Several techniques to provide custom data:
• Include all infos in prompt
• Eg: all messages of chat
• Retrieval Augmented Generation (RAG)
• Vector DB + Semantic Search
• Fine tuning
RAG
• Include in prompt only relevant data
• Data are semantically searchable in a vector DB
• Embeddings:
• conversion from text to a vector of floats
• Coordinates in a “space of concepts”
• Vector DB makes vector searchable by similarity
RAG
Demo
Memory
Semantic Kernel functions
• Specialized Behaviours
• Zero or more input parameters
• Text output
• Controlled and invoked by the LLM
• Function and parameters are decorated with text description to
be understood and used by an LLM
Semantic Functions
• Functions "executed" in an LLM
• Eg: “SummarizeText"
• Based on prompt engineering
• Modes:
• Inline (strings in C#)
• Textual/templated: defined by text + json metadata
Native Function
• Expose capabilities provided via code:
• GetTime
• Send a mail
• Access internet
• Function and parameters decorated via textual descriptions
• 2 degrees of intelligence:
• Code inside the function
• Elaboration of result by AI
Planners
• Orchestrates chains of functions
• Let the AI decide:
• Which functions to call
• How use the parameters/results
• How to compose them
• Awesome results
• Cost intensive
Demo
Planner for complex actions
Challenges
• Let act the LLM in a efficient way
• Prompt injection
• Appropriate handling of business data
• Predictability
• Cost management
• Sustainability
Thank you 🙇
• Questions?
• Feedback:
• https://speakerscore.it/NET23-SK
• Code:
• https://github.com/mdnmdn/netconf-ita-2023-semantic-kernel-mangobot/
@mdnmdn
marco.denittis [a] gmail.com
Slide e materiale su
https://www.dotnetconference.it/

More Related Content

PPTX
Generative AI in CSharp with Semantic Kernel.pptx
PPTX
AzureOpenAI.pptx
PDF
AI and the Financial Service Segment
PDF
Reading the IBM AI Strategy for Business
PPTX
introduction Azure OpenAI by Usama wahab khan
PPTX
METAVERSE final ppt.pptx
PDF
ai in health care
PDF
Artificial intelligence & Machine learning role in financial services
Generative AI in CSharp with Semantic Kernel.pptx
AzureOpenAI.pptx
AI and the Financial Service Segment
Reading the IBM AI Strategy for Business
introduction Azure OpenAI by Usama wahab khan
METAVERSE final ppt.pptx
ai in health care
Artificial intelligence & Machine learning role in financial services

What's hot (20)

PDF
Leveraging Generative AI: Opportunities, Risks and Best Practices
PPTX
An Introduction to Generative Artificial Intelligence
PPTX
Input output devices
PDF
Informatica Training | Informatica PowerCenter | Informatica Tutorial | Edureka
PPTX
Artificial intelligence
PPT
Future of Computers
PDF
Nasscom AI top 50 use cases
PPTX
Hyper Automation.pptx
PPT
artificial intelligence
PPT
History of computer
PPTX
Chatbots - The Business Opportunity
PPTX
The Creative Ai storm
PPTX
Generative AI and ChatGPT - Scope of AI and advance Generative AI
PPT
artificial intelligence
PPTX
200109-Open AI Chat GPT-4-3.pptx
PDF
AI, Creativity and Generative Art
PPTX
The sixth sense technology complete ppt
PPTX
Virtual reality The Future
POTX
5 Powerful Real World Examples Of How AI Is Being Used In Healthcare
PPTX
01 computing
Leveraging Generative AI: Opportunities, Risks and Best Practices
An Introduction to Generative Artificial Intelligence
Input output devices
Informatica Training | Informatica PowerCenter | Informatica Tutorial | Edureka
Artificial intelligence
Future of Computers
Nasscom AI top 50 use cases
Hyper Automation.pptx
artificial intelligence
History of computer
Chatbots - The Business Opportunity
The Creative Ai storm
Generative AI and ChatGPT - Scope of AI and advance Generative AI
artificial intelligence
200109-Open AI Chat GPT-4-3.pptx
AI, Creativity and Generative Art
The sixth sense technology complete ppt
Virtual reality The Future
5 Powerful Real World Examples Of How AI Is Being Used In Healthcare
01 computing
Ad

Similar to Semantic kernel - Do you need Python to play with LLM? (20)

PDF
Integrate LLM in your applications 101
PPTX
Logic appsforbeginners
PPT
David buksbaum a-briefintroductiontocsharp
PDF
The Python in the Apple
PPT
Dot net Online Training | .Net Training and Placement online
PDF
Toward Hybrid Cloud Serverless Transparency with Lithops Framework
PDF
8. Software Development Security
PPTX
Discovering Vulnerabilities For Fun and Profit
PDF
Infrastructure Challenges in Scaling RAG with Custom AI models
PDF
ClojuTRE2015: Kekkonen - making your Clojure web APIs more awesome
PDF
A Multi-Tenancy Cloud-Native Digital Library Platform
PDF
Serverless Node.js
PDF
CISSP Prep: Ch 9. Software Development Security
PPTX
Azure Digital Twins 2.0
PPTX
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
PDF
8. Software Development Security
PPTX
With Automated ML, is Everyone an ML Engineer?
PDF
MongoDB Basics
PPTX
TypeScript and Angular2 (Love at first sight)
Integrate LLM in your applications 101
Logic appsforbeginners
David buksbaum a-briefintroductiontocsharp
The Python in the Apple
Dot net Online Training | .Net Training and Placement online
Toward Hybrid Cloud Serverless Transparency with Lithops Framework
8. Software Development Security
Discovering Vulnerabilities For Fun and Profit
Infrastructure Challenges in Scaling RAG with Custom AI models
ClojuTRE2015: Kekkonen - making your Clojure web APIs more awesome
A Multi-Tenancy Cloud-Native Digital Library Platform
Serverless Node.js
CISSP Prep: Ch 9. Software Development Security
Azure Digital Twins 2.0
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
8. Software Development Security
With Automated ML, is Everyone an ML Engineer?
MongoDB Basics
TypeScript and Angular2 (Love at first sight)
Ad

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPT
Teaching material agriculture food technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Cloud computing and distributed systems.
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Unlocking AI with Model Context Protocol (MCP)
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Teaching material agriculture food technology
Reach Out and Touch Someone: Haptics and Empathic Computing
The AUB Centre for AI in Media Proposal.docx
Programs and apps: productivity, graphics, security and other tools
Cloud computing and distributed systems.
Spectral efficient network and resource selection model in 5G networks
Network Security Unit 5.pdf for BCA BBA.
Dropbox Q2 2025 Financial Results & Investor Presentation
Encapsulation_ Review paper, used for researhc scholars
sap open course for s4hana steps from ECC to s4
Advanced methodologies resolving dimensionality complications for autism neur...
Empathic Computing: Creating Shared Understanding
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

Semantic kernel - Do you need Python to play with LLM?

  • 1. Do you need Python to play with LLM? Marco De Nittis Independent cloud architect marco.denittis [a] gmail.com | @mdnmdn First steps with Semantic Kernel
  • 2. Who am I? • Independent cloud architect • Trainer • ❤ cloud, serverless, devops, AI, wasm • Curious and tinkerer
  • 3. Objectives • A gentle introduction to LLM-ized apps • First steps with Semantic Kernel
  • 4. BTW what is a LLM? • Probabilistic engine: most probable text response from input • according to the corpus • Pure function (almost) • No dynamic/short term memory string llm(string input,…){ … }
  • 5. Why in our app? • Add some kind of intelligence • Retrieve and summary info semantically • Understand unstructured input • Generate “creative” data
  • 6. How • Train custom AI model • Refine existing models • Consume 3rd party models via API • OpenAI • Azure AI services • Hugging face • …
  • 7. Semantic Kernel …what? • Integrate AI services with apps • Open source SDK • By Microsoft with ❤ • Enhance base functionality of AI API • High level functions • Overlaps with python fwk as langchain
  • 8. • Multiplaform • Features • Connectivity to AI services • Custom “functions" to empower AI • Integrated memory support • Orchestrate AI to use all features available • Assistants API Semantic Kernel 2 NEW
  • 9. MangoBot • Discord Bot • Community helper • AI driven
  • 11. Architecture • Connectors: • consume AI model, vector DBs • Plugins: • Provide LLM enhancements • “Make a summary”, “Sentiment analysis” • Integrates with external systems • “Send a message”, “List of discord users"
  • 12. Plugins/functions • Plugins: group of functions • Functions: enhance model capabilities • AI, prompt based: • “Summarize”, “Write an haiku" • Code based: • “GetTime”, “Send a message”, “Search in internet”
  • 13. Memory of a LLM • LLMs have no memory • Several techniques to provide custom data: • Include all infos in prompt • Eg: all messages of chat • Retrieval Augmented Generation (RAG) • Vector DB + Semantic Search • Fine tuning
  • 14. RAG • Include in prompt only relevant data • Data are semantically searchable in a vector DB • Embeddings: • conversion from text to a vector of floats • Coordinates in a “space of concepts” • Vector DB makes vector searchable by similarity
  • 15. RAG
  • 17. Semantic Kernel functions • Specialized Behaviours • Zero or more input parameters • Text output • Controlled and invoked by the LLM • Function and parameters are decorated with text description to be understood and used by an LLM
  • 18. Semantic Functions • Functions "executed" in an LLM • Eg: “SummarizeText" • Based on prompt engineering • Modes: • Inline (strings in C#) • Textual/templated: defined by text + json metadata
  • 19. Native Function • Expose capabilities provided via code: • GetTime • Send a mail • Access internet • Function and parameters decorated via textual descriptions • 2 degrees of intelligence: • Code inside the function • Elaboration of result by AI
  • 20. Planners • Orchestrates chains of functions • Let the AI decide: • Which functions to call • How use the parameters/results • How to compose them • Awesome results • Cost intensive
  • 22. Challenges • Let act the LLM in a efficient way • Prompt injection • Appropriate handling of business data • Predictability • Cost management • Sustainability
  • 23. Thank you 🙇 • Questions? • Feedback: • https://speakerscore.it/NET23-SK • Code: • https://github.com/mdnmdn/netconf-ita-2023-semantic-kernel-mangobot/
  • 24. @mdnmdn marco.denittis [a] gmail.com Slide e materiale su https://www.dotnetconference.it/