Skip to main content
For the complete documentation index for agents and LLMs, see llms.txt.

Create a Dataset from Pipeline TrafficBeta

Beta
This is coming — this page describes a feature that's still being rolled out and may not be available to you yet.

Turn the conversations a pipeline handled in a time window into a Dataset, so you can measure changes on real traffic without picking conversations one by one.


About This Task​

A Dataset built from traffic holds one test case for each Session the pipeline recorded in the window you choose. If the window holds more Sessions than the size you set, the platform samples across the whole window, so a long window isn't represented only by its newest days.

You can build the Dataset in two ways:

  • As recorded: Each test case keeps its Session exactly as it was recorded and is named after the Session's first query. Use this to replay real conversations on another pipeline version. Nothing judges a Dataset kept as recorded, so the number of Evaluators doesn't limit how many Sessions it can hold.
  • Convert with AI: An LLM turns each sampled Session into a test case. Use this when you want test cases that are cleaned up and ready to score. Sessions that can't be converted are left out and listed with the reason.

A Dataset holds at most 100 test cases, and the window can span at most 90 days. For background on Datasets, see Evaluation Datasets and Metric Groups.

Prerequisites​

  • A pipeline that recorded Sessions in the window you want to use.
  • For Convert with AI, a platform setup that can generate test cases. If it isn't available, Convert with AI is turned off and As recorded still works.

Build the Dataset​

  1. Click Evaluation in the sidebar and go to Datasets.
  2. Click From traffic.
  3. In Pipeline, choose the pipeline whose Sessions you want.
  4. Choose the time window.
  5. In Size, enter the maximum number of test cases. A Dataset holds at most 100.
  6. In Name, keep the default, which is built from the pipeline name and the window, or type your own.
  7. Choose how to build the Dataset, and click Build:
    • As recorded: The platform creates the Dataset and opens it.
    • Convert with AI: The dialog shows how many Sessions were sampled and how many are converted. When it finishes, the Dataset is ready.

With Convert with AI, you can close the dialog while the conversion runs. A notification tells you when the Dataset is ready, and the Datasets list refreshes to show it.

When the conversion finishes, check the skipped Sessions. The dialog lists each Session that was left out and why. Skipped Sessions don't become test cases, so build the Dataset again with a larger size or a different window if you need more.

Use the Dataset​

To compare pipeline versions on the new Dataset, run an Experiment on it. For the steps, see Run an Experiment. To review, edit, or copy its test cases, see Build an Evaluation Dataset.

If the build fails or the Dataset is smaller than you expected, see Fix a Dataset Built from Pipeline Traffic.