Dr. Thomas Eisenbarth

← All talks

Talk with live demo · for engineers

AI without data leakage: Local language models in practice

Cloud AI is convenient, but for customer data, trade secrets and sensitive personal data it often isn’t an option. This talk shows how open-weight models such as Llama, Mistral or Gemma run on your own servers, how they work with internal knowledge through retrieval-augmented generation (RAG), and where their limits are.

What it covers

Running language models locally has become easy: with tools like Ollama, an open-weight model runs on your own hardware after a single command. The AI system needs no internet access in operation, and the data never leaves the building.

  • Why local: Special categories of personal data under the GDPR, confidential internal information and customer data don’t belong in a public AI service.
  • Limits of language models: They have a knowledge cutoff, sometimes make things up very convincingly, and only know public information, so neither internal code nor quotes or figures.
  • Retrieval-augmented generation (RAG): Internal documents are split into chunks, stored as vectors (embeddings) in a database and added to the prompt to match the question. The answer links to the primary source.
  • Live demo: makandra’s internal AI application, running Llama on its own servers. It shows a chat without context, the effect of system prompts, and questions to the company’s own knowledge base and source code.
  • Under the hood: What requests, system prompts and embeddings look like in practice when using the API of a local model.
  • Public or local: Public models offer high performance and good quality but make processing sensitive data difficult. Local models come in a wide range from Meta, Microsoft, Google or Alibaba, including image models. They are easy to run but need resources and are sometimes less capable.

Key takeaways

  • Using local language models is easy. Data protection, data sovereignty and data security speak for them; lower performance, sometimes weaker models and the effort of running them speak against.
  • With RAG, sensitive and confidential data can be processed with a language model.
  • It takes careful tuning. Lessons from running it ourselves:
    • The bigger the context, the slower the model.
    • The RAG context has to fit into the context window, otherwise the model forgets the system prompt.
    • pgvector is good enough for most use cases, but embeddings take up a lot of storage.
    • Splitting documents into sensible chunks is hard: the algorithm has to know the structure of every document type.
    • Prompt engineering has a big impact on the quality of the answers.

Typical use cases

  • GDPR-compliant internal tools
  • Internal chatbot with access to company knowledge in Confluence or wikis
  • First-level support chatbot with access to detailed FAQs
  • Reading scanned customer complaints: who is complaining, about what, and what they expect, as structured data
  • Extracting text from PDFs, summarizing it and suggesting replies
  • Proofreading emails, drafting quotes, CRM features
  • “Related content” sections on websites based on embeddings

Previous appearances

Original titles in German, with an English translation in parentheses.

  • Jul 21, 2026

    Technologietransfer-Kongress 2026, Augsburg

    “KI auf eigenen Servern: Ein Praxisbeispiel aus Luft- und Raumfahrt” (AI on your own servers: a case study from aerospace) in the “KI im Fokus” forum, DZ.S Founders Factory. Program (PDF, German)

  • Apr 11, 2025

    Future Week Augsburg, event of the city’s Digital Council

    “Künstliche Intelligenz sicher nutzen” (Using AI safely) at the Future Store, part of the Rocketeer Festival. Program (German)

  • Apr 8, 2025

    Technologietransfer-Kongress 2025, Augsburg

    “Volle Kontrolle & sichere Daten mit lokaler KI” (Full control and secure data with local AI), together with Michael Leimstädtner. Program (PDF, German)

  • Jan 16, 2025

    DZ.S Tech Talk, Digitales Zentrum Schwaben

    “Datenschutz-konforme KI-Nutzung durch lokal ausgeführte Sprachmodelle (LLMs)” (Privacy-compliant AI with locally run language models), together with Michael Leimstädtner, hosted by aitiRaum e.V. and DZ.S. Announcement (German)

Interested in this talk?