Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥

MLCon 2024: 'Talk to your systems‘: Integrating...

MLCon 2024: 'Talk to your systems‘: Integrating Gen AI into your architectures with structured LLM output

Talking to your data (aka RAG) is the 'Hello World' use case for LLMs. But there is much more to explore. Based on their understanding of the human language, LLMs can be used to drive innovative user interactions for applications and systems. In this session, Christian demonstrates how to use structured data output with data schemas and function calling to interconnect your APIs with the power of LLMs. Discover how to unlock the potential of your solutions by harnessing the transformative nature of Generative AI. Join this session and let's talk to your systems!

Christian Weyer

November 28, 2024
Tweet

More Decks by Christian Weyer

Other Decks in Programming

Transcript

  1. 'Talk to your systems‘ Integrating Gen AI into your architectures

    with structured LLM output Christian Weyer | Co-Founder & CTO | Thinktecture AG | [email protected]
  2. 'Talk to your systems' Integrating Gen AI into your architectures

    with structured LLM output Using Language Models – two major scenarios 2 ‘Talk to your data’ RAG ‘Talk to your systems’ Structured Output
  3. 'Talk to your systems' Integrating Gen AI into your architectures

    with structured LLM output TALK TO YOUR SYSTEMS WHY? 3
  4. 'Talk to your systems' Integrating Gen AI into your architectures

    with structured LLM output 4 Human language rocks Extending access to software
  5. 'Talk to your systems' Integrating Gen AI into your architectures

    with structured LLM output A classical UI – strong UX for certain use cases 5
  6. One possible extended UX pattern 'Talk to your systems' Integrating

    Gen AI into your architectures with structured LLM output Language-enabled UIs 6
  7. 'Talk to your systems' Integrating Gen AI into your architectures

    with structured LLM output 7 LLMs Enabling new scenarios
  8. § LLMs are always part of end-to-end architectures § Client

    apps (Web, desktop, mobile) § Services with APIs § Databases § etc. § LLMs / SLMs enable human language as a first-class citizen 🤯 'Talk to your systems' Integrating Gen AI into your architectures with structured LLM output End-to-end architectures with LLMs 8 Clients Services LLMs Desktop Web Mobile Service A Service B Service C API Gateway Monitoring LLM 1 LLM 2
  9. 'Talk to your systems' Integrating Gen AI into your architectures

    with structured LLM output Goal: Extracting structured data from unstructured semantic input (aka human language text) 9 Automating GUI-based processes & workflows Creating efficient workflows with universal interfaces
  10. 'Talk to your systems' Integrating Gen AI into your architectures

    with structured LLM output TALK TO YOUR SYSTEMS HOW? 10
  11. 'Talk to your systems' Integrating Gen AI into your architectures

    with structured LLM output 11 Prompting Talk to me!
  12. 'Talk to your systems' Integrating Gen AI into your architectures

    with structured LLM output 12 ‘Function Calling’ Give me schema!
  13. 'Talk to your systems' Integrating Gen AI into your architectures

    with structured LLM output 13 Pydantic & Instructor Make it easier!
  14. 'Talk to your systems' Integrating Gen AI into your architectures

    with structured LLM output TALK TO YOUR SYSTEMS WHAT? 14
  15. 'Talk to your systems' Integrating Gen AI into your architectures

    with structured LLM output Creating efficient workflows with universal interfaces: Talk-to-Your-Company 15 Angular PWA Speech-to-Text Gen AI 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…
  16. Filling Angular forms with human language input – TypeScript-only protected

    readonly formGroup = this.fb.group({ firstName: [’’], lastName: [’’], addressLine1: [’’], addressLine2: [’’], city: [’’], state: [’’], zip: [’’], country: [’’] }); 'Talk to your systems' Integrating Gen AI into your architectures with structured LLM output Automating GUI-based processes: Smart form filling OK, nice – so here is my address then:: Peter Schmitt, Rheinstr. 7 in Schkeuditz – postcode is 04435, BTW. 16 Smart Form Filler (TS code & LLM)
  17. 'Talk to your systems' Integrating Gen AI into your architectures

    with structured LLM output TALK TO YOUR SYSTEMS RECAP 17
  18. § Human language enables new powerful use cases & access

    to our software § Automating GUI-based processes & workflows § Creating efficient workflows with universal interfaces § Always use structured output § Secret sauce for integrating LLMs into your application architectures § Instructor is a helpful library to boost LLM use cases § Implements best practices § Uses ‘Function Calling’ & other approaches § Supports any LLM / SLM § Integrates with FastAPI 'Talk to your systems' Integrating Gen AI into your architectures with structured LLM output Recap & Recommendations 18