opto.optimizers.textgrad#
Module attributes
//github.com/zou-group/textgrad/blob/main/textgrad/autograd/llm_ops.py zou-group/textgrad |
|
reduce / sum |
Functions
Construct a prompt that reduces the gradients. |
|
Construct the textual gradient descent prompt. |
|
Returns a short version of the value of the variable. |
|
Removes trace node attributes (text inside square brackets) from a string. |
Classes
GradientInfo(gradient: str, gradient_context: Optional[Dict[str, str]]) |
|