Ollama Structured Outputs with Phi4 is KILLER - Get Started NOW!!
Chris Hay
@chrishayukAbout
hi there, welcome to my channel, hope you enjoy it and are as having as much fun as i am. my name is chris hay and i love code, software architecture and technology in general. as you may have figured, i work for IBM (who i love working for) but all opinions are most definitely my own and do not represent the views of my employer
Latest Posts
Video Description
Structured Outputs gives the ability to specify to the model to return it's outputs in a format that you specify. Now that Ollama supports structured outputs, you can do some pretty incredible things from building verifiers to agent. In this video chris explains how to get started with Structured Outputs and show how it's can be used to write verifiers or even self-reflecting sudoku puzzle verifiers. Github Repo: https://github.com/chrishayuk/structured-outputs Full Video on Phi4: https://youtu.be/aYvt9czdgbU 00:00 - Introduction 01:45 - Verifiers demo 02:45 - Pydantic Objects 05:11 - Getting the schema and json 06:30 - Ollama and Phi4 10:00 - Calling Structured Outputs from Ollama and Phi4 14:54 - Using Llama3.1 15:13 - IBM Granite 15:23 - Verifiying Sudoku Puzzles 19:57 - Reflecting with Multiple Passes 24:52 - Conclusion
You May Also Like
Upgrade Your AI Toolkit Today
AI-recommended products based on this video

Seasonic Focus V4 GX-1000 (ATX3) - 1000W - 80+ Gold - ATX 3.0 & PCIe 5.1 Ready -Full-Modular -ATX Form Factor -Premium Japanese Capacitor -10 Year Warranty -Nvidia RTX 30/40 Super & AMD GPU Compatible

PNY NVIDIA Quadro RTX 4000 - The World’S First Ray Tracing GPU

Corsair MP600 PRO LPX 4TB M.2 NVMe PCIe x4 Gen4 SSD - Optimized for PS5 (Up to 7,100MB/sec Sequential Read & 6,800MB/sec Sequential Write Speeds, High-Speed Interface, Compact Form Factor) Black

Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Noise-Cancelling Mic and LED Display, Built-in Mic for Clear Calls, Waterproof Design for Sports

Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Powerful Bass, Built-in Noise-Cancelling Mic for Clear Calls, LED Display, 36H Playtime, IPX5 Waterproof Design for Sports

NA to Clamp, Quick Release NA to Rail Lock Clamp with 1/4in 3/8in Thread, Standard NA to Clamp Adapter for Camera Cage Friction Arm Ball Head Cold Shoe Microphone Monitor

MSI MAG MT201D - Premium Heavy Duty Dual Monitor Stand Arms, 17-45" Support, VESA Compatible, Adjustable Spring Mount, 44 lbs per Screen, Clamp & Grommet, Quick Release Plate - Black

VersionTECH. Gaming Mouse Ergonomic Wired Computer Mouse with 7 Colors LED Backlight, 4 DPI Settings Up to 3600 DPI Compatible for Chromebook Windows 7/8/10/11 XP/Mac/Linux Gamer/Notebook/MacBook

LODVIE Wireless Mouse for Laptop,2400 DPI Wireless Computer Mouse with 6 Buttons,2.4G Ergonomic USB Cordless Mouse,15 Months Battery Life Mouse for Laptop PC Mac Computer Chromebook MacBook-Black

soundcore by Anker P20i True Wireless Earbuds, 10mm Drivers with Big Bass, Bluetooth 5.3, 30H Long Playtime, IPX5 Water-Resistant, 2 Mics for AI Clear Calls, 22 Preset EQs, Customization via App




















