arXiv 2310.03714
DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelines
By Omar Khattab, Arnav Singhvi, et al.
Published 2023-10-05
Citation lineage
Review the prior work and downstream research connected to this paper.
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 t…