SlideShare a Scribd company logo
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

What's hot (20)

PDF
Using the power of Generative AI at scale
Maxim Salnikov
 
PDF
How to build a generative AI solution From prototyping to production.pdf
StephenAmell4
 
PDF
LLMOps for Your Data: Best Practices to Ensure Safety, Quality, and Cost
Aggregage
 
PDF
LLMs in Production: Tooling, Process, and Team Structure
Aggregage
 
PDF
generative-ai-fundamentals and Large language models
AdventureWorld5
 
PDF
LLMs Bootcamp
Fiza987241
 
PDF
Vertex AI: Pipelines for your MLOps workflows
Márton Kodok
 
PDF
AI and ML Series - Introduction to Generative AI and LLMs - Session 1
DianaGray10
 
PDF
AI and ML Series - Leveraging Generative AI and LLMs Using the UiPath Platfor...
DianaGray10
 
PPTX
Cloud AI GenAI Overview.pptx
SahithiGurlinka
 
PPTX
ChatGPT, Foundation Models and Web3.pptx
Jesus Rodriguez
 
PDF
Vertex AI - Unified ML Platform for the entire AI workflow on Google Cloud
Márton Kodok
 
PPTX
AzureOpenAI.pptx
Udaiappa Ramachandran
 
PPTX
The Future of AI is Generative not Discriminative 5/26/2021
Steve Omohundro
 
PPTX
introduction Azure OpenAI by Usama wahab khan
Usama Wahab Khan Cloud, Data and AI
 
PPTX
OpenAI Chatgpt.pptx
Nawroz University
 
PDF
Generative Models and ChatGPT
Loic Merckel
 
PDF
Build an LLM-powered application using LangChain.pdf
AnastasiaSteele10
 
PDF
Leveraging Generative AI & Best practices
DianaGray10
 
PDF
Best Practice on using Azure OpenAI Service
Kumton Suttiraksiri
 
Using the power of Generative AI at scale
Maxim Salnikov
 
How to build a generative AI solution From prototyping to production.pdf
StephenAmell4
 
LLMOps for Your Data: Best Practices to Ensure Safety, Quality, and Cost
Aggregage
 
LLMs in Production: Tooling, Process, and Team Structure
Aggregage
 
generative-ai-fundamentals and Large language models
AdventureWorld5
 
LLMs Bootcamp
Fiza987241
 
Vertex AI: Pipelines for your MLOps workflows
Márton Kodok
 
AI and ML Series - Introduction to Generative AI and LLMs - Session 1
DianaGray10
 
AI and ML Series - Leveraging Generative AI and LLMs Using the UiPath Platfor...
DianaGray10
 
Cloud AI GenAI Overview.pptx
SahithiGurlinka
 
ChatGPT, Foundation Models and Web3.pptx
Jesus Rodriguez
 
Vertex AI - Unified ML Platform for the entire AI workflow on Google Cloud
Márton Kodok
 
AzureOpenAI.pptx
Udaiappa Ramachandran
 
The Future of AI is Generative not Discriminative 5/26/2021
Steve Omohundro
 
introduction Azure OpenAI by Usama wahab khan
Usama Wahab Khan Cloud, Data and AI
 
OpenAI Chatgpt.pptx
Nawroz University
 
Generative Models and ChatGPT
Loic Merckel
 
Build an LLM-powered application using LangChain.pdf
AnastasiaSteele10
 
Leveraging Generative AI & Best practices
DianaGray10
 
Best Practice on using Azure OpenAI Service
Kumton Suttiraksiri
 

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

PPTX
GPT, LLM, RAG, and RAG in Action: Understanding the Future of AI-Powered Info...
Muralidharan Deenathayalan
 
PDF
The Significance of Large Language Models (LLMs) in Generative AI2.pdf
E42 (Light Information Systems Pvt Ltd)
 
PPTX
GenAIGenAIGenAIGenAIGenAIGenAIGenAI.pptx
HarshitMunjal6
 
PDF
Intro to Generative-AI(Gen AI Study Jams GDGC ZHCET)
fiza1892003
 
PDF
Supercharge Your AI Development with Local LLMs
Francesco Corti
 
PPTX
Understanding Machine Learning --- Chapter 2.pptx
SanaRizwan21
 
PPTX
Generative AI in CSharp with Semantic Kernel.pptx
Alon Fliess
 
PDF
Generative AI - Unleashing the Power of Creativity with Machines​
Rahul Bhrambhatt
 
PPTX
Fact based Generative AI
Stefan Weber
 
PDF
Real-Time AI Streaming - AI Max Princeton
Timothy Spann
 
PPTX
Generative AI and Large Language Models (LLMs)
romasmartjoseph
 
PDF
Automate your Job and Business with ChatGPT #3 - Fundamentals of LLM/GPT
Anant Corporation
 
PDF
Overview of Artificial Intelligence - Technology
NickDAgostino3
 
PDF
Retrieval Augmented Generation in Practice: Scalable GenAI platforms with k8s...
Mihai Criveti
 
PDF
ADDO 2024 - Leverage GenAI via Rest APIs.pdf
TomHalpin9
 
PDF
ADDO 2024 - Leverage GenAI via Rest APIs.pdf
eoinhalpin99
 
PPTX
Multimodel_LLM_for_Content_Generation.pptx
aagamshah0812
 
PDF
Unleashing the Power of Generative AI.pdf
TomHalpin9
 
PDF
20240411 QFM009 Machine Intelligence Reading List March 2024
Matthew Sinclair
 
PDF
Unleashing the Power of Generative AI.pdf
eoinhalpin99
 
GPT, LLM, RAG, and RAG in Action: Understanding the Future of AI-Powered Info...
Muralidharan Deenathayalan
 
The Significance of Large Language Models (LLMs) in Generative AI2.pdf
E42 (Light Information Systems Pvt Ltd)
 
GenAIGenAIGenAIGenAIGenAIGenAIGenAI.pptx
HarshitMunjal6
 
Intro to Generative-AI(Gen AI Study Jams GDGC ZHCET)
fiza1892003
 
Supercharge Your AI Development with Local LLMs
Francesco Corti
 
Understanding Machine Learning --- Chapter 2.pptx
SanaRizwan21
 
Generative AI in CSharp with Semantic Kernel.pptx
Alon Fliess
 
Generative AI - Unleashing the Power of Creativity with Machines​
Rahul Bhrambhatt
 
Fact based Generative AI
Stefan Weber
 
Real-Time AI Streaming - AI Max Princeton
Timothy Spann
 
Generative AI and Large Language Models (LLMs)
romasmartjoseph
 
Automate your Job and Business with ChatGPT #3 - Fundamentals of LLM/GPT
Anant Corporation
 
Overview of Artificial Intelligence - Technology
NickDAgostino3
 
Retrieval Augmented Generation in Practice: Scalable GenAI platforms with k8s...
Mihai Criveti
 
ADDO 2024 - Leverage GenAI via Rest APIs.pdf
TomHalpin9
 
ADDO 2024 - Leverage GenAI via Rest APIs.pdf
eoinhalpin99
 
Multimodel_LLM_for_Content_Generation.pptx
aagamshah0812
 
Unleashing the Power of Generative AI.pdf
TomHalpin9
 
20240411 QFM009 Machine Intelligence Reading List March 2024
Matthew Sinclair
 
Unleashing the Power of Generative AI.pdf
eoinhalpin99
 
Ad

More from NETUserGroupBern (20)

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

Recently uploaded (20)

PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Biography of Daniel Podor.pdf
Daniel Podor
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
July Patch Tuesday
Ivanti
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 

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 [email protected] @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