Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
New course: Pydantic for LLM Workflows
Play lesson

DeepLearning.AI Courses - New course: Pydantic for LLM Workflows

5.0 (2)
18 learners

What you'll learn

This course includes

  • 5.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Full Transcript

Learn more: https://bit.ly/4fepmFI In Pydantic for LLM Workflows, taught by Ryan Keenan, Director of the Learning Experience Lab at DeepLearning.AI, you’ll learn to bring structure, reliability, and validation to the data in your LLM-powered applications using Pydantic, a Python library for data validation. LLMs naturally provide free-form text responses, which works for unstructured generation, such as article summaries or brainstorming exercises. However, when you're building an LLM into a larger software system, in which you want to pass data from an LLM response to the next component of the system in a predictable way, that's when structured output can be a big help. In this course, you’ll learn to move beyond free-form LLM responses and generate structured outputs that are easier to process and connect to other tools. You’ll begin by understanding what structured output is and why it matters when building applications that use LLMs. Through the example of a customer support assistant, you’ll learn different methods of using Pydantic to ensure an LLM gives you the expected data and format you need in your application. These methods ensure that the LLM’s responses are complete, correctly formatted, and ready to use, whether that means creating support tickets, triggering tools, or routing requests. Throughout the course, you’ll gain core data validation skills that can be helpful in any software system you build, where you want to pass data from one component to the next. You’ll also learn how modern frameworks and LLM providers support structured outputs and function calls using Pydantic under the hood. In detail, you’ll: - Learn the basics of Pydantic, and practice different approaches for getting structured data from Pydantic models. - Validate user input, catching issues like badly formatted emails or missing fields before they cause problems. - Use Pydantic data models directly in your API calls to different LLM providers and agent frameworks as a reliable way to get a structured response. - Combine structured outputs and tool-calling with Pydantic models in your application. Pydantic is one of the most popular data validation frameworks out there. It sees over 300 million downloads a month, making it also one of the most popular Python packages, and that's because data validation is at the core of any application. By the end of the course, you’ll be able to build LLM-powered applications where every step is structured, validated, and ready to plug into your workflow. Enroll for free: https://bit.ly/4fepmFI

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere