DSPy Launches Flex Module: Optimizing Both Prompts and Code Automatically

lateinteraction · x · 2026-08-06

The AI programming and prompt optimization framework DSPy has introduced the new Flex module. Known for its high composability, the new module can write and optimize both program code and prompts, seamlessly integrating prior innovations like RLMs and GEPA.

Additionally, DSPy has achieved significant breakthroughs in optimization: using GEPA technology, it previously improved task accuracy from 90% to 95% while drastically reducing LLM calls by 75%.

Original post →

More from coding & agent

coding & agent channel →