
Optimizing Local LLM SVG Code Generation with TextGrad
The TextGrad whitepaper describes two types of optimizations we can apply:
1. Instance optimization – Directly optimize a solution to a problem like a code snippet or a generated report
2. Prompt optimization – find a prompt that improves the performance of an LLM across multiple queries for a task. We can optimize at the system-prompt or the user-prompt level