The code_review example demonstrates how to optimize an LLM code review workflow with the Taguchi L8 design.
examples/
└── code_review/
├── experiment_config.yaml # Ready-to-run Taguchi configuration
└── sample_code/
├── example1.py # Baseline snippet used during runs
└── example2.py # Additional file for experimentation
-
Install TesseractFlow in a virtual environment (
pip install -e .). -
Export an API key supported by LiteLLM (
export OPENROUTER_API_KEY=...). -
Execute the experiment:
tesseract experiment run examples/code_review/experiment_config.yaml --output results.json --record-cache
-
Analyze and visualize the results:
tesseract experiment analyze results.json --export optimal.yaml tesseract visualize pareto results.json --output pareto.png --budget 0.010
The configuration balances quality, cost, and latency across four binary variables: temperature, model, context window, and generation strategy. Use it as a template for your own repositories by replacing sample_code_path and rubric details.