PyData Amsterdam 2025

🍯 Sweet Language Model Python Applications
09-26, 13:25–14:00 (Europe/Amsterdam), Nebula

It's easy to get into sticky situations when building language model powered applications. This talk helps you transform sticky messes into sweet successes.

This talk delivers practical insights from creating production-ready language model solutions with Python. Moving beyond theoretical possibilities, we'll explore the real architectural decisions, code patterns, and tradeoffs that determine success or failure. Through a progressive case study, we'll demonstrate how to effectively leverage Pydantic structured outputs, validation techniques, and thoughtful API integrations while avoiding common pitfalls. Perfect for Pythonic product teams looking to build applications that result in a sweet treat everyone will love.


While every product team faces pressure to integrate language models, translating API calls into reliable, production-grade features remains challenging. This talk cuts through the hype to deliver practical patterns for success based on real-world implementation experience, emphasising the value of maintaining product decision logs to track architectural choices and their downstream consequences.

The core of the talk focuses on implementing structured outputs with Pydantic as a bridge between unpredictable language model responses and structured Django backends. We'll cover prompt design for structured data, validation and regeneration strategies, data flow from language model through database to frontend, and approaches to tuning task accuracy for users. A live demonstration will showcase these patterns in a working application through a component-by-component tour.

We'll address balancing code quality with "vibe-coding" when working with language models, sharing strategies for maintaining engineering standards while allowing for creative experimentation. The talk tackles practical questions every product team faces: How much "AI magic" is appropriate? When does performance justify cost? How do you choose between reasoning models and flash models? And how do you validate that your language model components actually deliver value?

Attendees will leave with concrete architectural patterns, code examples for structured outputs, decision frameworks for balancing automation and performance, and strategies for managing complete data flows in language model applications. This isn't a theoretical exploration but a practical guide based on building features that deliver genuine value to users.