DSPy Introduces Flex: Optimizing Code Alongside Prompts

lateinteraction · x · 2026-08-06

The DSPy framework has introduced Flex, expanding its capabilities from prompt optimization to program code optimization. According to the quoted tweet, combined with GEPA, Flex improved accuracy on a task from 90% to 95% while reducing LLM calls by 75%.

Additionally, the upcoming Bay Area DSPy Meetup will focus on framework features and tricks. Michael Isaac will detail Flex's goals and implementation, alongside lightning talks on using DSPy and GEPA to match writing tone and other topics.

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

Original post →

More from coding & agent

coding & agent channel →