Skip to content

Commit 4ac6c86

Browse files
authored
Merge pull request #190 from zou-group/pan/chameleon
added textgrad for chameleon
2 parents 31893e0 + db9754e commit 4ac6c86

File tree

10 files changed

+2115
-0
lines changed

10 files changed

+2115
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
3+
## TextGrad Optimization for the Agentic System Chameleon
4+
5+
Here, we provide the notebook examples for the agentic system [Chameleon](https://arxiv.org/abs/2304.09842).
6+
7+
Chameleon is a complex AI system that can plan, execute, and reason about a sequence of tools to answer a question. TextGrad is used to optimize the long chain of reasoning steps in Chameleon in an interactive self-improvement loop.
8+
9+
One example is provided: [TextGrad_Chemeleon_ScienceQA.ipynb](TextGrad_Chemeleon_ScienceQA.ipynb).
10+
11+
## Install the required packages
12+
13+
Install the required packages using the following commands:
14+
15+
```sh
16+
conda create --name textgrad
17+
conda activate textgrad
18+
cd textgrad
19+
pip install -e .
20+
pip install matplotlib
21+
pip install easyocr
22+
```
23+
24+
Also install:
25+
```sh
26+
sudo apt install graphviz
27+
```
28+
29+
For more installation instructions, please refer to the [installation instructions](https://github.com/zou-group/textgrad?tab=readme-ov-file#installation) in the [textgrad](https://github.com/zou-group/textgrad) repository.

examples/notebooks/chameleon/TextGrad_Chemeleon_ScienceQA.ipynb

Lines changed: 948 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)