TextGrad: Automatic "Differentiation" via TextMert Yuksekgonul et al.
2 TEXTGRAD: Optimizing AI systems by backpropagating text feedback
Below we first describe a example to demonstrate what TEXTGRAD looks like for a system made of two LLM calls, and then give the more general form for arbitrarily complex systems.