Synthetic Data Optimizer Cookbook

Advanced example notebook using syntethic datasets

This example shows how to generate synthetic Q&A data from Opik traces and optimize prompts using the MetaPromptOptimizer. All steps, code, and explanations are provided in the interactive Colab notebook below.

Load Example Notebook

To follow this example, simply open the Colab notebook below. You can run, modify, and experiment with the workflow directly in your browser—no local setup required.

PlatformLaunch Link
Google Colab (Preferred)Open in Colab
AlternativesOpen in GitHub Codespaces Open in Deepnote

What you’ll learn

  • How to extract and clean traces from Opik
  • How to generate synthetic Q&A datasets using tinyqabenchmarkpp
  • How to upload and manage datasets in Opik
  • How to configure and run the MetaPromptOptimizer on synthetic data
  • How to interpret and visualize optimization results

Quick Start

  1. Click the Colab badge above to launch the notebook.
  2. Follow the notebook’s step-by-step workflow.
  3. For more details, see the Opik Agent Optimizer documentation.