Slide 1

Slide 1 text

‘Talk to your systems’ LLM-Anbindung durch strukturierte Daten & Function Calling Christian Weyer | Co-Founder & CTO | Thinktecture AG | [email protected]

Slide 2

Slide 2 text

§ Technology catalyst § AI-powered solutions § Pragmatic end-to-end architectures § Microsoft Regional Director § Microsoft MVP for AI § Google GDE for Web Technologies [email protected] @christianweyer https://www.thinktecture.com 'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling Christian Weyer Co-Founder & CTO @ Thinktecture AG 2

Slide 3

Slide 3 text

'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling Talk to your systems Why? What? How? 3

Slide 4

Slide 4 text

'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling TALK TO YOUR SYSTEMS WHY? 4

Slide 5

Slide 5 text

'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling Human language rocks Extending access to software 5

Slide 6

Slide 6 text

'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling A classical UI – strong with certain use cases 6

Slide 7

Slide 7 text

One possible UX pattern 'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling Language-enabled “UIs” 7

Slide 8

Slide 8 text

'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling 8 LLMs Enabling new scenarios

Slide 9

Slide 9 text

§ LLMs are always part of end-to-end architectures § Client apps (Web, desktop, mobile) § Services with APIs § Databases § etc. § An LLM is ‘just’ an additional asset in your architecture § Enabling human language understanding & generation § It is not the Holy Grail for everything § Enable human language as a first-class citizen 🤯 'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling End-to-end architectures with LLMs Clients Services LLMs Desktop Web Mobile Service A Service B Service C API Gateway Monitoring LLM 1 LLM 2 9

Slide 10

Slide 10 text

'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling It’s just HTTP APIs Inference, FTW 10

Slide 11

Slide 11 text

'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling Your LLM OpenAI & beyond 11

Slide 12

Slide 12 text

§ Llama, Mistral, Qwen families show big potential § Success factors § Use case § Parameter size § Quantization § Processing power needed § CPU optimization on its way § Local inference runtimes with APIs § E.g. llama.cpp, ollama, llamafile, vLLM 'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling Open-source LLMs thrive § Local UIs § E.g. Open WebUI 12

Slide 13

Slide 13 text

'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling TALK TO YOUR SYSTEMS HOW? 13

Slide 14

Slide 14 text

'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling Most convenient platform for developers today to work with Gen AI 14

Slide 15

Slide 15 text

'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling Prompting Talk to me! 15

Slide 16

Slide 16 text

'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling ‘Function’ Calling Give it schema! 16

Slide 17

Slide 17 text

'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling 17 Pydantic & Instructor Make it easier!

Slide 18

Slide 18 text

'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling TALK TO YOUR SYSTEMS WHAT? 18

Slide 19

Slide 19 text

'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling 19 End-to-End Talking to your applications

Slide 20

Slide 20 text

'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling Talk to Thinktecture 20 Angular PWA Speech-to-Text Internal Gateway (Python FastAPI) LLM / SLM Text-to-Speech Transcribe spoken text Transcribed text Check for experts availability with text Extract { experts, booking times } from text Structured JSON data (Tool calling) Generate response with availability Response Response with experts availability 🗣 🔉 Speech-to-text for response Response audio Internal Business API (node.js – veeeery old) Query Availability API Availability When is CL…? CL will be…

Slide 21

Slide 21 text

Filling Angular forms with human language input protected readonly formGroup = this.fb.group({ firstName: [’’], lastName: [’’], addressLine1: [’’], addressLine2: [’’], city: [’’], state: [’’], zip: [’’], country: [’’] }); 'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling Smart form filling OK, nice – so here is my address then:: Peter Schmitt, Rheinstr. 7 in Schkeuditz – postcode is 04435, BTW. 21 Smart Form Filler (TS code & LLM)

Slide 22

Slide 22 text

'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling TALK TO YOUR SYSTEMS RECAP 22

Slide 23

Slide 23 text

§ Human language enables new powerful use cases & access to our software § Always use structured output § Structured output is the secret sauce for integrating LLMs into your application architectures § Consider applying the Maybe pattern § Brings more robustness § Function Calling can be flaky § Especially with smaller models § Do not use frameworks that ‘auto-magically’ map Function Calling results to local code § Always validate return data! § Instructor is a helpful library to boost LLM use cases § Implements lots of best practices § Supports any LLM / SLM § Integrates with FastAPI 'Talk to your systems' LLM-Anbindung durch strukturierte Daten & Function Calling Recap & Recommendations 23

Slide 24

Slide 24 text

Thank you! Christian Weyer https://thinktecture.com/christian-weyer https://github.com/thinktecture-labs/talk-to-your-systems https://github.com/thinktecture-labs/smart-form-filler 24