In this video, we'll explore how Ollama now supports structured outputs, making it possible to constrain a model's output to a specific format defined by a JSON schema. [00:00:10] What is structured output and how does it relate to day-to-day development? [00:00:24] Ollama blog post about structured outputs [00:00:31] Explanation of structured outputs [00:00:56] Use cases [00:01:48] Coding examples and explanation [00:01:51] Pydantic models explanation [00:02:15] Pydantic models in code [00:02:27] Chat portion [00:03:29] Parsing response and generating output [00:03:50] Running code [00:04:49] Checking the results [00:06:39] More advanced example [00:07:53] Pydantic models code for advanced example [00:08:49] Pass info into the chat model Join this channel to get access to perks: https://www.youtube.com/channel/UCApiD66gf36M9hZanbjgNaw/join