← Browse

Session brief

Pydantic is all you need: Jason Liu

18 min

Overview

This talk introduces Pydantic as a powerful tool for building applications with language models, focusing on structured prompting. The core thesis is that by defining data structures with Pydantic, developers can move beyond unreliable string-based interactions with LLMs and achieve more robust, maintainable, and type-safe code. This approach enhances data validation, simplifies prompt engineering, and enables LLMs to integrate more seamlessly with existing software systems.

Who should watch

Key takeaways

Notable quotes

The idea is that we can use objects to define what we want back out rather than kind of praying to the LLM gods that the comma is in the right place and the bracket was closed.
The goal for today is effectively introduce open AI function calling, introduce Pydantic, then introduce Instructor and Marvin as a library to make you using Pydantic to prompt language models are much easier.
The idea here is just to make open AI function calling super useful.

Watch on YouTube →

Unofficial community note. Prefer the recording for nuance.