Qualitative learning

The Unreasonable Effectiveness of Separating the Task from the Model — Maxime Rivest, DSPy

The Unreasonable Effectiveness of Separating the Task from the Model — Maxime Rivest, DSPy

DSPy emphasizes separating task definition from model implementation using a "Signature" (inputs/outputs) to enable flexible, optimizable, and scalable AI programs. The framework relies on three pillars—instructions (specs), hard constraints (code), and examples (evals)—to fully specify tasks. DSPy 4.0 introduces DSPy Flex for learning program harnesses and Qualitative Learning for automated, feedback-driven evaluation refinement, offering significant benefits for enterprise applications and addressing "last-mile learning" for future AI systems.