Visually compare and diff code, traces, prompts, models, and configurations
The Weave Comparison feature allows you to visually compare and diff code, traces, prompts, models, and model configurations. You can compare two objects side-by-side or analyze a larger set of objects to identify differences, patterns, and trends.This guide covers the steps to start a comparison and the available actions to tailor your comparison view, including baseline comparisons, numeric diff formatting, and more.
This option is only available when comparing two objects, or a pair from a multi-object comparison.To compare each object side-by-side in separate columns, select Side-by-side.
This option is only available when comparing two objects, or a pair from a multi-object comparison.To compare each object in a unified view, select Unified.
By default, each object in the Comparison view is compared to the object to its left. However, you can set an object as the baseline, which means that all objects will be compared to the leftmost object in the view.
To set an object as baseline, do the following:
In the Comparison view topbar, mouse over the object that you want to set as the baseline.
Click the three dots to the right of the ID.
In the dropdown, select Make baseline. The UI refreshes so that the baseline object is furthest left in the topbar, and Baseline displays next to the ID.
For numeric values such as completion_tokens and total_tokens, you can view the diff as either an integer or a percentage. Additionally, positive numeric values can be viewed as a multiplier. To change a numeric diff’s display format, do the following:
In the Comparison table, find the numeric value that you want to update the diff display format for.
Click the diff value. The format automatically updates to either an integer or a percentage.
In the right hand corner of the Comparison view, click the dropdown. Depending on your current view configuration, the dropdown is either titled Compare with previous or Compare with baseline.
Depending on your current view configuration, select either Compare with previous or Compare with baseline.
Compare with baseline: Sets the leftmost object as the baseline. The table updates so that the leftmost column is the baseline.
Compare with previous: No object is set as baseline.
This option is only available when comparing 3 or more objects.When comparing 3 or more objects, you can compare a single object to a previous object or baseline. This changes the Comparison table view so that the view is identical to a two-object comparison. To compare a pair of objects from a multi-object comparison, do the following:
In the Comparison view topbar, find the ID that you want to compare to previous or baseline.
To select the item, click the ID. The UI refreshes with a two-way comparison table.
To reset the view so that the first 6 objects selected for comparison are displayed in the table, click the ID again.
The Comparison feature is only available in the UI.
You can compare as many objects as you’d like. However, the UI only displays a maximum of 6. To view an object in the comparison table that is not visible when comparing more than 6 objects, either change the comparison order so that the object is one of the first 6 objects from left to right, or pair from a multi-object comparison for easy viewing.