MENU

Fun & Interesting

Ollama Structured Outputs with Phi4 is KILLER - Get Started NOW!!

Chris Hay 7,428 lượt xem 3 months ago
Video Not Working? Fix It Now

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

Comment