Omar Khattab, DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelines
ai.bythebay.io Nov 2025, Oakland, full-stack AI conference The ML community is rapidly exploring techniques for prompting language models (LMs) and for stacking them into pipelines that solve complex tasks. Unfortunately, existing LM pipelines are typically implemented using hard-coded "prompt templates", i.e. lengthy strings discovered via trial and error. Toward a more systematic approach for developing and optimizing LM pipelines, we introduce DSPy, a programming model that abstracts LM pipelines as text transformation graphs, i.e. imperative computational graphs where LMs are invoked through declarative modules. DSPy modules are parameterized, meaning they can learn (by creating and collecting demonstrations) how to apply compositions of prompting, finetuning, augmentation, and reasoning techniques. We design a compiler that will optimize any DSPy pipeline to maximize a given metric. We conduct two case studies, showing that succinct DSPy programs can express and optimize sophisticated LM pipelines that reason about math word problems, tackle multi-hop retrieval, answer complex questions, and control agent loops. Within minutes of compiling, a few lines of DSPy allow GPT-3.5 and llama2-13b-chat to self-bootstrap pipelines that outperform standard few-shot prompting and pipelines with expert-created demonstrations. On top of that, DSPy programs compiled to open and relatively small LMs like 770M-parameter T5 and llama2-13b-chat are competitive with approaches that rely on expert-written prompt chains for proprietary GPT-3.5. DSPy is available as open source at https://github.com/stanfordnlp/dspy. More details available here: https://www.scale.bythebay.io/post/om...

DSPy: Transforming Language Model Calls into Smart Pipelines // Omar Khattab // MLOps Podcast #194

DSPy and ColBERT with Omar Khattab! - Weaviate Podcast #85

DSPy — Does It Live Up To The Hype?

Vlad Dyanchenko | The Perfect Programming Language for the AI Era: How Should It Look?

Guilherme Dalla Rosa: Building Secure and Efficient SaaS Platforms on AWS Serverless

DSPy Explained!

SBTB 2023: PANEL - Data, Code, and Life with LLMs.

OpenAI is massively behind its ad revenue targets | Ed Zitron

MIPRO and DSPy with Krista Opsahl-Ong! - Weaviate Podcast #103

Optimizing LLMs in Insurance with DSPy: Jeronim Morina

LlamaIndex Webinar: Learn about DSPy

Is This Wish Meant to Be Fulfilled? 🧚🤲 Detailed Pick a Card Tarot Reading ✫・

Bay.Area.AI: DSPy: Prompt Optimization for LM Programs, Michael Ryan
![Your Phone Is Destroying Your Sense of Meaning | Arthur Brooks [ARC 2026]](https://i.ytimg.com/vi/PfTcgYwW14E/hqdefault.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLBzBqlOzXKaS_MJrH8pIKehA8ZKPQ)
Your Phone Is Destroying Your Sense of Meaning | Arthur Brooks [ARC 2026]

Automated Prompt Engineering with DSPy

Chosen One, This Is Why God Kept You Single All This Time

Keynote: After the AI Hype – What’s Real, and What’s Next - Richard Campbell - 2026

Applications of Stanford DSPy for Self-Improving Language Model Pipelines

DsPy Tutorial - optimize your LLM pipelines with DsPy (Part 1)

