How to code an automatic prompt optimizer. How the most advanced prompt optimization tool, DSPy, works and how to fully leverage its capabilities. How to perform prompt engineering programmatically in Python, efficiently manipulating prompts with code to create powerful, maintainable, and composable AI programs.
As a practical example, this AI tutorial demonstrates how to optimize the extraction of structured data from receipts, improving accuracy from 20% to 100%.
This video is sponsored by PixelTable: https://www.pixeltable.com/
00:00:00 Introduction
00:05:36 Chapter 1: Coding our own Automatic Prompt Optimizer
00:42:30 Chapter 2: Automatic Prompt Optimization with DSPy
01:15:30 Chapter 3: Programmatic Prompt Engineering