3 – Prompt Engineering & Structured Outputs

presented by Giovanni Ciatto

Prompts and their engineering: the anatomy of a prompt and the best practices shared by providers, prompts as artifacts, structured outputs from Pydantic classes and how providers enforce them, first with OpenAI’s client library and then with LangChain, prompting techniques (zero-shot, few-shot, chain-of-thought, self-consistency, prompt chaining), reasoning models and how to control their effort, context management with compaction and prompt caching, and two exercises: scoring letters against a checklist and extracting data from ID documents.

course of the deck
Course_icon.svg Intelligent Agents (Module 2) (2nd cycle, 2026/2027) — Giovanni Ciatto
used in the lectures

cover