﻿# Phoenix dataset sync: stable IDs do not make every upload an incremental update

Distinguish Phoenix full-snapshot dataset diffs from incremental additions, using stable example IDs and version checks to avoid removing cases absent from a partial upload.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-phoenix-dataset-stable-id-snapshot-incremental-update/
Language: en

## Classify the uploaded population

A file containing newly reviewed evaluation cases may be a partial update rather than the complete dataset. Phoenix's [update guide](https://arize.com/docs/phoenix/datasets-and-experiments/how-to-datasets/updating-datasets) distinguishes those operations. Decide whether the upload should mirror the entire source of truth or modify only included cases. Stable IDs help identify records, but they do not by themselves determine what the absence of a record from an upload is supposed to mean.

## Inspect full-snapshot diff behavior

The current documentation describes creating a dataset with an example-ID key as a diff against the existing version. The resulting version mirrors the upload, including deletion of existing examples absent from it. That is useful for a complete source snapshot and surprising for a small reviewed subset. Before running such a sync, reconcile the intended full population and inspect which existing identities would disappear. Do not equate an ID-based diff with an append-only operation.

## Use the appropriate incremental contract

The same guide distinguishes adding examples with stable IDs, which updates matching examples and adds new ones while preserving existing examples not included in the upload. Without stable IDs, rows are appended with generated identities. The [dataset-creation reference](https://arize.com/docs/phoenix/datasets-and-experiments/how-to-datasets/creating-datasets) provides the surrounding input configuration. Choose the operation according to the source's completeness, rather than selecting whichever function name sounds most similar to a general-purpose database upsert.

## Preserve versions and source identity

The [dataset overview](https://arize.com/docs/phoenix/datasets-and-experiments/overview-datasets) describes versioned collections of examples. Record the dataset and version associated with an upload and subsequent evaluation. Retain stable application-level example identities and keep them distinct from model input and expected-answer fields according to the documented configuration rules. If a source changes its IDs, an apparent edit can instead become deletion and addition, obscuring whether a benchmark changed or only its identity mapping did.

## Verify the diff on a diagnostic dataset

Use a small fixture containing an unchanged case, an edited case, a new case and an existing case absent from the upload. Confirm the resulting population for both snapshot and incremental workflows. The guides to [CSV case interpretation](/journal/fg2-promptfoo-csv-expected-assertion-language/) and [retrieval identity namespaces](/journal/fg2-ragas-id-context-precision-document-chunk-namespace/) provide related controls. Accept the sync when additions, edits and removals reflect the intended source contract, keeping changes to benchmark membership visible before interpreting later differences in model scores.
