Benchmark POC for GreenPT — measures token savings of TOON compression and prompt-engineering optimization on top of GreenPT's hosted models, without sacrificing output quality.
A 3-agent LangGraph pipeline that:
- Simulation Agent — replays rows from a 36-row test dataset (4 use cases × 3 sizes)
- GreenPT Agent — runs 4 optimization methods against each row and measures tokens
- Eval Agent — scores each output 1–5 using G-Eval (LLM-as-judge)
Output: a results CSV with use_case | size | method | token_savings_% | g_eval_score.
| Method | Model | Optimization layer |
|---|---|---|
baseline |
green-l-raw |
none — reference point |
postprocess |
green-l-raw + local TOON encoder |
client-side compression after generation |
prompt_engineering |
green-l |
GreenPT's built-in tuned system prompt |
combined |
green-l + local TOON encoder |
both layers stacked |
Same underlying model (Mistral Small 3.2 24B) for all four — only the optimization layer changes.
pip install -r requirements.txt
echo "GREENPT_API_KEY=sk-..." > .env
python run.py --limit 2 # process 2 rows × 4 methods
python run.py # full 36-row benchmarkResults land in outputs/results.csv.
toon.py— TOON compression enginestate.py— LangGraph state shapegraph.py— graph wiringnodes/— the 3 agent node functionstools/— LangChain@toolwrappersrun.py— CLI entry pointgenerated_llm_dataset.csv— 36-row evaluation datasetPROJECT.md— full product/POC spec