Sitemap
Lina Faik

Lina Faik

Lead AI Scientist bringing AI research to real-world impact across industries. Independent consultant. Subscribe to: aipractitioner.substack.com

Member-only story

TextGrad in Practice: Optimizing LLM Agent Prompts with Textual Gradients

How Textual Gradients Turn Banking Classification Errors into Measured Prompt Updates

16 min readNov 3, 2026

--

Press enter or click to view image in full size

This article is also available as a podcast! If you’re on the go or just want to absorb the content in audio format, you can listen to the full episode below 👇 The podcast is also available on Spotify and Apple Podcasts.

Prompt engineering is often treated as a development task. Prompts are tested, refined, and then deployed. But in production, new failures emerge as data and models evolve. Keeping instructions effective becomes an ongoing process rather than a one-time effort.

Manually analyzing failures, rewriting prompts, and evaluating each change quickly becomes difficult to scale. Automated prompt optimization offers an alternative, using feedback to identify weaknesses and update instructions without modifying the underlying model.

The previous article, Continuously Optimizing AI Agent Prompts in Production, introduced and compared…

--

--

Lina Faik
Lina Faik

Written by Lina Faik

Lead AI Scientist bringing AI research to real-world impact across industries. Independent consultant. Subscribe to: aipractitioner.substack.com