DSPy Launches Flex: Optimizes Code and Prompts with Fewer LLM Calls

dbreunig · x · 2026-08-06

DSPy has introduced Flex, a new feature that can now optimize your program's code in addition to the prompt. By utilizing GEPA, it took one task from 90% to 95% accuracy while making 75% fewer LLM calls.

Related event: DSPy Introduces Flex for Code-Level Optimization, Slashing LLM Calls(6 posts)→

Original post →

More from coding & agent

coding & agent channel →