SlideShare a Scribd company logo
1 of 33
Download to read offline
Large Language Models, Data & APIs
Integrating Generative AI Power
into your solutions - with Python & .NET
Christian Weyer
@christianweyer
CTO, Technology Catalyst
§ Technology catalyst
§ AI-powered solutions
§ Pragmatic end-to-end architectures
§ Microsoft Regional Director
§ Microsoft MVP for Developer Technologies & Azure
ASPInsider, AzureInsider
§ Google GDE for Web Technologies
christian.weyer@thinktecture.com @christianweyer https://www.thinktecture.com
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
Christian Weyer
Co-Founder & CTO @ Thinktecture AG
2
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
Our journey
3
AI all-the-
things?
Integrating
LLMs
Selected
Scenarios
End-to-End
Exciting
Times…
Democratizing
Generative AI
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
AI all-the-things?
4
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
AI all-the-things?
5
Data
Science
Artificial Intelligence
Machine Learning
Unsupervised, supervised, reinforcement learning
Deep Learning
ANN, CNN, RNN etc.
NLP
Generative AI
GAN, VAE, Transformers etc.
Image / Video Generation
GAN, VAE
Large Language Models
Transformers
§ LLMs generate text based on input
§ LLMs can understand text – this changes a lot
§ Prompts are the universal interface (“UI”) →
unstructured text with semantics
§ Human language evolves as a first-class citizen in
software architecture 🤯
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
Large Language Models (LLMs)
6
Text… – really, just text?
§ LLMs are programs
§ LLMs are highly specialized neural networks
§ LLMs use(d) lots of data
§ LLMs need a lot of resources to be operated
§ LLMs have an API to be used through
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
Large Language Models demystified
7
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
Integrating LLMs
8
§ LLMs are always part of end-to-end architectures
§ HTTP/Web/REST APIs
§ Databases
§ Client apps (Web, desktop, mobile)
§ etc.
§ An LLM is ‘just’ an additional asset in your architecture
§ It is not the Holy Grail for everything!
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
End-to-end architectures with LLMs
9
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
Using LLMs: It’s just APIs !
Inference, FTW.
10
GPT-4 API access via OpenAI Playground
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
DEMO
11
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
The best tool for .NET developers to talk to LLMs!
12
🙈
§ OSS framework for developing applications powered by LLMs
§ > 1000 contributors
§ Python and Typescript versions
§ Chains for sequences of LLM-related actions in code
§ Abstractions for
§ Prompts & LLMs (local and remote)
§ Memory
§ Vector stores
§ Tools
§ Loading text from a wide range of sources
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
LangChain - building LLM-based applications
13
§ Microsoft’s OSS framework to integrate LLMs into applications
§ .NET, Python, and Java versions
§ .NET 1.0 RTM in December 2023
§ Plugins encapsulate AI capabilities
§ Semantic functions for prompting
§ Native functions to run local code
§ Planners are orchestrating LLMS interactions
§ Not as broad feature set as LangChain
§ E.g., no concept/abstraction for loading data
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
Semantic Kernel - building LLM-based applications
14
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
Selected
Scenarios
15
Text generation
§ LLMs are good in generating text
§ Regular text
§ Code
§ SQL (beware!)
§ JSON
§ etc.
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
Typical LLM scenarios:
16
Extracting meaning in text
§ LLM can be instructed to, e.g.
§ Do sentiment analysis
§ Extract information from text
§ Extracting structured information
§ JSON, TypeScript types, etc.
§ Via tools like Kor, TypeChat, or Open AI Functions
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
Typical LLM scenarios:
17
Extracting structured data
(LangChain + Kor)
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
DEMO
18
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
Answering Questions on Data - Retrieval-augmented generation (RAG)
Cleanup & Split Text Embedding
Question
Text Embedding
Save
Query
Relevant Text
Question
A
n
s
w
e
r
LLM
19
Vector DB
Embedding
model
Embedding
model
💡
Indexing / Embedding QA
Learning about my company’s policies via Slack
(LangChain)
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
DEMO
20
Chat with web site documents
(Semantic Kernel)
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
DEMO
21
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
Democratizing
Generative AI
22
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
LLMs everywhere
OpenAI-related (cloud)
OpenAI
Azure OpenAI
Service
Big cloud providers
Google Model Garden
on Vertex AI
Amazon Bedrock
Other providers
Antrophic
Cohere
HuggingFace
… Open-source
Edge
IoT Server
Desktop Mobile
Web
Open-source
23
§ Open-source community drives
innovation in Generative AI
§ HuggingFace is central place for it
§ Literally, every week a new and
“better” LLM shows up 🤓
§ Important factors
§ Use case
§ Parameter size
§ Quantization
§ Processing power needed
§ Mistral-based family shows big
potential for local use cases (7B params)
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
Open-source LLMs thrive
24
Local RAG with Mistral OSS LLM
(llama.cpp & LM Studio)
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
DEMO
25
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
End-to-End
26
Ask for expert availability in my company systems
(Speech-to-text, my own API, GPT-4, Text-to-speech)
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
DEMO
27
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
Exciting Times
28
§ LLMs enable new scenarios & use cases to
incorporate human language into software solutions
§ Fast moving and changing field
§ Every week something “big” happens in LLM space
§ Frameworks & ecosystem are evolving together with LLMs
§ Closed vs open LLMs
§ Competition drives invention & advancement
§ SISO (sh*t in, sh*t out)
§ Quality of results heavily depends on your data & input
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
Current state
29
Potential for
LLM-powered
human-machine workflows
via universal interface agents
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
Outlook
30
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
Outlook
31
Thank you!
Christian Weyer
https://thinktecture.com/christian-weyer
32
Selected demos:
Extract structured information:
https://github.com/thinktecture-labs/llm-extract-structured-information-langchain-kor
Local RAG with PDFs:
https://github.com/thinktecture-labs/rag-chat-with-pdf-local-llm
§ Semantic Kernel
§ https://learn.microsoft.com/en-us/semantic-kernel/overview/
§ LangChain
§ https://www.langchain.com/
§ LangChain Agents
§ https://python.langchain.com/docs/modules/agents/
§ ReAct: Synergizing Reasoning and Acting in Language Models
§ https://react-lm.github.io/
§ Prompt Engineering Guide
§ https://www.promptingguide.ai/
§ OpenAI API reference
§ https://platform.openai.com/docs/api-reference
§ Azure OpenAI Service REST API reference
§ https://learn.microsoft.com/en-us/azure/ai-services/openai/reference
§ Hugging Face Inference Endpoints (for various OSS LLMs)
§ https://huggingface.co/docs/inference-endpoints/api_reference
§ Llama2 on Hugging Face
§ https://huggingface.co/blog/llama2
§ OWASP Top 10 for LLM Applications
§ https://owasp.org/www-project-top-10-for-large-language-model-applications/assets/PDF/OWASP-Top-10-for-LLMs-2023-slides-v1_0_1.pdf
Large Language Models, Data & APIs
Integrating Generative AI Power into your solutions - with Python & .NET
Links
33

More Related Content

Similar to Large Language Models, Data & APIs - Integrating Generative AI Power into your solutions - with Python and .NET

Enterprise Integration Patterns Revisited (again) for the Era of Big Data, In...
Enterprise Integration Patterns Revisited (again) for the Era of Big Data, In...Enterprise Integration Patterns Revisited (again) for the Era of Big Data, In...
Enterprise Integration Patterns Revisited (again) for the Era of Big Data, In...Kai Wähner
 
Top 5 AI Programming Languages to Use in 2024.pdf
Top 5 AI Programming Languages to Use in 2024.pdfTop 5 AI Programming Languages to Use in 2024.pdf
Top 5 AI Programming Languages to Use in 2024.pdfLaura Miller
 
Libera la potenza del Machine Learning
Libera la potenza del Machine LearningLibera la potenza del Machine Learning
Libera la potenza del Machine LearningJürgen Ambrosi
 
What’s New with Databricks Machine Learning
What’s New with Databricks Machine LearningWhat’s New with Databricks Machine Learning
What’s New with Databricks Machine LearningDatabricks
 
雲端推動的人工智能革命
雲端推動的人工智能革命雲端推動的人工智能革命
雲端推動的人工智能革命Amazon Web Services
 
AI at Microsoft for HEC
AI at Microsoft for HECAI at Microsoft for HEC
AI at Microsoft for HECAlex Danvy
 
AIM102-S_Cognizant_CognizantCognitive
AIM102-S_Cognizant_CognizantCognitiveAIM102-S_Cognizant_CognizantCognitive
AIM102-S_Cognizant_CognizantCognitivePhilipBasford
 
Career_camp_professionals.pdf
Career_camp_professionals.pdfCareer_camp_professionals.pdf
Career_camp_professionals.pdfPrajyotSwami2
 
Get Started Quickly with IBM's Hadoop as a Service
Get Started Quickly with IBM's Hadoop as a ServiceGet Started Quickly with IBM's Hadoop as a Service
Get Started Quickly with IBM's Hadoop as a ServiceIBM Cloud Data Services
 
Bhadale group of companies our technology ecosystem
Bhadale group of companies our technology ecosystemBhadale group of companies our technology ecosystem
Bhadale group of companies our technology ecosystemVijayananda Mohire
 
Introducción al Aprendizaje Automatico con H2O-3 (1)
Introducción al Aprendizaje Automatico con H2O-3 (1)Introducción al Aprendizaje Automatico con H2O-3 (1)
Introducción al Aprendizaje Automatico con H2O-3 (1)Sri Ambati
 
#HumansofIT with Tech Superpowers: How Heathrow's Security Officer Launched 1...
#HumansofIT with Tech Superpowers: How Heathrow's Security Officer Launched 1...#HumansofIT with Tech Superpowers: How Heathrow's Security Officer Launched 1...
#HumansofIT with Tech Superpowers: How Heathrow's Security Officer Launched 1...Dux Raymond Sy
 
Data science tools of the trade
Data science tools of the tradeData science tools of the trade
Data science tools of the tradeFangda Wang
 
Serverless Computing with Python
Serverless Computing with PythonServerless Computing with Python
Serverless Computing with Pythonwesley chun
 
Smart modeling of smart software
Smart modeling of smart softwareSmart modeling of smart software
Smart modeling of smart softwareJordi Cabot
 
Integrating Machine Learning Capabilities into your team
Integrating Machine Learning Capabilities into your teamIntegrating Machine Learning Capabilities into your team
Integrating Machine Learning Capabilities into your teamCameron Vetter
 
Microsoft power platform
Microsoft power platformMicrosoft power platform
Microsoft power platformJenkins NS
 
Integrate Machine Learning into Your Spring Application in Less than an Hour
Integrate Machine Learning into Your Spring Application in Less than an HourIntegrate Machine Learning into Your Spring Application in Less than an Hour
Integrate Machine Learning into Your Spring Application in Less than an HourVMware Tanzu
 
Career opportunities in open source framework
Career opportunities in open source frameworkCareer opportunities in open source framework
Career opportunities in open source frameworkedunextgen
 

Similar to Large Language Models, Data & APIs - Integrating Generative AI Power into your solutions - with Python and .NET (20)

Enterprise Integration Patterns Revisited (again) for the Era of Big Data, In...
Enterprise Integration Patterns Revisited (again) for the Era of Big Data, In...Enterprise Integration Patterns Revisited (again) for the Era of Big Data, In...
Enterprise Integration Patterns Revisited (again) for the Era of Big Data, In...
 
Top 5 AI Programming Languages to Use in 2024.pdf
Top 5 AI Programming Languages to Use in 2024.pdfTop 5 AI Programming Languages to Use in 2024.pdf
Top 5 AI Programming Languages to Use in 2024.pdf
 
Libera la potenza del Machine Learning
Libera la potenza del Machine LearningLibera la potenza del Machine Learning
Libera la potenza del Machine Learning
 
Ai/ML services
Ai/ML servicesAi/ML services
Ai/ML services
 
What’s New with Databricks Machine Learning
What’s New with Databricks Machine LearningWhat’s New with Databricks Machine Learning
What’s New with Databricks Machine Learning
 
雲端推動的人工智能革命
雲端推動的人工智能革命雲端推動的人工智能革命
雲端推動的人工智能革命
 
AI at Microsoft for HEC
AI at Microsoft for HECAI at Microsoft for HEC
AI at Microsoft for HEC
 
AIM102-S_Cognizant_CognizantCognitive
AIM102-S_Cognizant_CognizantCognitiveAIM102-S_Cognizant_CognizantCognitive
AIM102-S_Cognizant_CognizantCognitive
 
Career_camp_professionals.pdf
Career_camp_professionals.pdfCareer_camp_professionals.pdf
Career_camp_professionals.pdf
 
Get Started Quickly with IBM's Hadoop as a Service
Get Started Quickly with IBM's Hadoop as a ServiceGet Started Quickly with IBM's Hadoop as a Service
Get Started Quickly with IBM's Hadoop as a Service
 
Bhadale group of companies our technology ecosystem
Bhadale group of companies our technology ecosystemBhadale group of companies our technology ecosystem
Bhadale group of companies our technology ecosystem
 
Introducción al Aprendizaje Automatico con H2O-3 (1)
Introducción al Aprendizaje Automatico con H2O-3 (1)Introducción al Aprendizaje Automatico con H2O-3 (1)
Introducción al Aprendizaje Automatico con H2O-3 (1)
 
#HumansofIT with Tech Superpowers: How Heathrow's Security Officer Launched 1...
#HumansofIT with Tech Superpowers: How Heathrow's Security Officer Launched 1...#HumansofIT with Tech Superpowers: How Heathrow's Security Officer Launched 1...
#HumansofIT with Tech Superpowers: How Heathrow's Security Officer Launched 1...
 
Data science tools of the trade
Data science tools of the tradeData science tools of the trade
Data science tools of the trade
 
Serverless Computing with Python
Serverless Computing with PythonServerless Computing with Python
Serverless Computing with Python
 
Smart modeling of smart software
Smart modeling of smart softwareSmart modeling of smart software
Smart modeling of smart software
 
Integrating Machine Learning Capabilities into your team
Integrating Machine Learning Capabilities into your teamIntegrating Machine Learning Capabilities into your team
Integrating Machine Learning Capabilities into your team
 
Microsoft power platform
Microsoft power platformMicrosoft power platform
Microsoft power platform
 
Integrate Machine Learning into Your Spring Application in Less than an Hour
Integrate Machine Learning into Your Spring Application in Less than an HourIntegrate Machine Learning into Your Spring Application in Less than an Hour
Integrate Machine Learning into Your Spring Application in Less than an Hour
 
Career opportunities in open source framework
Career opportunities in open source frameworkCareer opportunities in open source framework
Career opportunities in open source framework
 

More from NETUserGroupBern

Securing .NET Core, ASP.NET Core applications
Securing .NET Core, ASP.NET Core applicationsSecuring .NET Core, ASP.NET Core applications
Securing .NET Core, ASP.NET Core applicationsNETUserGroupBern
 
Application Security in ASP.NET Core
Application Security in ASP.NET CoreApplication Security in ASP.NET Core
Application Security in ASP.NET CoreNETUserGroupBern
 
Ruby und Rails für .NET Entwickler
Ruby und Rails für .NET EntwicklerRuby und Rails für .NET Entwickler
Ruby und Rails für .NET EntwicklerNETUserGroupBern
 
What Doctors Can Teach Us on Continuous Learning
What Doctors Can Teach Us on Continuous LearningWhat Doctors Can Teach Us on Continuous Learning
What Doctors Can Teach Us on Continuous LearningNETUserGroupBern
 
Entity Framework Core - Der Umstieg auf Core
Entity Framework Core - Der Umstieg auf CoreEntity Framework Core - Der Umstieg auf Core
Entity Framework Core - Der Umstieg auf CoreNETUserGroupBern
 
Weiches Zeugs für harte Jungs und Mädels
Weiches Zeugs für harte Jungs und MädelsWeiches Zeugs für harte Jungs und Mädels
Weiches Zeugs für harte Jungs und MädelsNETUserGroupBern
 
Änderungen im Cardinality Estimator SQL Server 2014
Änderungen im Cardinality Estimator SQL Server 2014Änderungen im Cardinality Estimator SQL Server 2014
Änderungen im Cardinality Estimator SQL Server 2014NETUserGroupBern
 
Refactoring: Mythen & Fakten
Refactoring: Mythen & FaktenRefactoring: Mythen & Fakten
Refactoring: Mythen & FaktenNETUserGroupBern
 
Pragmatische Anforderungen
Pragmatische AnforderungenPragmatische Anforderungen
Pragmatische AnforderungenNETUserGroupBern
 
What the hell is PowerShell?
What the hell is PowerShell?What the hell is PowerShell?
What the hell is PowerShell?NETUserGroupBern
 
BDD mit Machine.Specifications (MSpec)
BDD mit Machine.Specifications (MSpec)BDD mit Machine.Specifications (MSpec)
BDD mit Machine.Specifications (MSpec)NETUserGroupBern
 
.NETworking Workshop Design Thinking
.NETworking Workshop Design Thinking.NETworking Workshop Design Thinking
.NETworking Workshop Design ThinkingNETUserGroupBern
 

More from NETUserGroupBern (20)

AAD und .NET
AAD und .NETAAD und .NET
AAD und .NET
 
SHIFT LEFT WITH DEVSECOPS
SHIFT LEFT WITH DEVSECOPSSHIFT LEFT WITH DEVSECOPS
SHIFT LEFT WITH DEVSECOPS
 
Securing .NET Core, ASP.NET Core applications
Securing .NET Core, ASP.NET Core applicationsSecuring .NET Core, ASP.NET Core applications
Securing .NET Core, ASP.NET Core applications
 
Application Security in ASP.NET Core
Application Security in ASP.NET CoreApplication Security in ASP.NET Core
Application Security in ASP.NET Core
 
Ruby und Rails für .NET Entwickler
Ruby und Rails für .NET EntwicklerRuby und Rails für .NET Entwickler
Ruby und Rails für .NET Entwickler
 
Einführung in RavenDB
Einführung in RavenDBEinführung in RavenDB
Einführung in RavenDB
 
What Doctors Can Teach Us on Continuous Learning
What Doctors Can Teach Us on Continuous LearningWhat Doctors Can Teach Us on Continuous Learning
What Doctors Can Teach Us on Continuous Learning
 
Entity Framework Core - Der Umstieg auf Core
Entity Framework Core - Der Umstieg auf CoreEntity Framework Core - Der Umstieg auf Core
Entity Framework Core - Der Umstieg auf Core
 
Weiches Zeugs für harte Jungs und Mädels
Weiches Zeugs für harte Jungs und MädelsWeiches Zeugs für harte Jungs und Mädels
Weiches Zeugs für harte Jungs und Mädels
 
Änderungen im Cardinality Estimator SQL Server 2014
Änderungen im Cardinality Estimator SQL Server 2014Änderungen im Cardinality Estimator SQL Server 2014
Änderungen im Cardinality Estimator SQL Server 2014
 
Rest Fundamentals
Rest FundamentalsRest Fundamentals
Rest Fundamentals
 
Refactoring: Mythen & Fakten
Refactoring: Mythen & FaktenRefactoring: Mythen & Fakten
Refactoring: Mythen & Fakten
 
AngularJs
AngularJsAngularJs
AngularJs
 
Pragmatische Anforderungen
Pragmatische AnforderungenPragmatische Anforderungen
Pragmatische Anforderungen
 
Einführung in MongoDB
Einführung in MongoDBEinführung in MongoDB
Einführung in MongoDB
 
What the hell is PowerShell?
What the hell is PowerShell?What the hell is PowerShell?
What the hell is PowerShell?
 
Know your warm up
Know your warm upKnow your warm up
Know your warm up
 
BDD mit Machine.Specifications (MSpec)
BDD mit Machine.Specifications (MSpec)BDD mit Machine.Specifications (MSpec)
BDD mit Machine.Specifications (MSpec)
 
Versionskontrolle mit Git
Versionskontrolle mit GitVersionskontrolle mit Git
Versionskontrolle mit Git
 
.NETworking Workshop Design Thinking
.NETworking Workshop Design Thinking.NETworking Workshop Design Thinking
.NETworking Workshop Design Thinking
 

Recently uploaded

Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 

Recently uploaded (20)

Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 

Large Language Models, Data & APIs - Integrating Generative AI Power into your solutions - with Python and .NET

  • 1. Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET Christian Weyer @christianweyer CTO, Technology Catalyst
  • 2. § Technology catalyst § AI-powered solutions § Pragmatic end-to-end architectures § Microsoft Regional Director § Microsoft MVP for Developer Technologies & Azure ASPInsider, AzureInsider § Google GDE for Web Technologies christian.weyer@thinktecture.com @christianweyer https://www.thinktecture.com Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET Christian Weyer Co-Founder & CTO @ Thinktecture AG 2
  • 3. Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET Our journey 3 AI all-the- things? Integrating LLMs Selected Scenarios End-to-End Exciting Times… Democratizing Generative AI
  • 4. Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET AI all-the-things? 4
  • 5. Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET AI all-the-things? 5 Data Science Artificial Intelligence Machine Learning Unsupervised, supervised, reinforcement learning Deep Learning ANN, CNN, RNN etc. NLP Generative AI GAN, VAE, Transformers etc. Image / Video Generation GAN, VAE Large Language Models Transformers
  • 6. § LLMs generate text based on input § LLMs can understand text – this changes a lot § Prompts are the universal interface (“UI”) → unstructured text with semantics § Human language evolves as a first-class citizen in software architecture 🤯 Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET Large Language Models (LLMs) 6 Text… – really, just text?
  • 7. § LLMs are programs § LLMs are highly specialized neural networks § LLMs use(d) lots of data § LLMs need a lot of resources to be operated § LLMs have an API to be used through Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET Large Language Models demystified 7
  • 8. Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET Integrating LLMs 8
  • 9. § LLMs are always part of end-to-end architectures § HTTP/Web/REST APIs § Databases § Client apps (Web, desktop, mobile) § etc. § An LLM is ‘just’ an additional asset in your architecture § It is not the Holy Grail for everything! Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET End-to-end architectures with LLMs 9
  • 10. Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET Using LLMs: It’s just APIs ! Inference, FTW. 10
  • 11. GPT-4 API access via OpenAI Playground Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET DEMO 11
  • 12. Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET The best tool for .NET developers to talk to LLMs! 12 🙈
  • 13. § OSS framework for developing applications powered by LLMs § > 1000 contributors § Python and Typescript versions § Chains for sequences of LLM-related actions in code § Abstractions for § Prompts & LLMs (local and remote) § Memory § Vector stores § Tools § Loading text from a wide range of sources Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET LangChain - building LLM-based applications 13
  • 14. § Microsoft’s OSS framework to integrate LLMs into applications § .NET, Python, and Java versions § .NET 1.0 RTM in December 2023 § Plugins encapsulate AI capabilities § Semantic functions for prompting § Native functions to run local code § Planners are orchestrating LLMS interactions § Not as broad feature set as LangChain § E.g., no concept/abstraction for loading data Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET Semantic Kernel - building LLM-based applications 14
  • 15. Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET Selected Scenarios 15
  • 16. Text generation § LLMs are good in generating text § Regular text § Code § SQL (beware!) § JSON § etc. Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET Typical LLM scenarios: 16
  • 17. Extracting meaning in text § LLM can be instructed to, e.g. § Do sentiment analysis § Extract information from text § Extracting structured information § JSON, TypeScript types, etc. § Via tools like Kor, TypeChat, or Open AI Functions Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET Typical LLM scenarios: 17
  • 18. Extracting structured data (LangChain + Kor) Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET DEMO 18
  • 19. Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET Answering Questions on Data - Retrieval-augmented generation (RAG) Cleanup & Split Text Embedding Question Text Embedding Save Query Relevant Text Question A n s w e r LLM 19 Vector DB Embedding model Embedding model 💡 Indexing / Embedding QA
  • 20. Learning about my company’s policies via Slack (LangChain) Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET DEMO 20
  • 21. Chat with web site documents (Semantic Kernel) Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET DEMO 21
  • 22. Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET Democratizing Generative AI 22
  • 23. Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET LLMs everywhere OpenAI-related (cloud) OpenAI Azure OpenAI Service Big cloud providers Google Model Garden on Vertex AI Amazon Bedrock Other providers Antrophic Cohere HuggingFace … Open-source Edge IoT Server Desktop Mobile Web Open-source 23
  • 24. § Open-source community drives innovation in Generative AI § HuggingFace is central place for it § Literally, every week a new and “better” LLM shows up 🤓 § Important factors § Use case § Parameter size § Quantization § Processing power needed § Mistral-based family shows big potential for local use cases (7B params) Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET Open-source LLMs thrive 24
  • 25. Local RAG with Mistral OSS LLM (llama.cpp & LM Studio) Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET DEMO 25
  • 26. Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET End-to-End 26
  • 27. Ask for expert availability in my company systems (Speech-to-text, my own API, GPT-4, Text-to-speech) Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET DEMO 27
  • 28. Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET Exciting Times 28
  • 29. § LLMs enable new scenarios & use cases to incorporate human language into software solutions § Fast moving and changing field § Every week something “big” happens in LLM space § Frameworks & ecosystem are evolving together with LLMs § Closed vs open LLMs § Competition drives invention & advancement § SISO (sh*t in, sh*t out) § Quality of results heavily depends on your data & input Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET Current state 29
  • 30. Potential for LLM-powered human-machine workflows via universal interface agents Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET Outlook 30
  • 31. Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET Outlook 31
  • 32. Thank you! Christian Weyer https://thinktecture.com/christian-weyer 32 Selected demos: Extract structured information: https://github.com/thinktecture-labs/llm-extract-structured-information-langchain-kor Local RAG with PDFs: https://github.com/thinktecture-labs/rag-chat-with-pdf-local-llm
  • 33. § Semantic Kernel § https://learn.microsoft.com/en-us/semantic-kernel/overview/ § LangChain § https://www.langchain.com/ § LangChain Agents § https://python.langchain.com/docs/modules/agents/ § ReAct: Synergizing Reasoning and Acting in Language Models § https://react-lm.github.io/ § Prompt Engineering Guide § https://www.promptingguide.ai/ § OpenAI API reference § https://platform.openai.com/docs/api-reference § Azure OpenAI Service REST API reference § https://learn.microsoft.com/en-us/azure/ai-services/openai/reference § Hugging Face Inference Endpoints (for various OSS LLMs) § https://huggingface.co/docs/inference-endpoints/api_reference § Llama2 on Hugging Face § https://huggingface.co/blog/llama2 § OWASP Top 10 for LLM Applications § https://owasp.org/www-project-top-10-for-large-language-model-applications/assets/PDF/OWASP-Top-10-for-LLMs-2023-slides-v1_0_1.pdf Large Language Models, Data & APIs Integrating Generative AI Power into your solutions - with Python & .NET Links 33