# Synthetic Data Optimizer Cookbook

:::callout{intent="info"}
This page is a high-level entry point for the synthetic data workflow. Use the notebook or SDK script to run the full example end-to-end.
:::

## Launch the example

:::callout{intent="note"}
The notebook is the fastest way to explore synthetic data optimization in your browser.
:::

| Platform                     | Launch Link                                                                                                                                                                                                                 |
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Google Colab (Preferred)** | [<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open in Colab">](https://colab.research.google.com/github/comet-ml/opik/blob/main/sdks/opik_optimizer/notebooks/OpikSyntheticDataOptimizer.ipynb) |
| **GitHub**                   | [View the notebook on GitHub](https://github.com/comet-ml/opik/blob/main/sdks/opik_optimizer/notebooks/OpikSyntheticDataOptimizer.ipynb)                                                                                    |

## What this example covers

- Generating synthetic Q\&A datasets from Opik traces
- Using TinyQA (via [tinyqabenchmarkpp](https://pypi.org/project/tinyqabenchmarkpp/)) and variants like TinyQA++
- Optimizing prompts with MetaPrompt on synthetic data
- Reviewing results in the Opik UI

## Where the full implementation lives

:::callout{intent="note"}
Notebook: [`sdks/opik_optimizer/notebooks/OpikSyntheticDataOptimizer.ipynb`](https://github.com/comet-ml/opik/blob/main/sdks/opik_optimizer/notebooks/OpikSyntheticDataOptimizer.ipynb)
:::

:::callout{intent="note"}
SDK codebase: browse `sdks/opik_optimizer/` for dataset utilities, metrics, and optimizer implementations.
:::

## Next steps

- Run the notebook and swap in your own traces or datasets.
- Explore [Define datasets](https://www.comet.com/development/optimization-runs/optimization/define_datasets) and [Define metrics](https://www.comet.com/development/optimization-runs/optimization/define_metrics) for deeper control.

## Related pages

- [ARC-AGI Optimization Tutorial](./development-optimization-runs-cookbooks-arc-agi-optimizer-cookbook.md)
- [Multimodal Agent Optimization Tutorial](./development-optimization-runs-cookbooks-multimodal-agent-optimizer-cookbook.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
