This hands-on tutorial introduces programmatic prompt engineering with DSPy, from hosting a local language model to defining signatures and modules, evaluating a reasoning pipeline, and optimizing it with MIPROv2.
This notebook was developed and curated by Tommy Cheng for the NAIRR 2026 Training-Free Alignment of LLMs tutorial.