textgrad logo

textgrad

zou-group/textgrad

Automatic 'Differentiation' via Text using Large Language Models to Backpropagate Textual Gradients

GraphCanon updated Sep 20, 2026 · GitHub synced Sep 20, 2026

60views this month

3.7k stars294 forksLast push Jul 25, 2025 Python MIT

Decision brief

TextGrad optimizes prompts using large language models to backpropagate textual gradients.

Good fit when

  • When optimizing complex prompting for large language models in production due to its published effectiveness.
  • For cutting-edge prompt optimization research, thanks to its integration options beyond just pip.

Avoid when

  • If only basic and traditional manual tuning methods are needed for simpler use cases.
  • Avoid if strict version control is required since the bleeding edge installation points to GitHub directly.

Observed Jul 12, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Dormant (388d since push)
As of Aug 18, 2026
Provenance
Not a fork · Organization account
As of Aug 18, 2026
Security (OSV)
19 low (19 low)
As of Jul 11, 2026

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

pip install textgrad
PyPI

How it fits your stack(8)

Typed graph edges - alternatives, integrations, successors, and dependencies. Ranked by relationship type, not raw GitHub stars.

Integrates

Related

Relationship graph

Optional deeper exploration of typed edges and category neighbours.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

TextGrad is a tool that leverages large language models to optimize prompts by backpropagating textual gradients.

Capability facts

Languages
python

Source: github.language · Aug 18, 2026

Categories

Graph entities

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Aug 18, 2026)

pip install textgrad
Source link

Tags

README

Installation You can install TextGrad using any of the following methods. With : With : :bulb: The conda forge package for is maintained here. Bleeding edge installation with : Installing textgrad with vllm : See here for more details on various methods of pip installation.

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.