> ## Documentation Index
> Fetch the complete documentation index at: https://docs.baserun.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Compare prompt versions

When crafting writing prompts, small changes in wording or configuration can lead to major differences in results. Managing and sharing different versions of these prompts, especially among team members, can be challenging. The Baserun Compare feature enables the entire team to compare prompt templates, models, and configurations side by side, facilitating easier iteration and performance evaluation.

<Frame>
  <video controls className="w-full aspect-video" src="https://mintcdn.com/baserun/RoOPWwfCH85oSKT_/videos/prompt-playground-compare.mp4?fit=max&auto=format&n=RoOPWwfCH85oSKT_&q=85&s=ffa03e92fcfff9acdad61f5b069207a5" data-path="videos/prompt-playground-compare.mp4" />
</Frame>

### Use cases

* **Deciding which models or configurations:** Pick the best option by comparing their results side by side.
* **Decide which prompt version performs better:** Determine the most effective way of phrasing prompts by evaluating different versions.
* **Regression Tests/Backtesting:** Check if new results match what's expected to spot any regressions or deviations.

### Features

* Version cotrols
* Edit prompt versions & testing cases on the fly
* Side-by-side comparisons
* Bulk testing
* Share reports
* Export reports

### Instruction

<Steps>
  <Step
    title="Click the `Compare` button at top right corner of the prompt
details in your playground."
  >
    In the latest version, we merged the "Compare" and "Playground" tabs into
    one. You can now switch between the two modes through tabs. "New session"
    will default to the "Playground" mode."New compare session" will default to
    the "Compare" mode.
  </Step>

  <Step title="Select the prompt and the versions you would like to compare.">
    By default, Baserun pre-selects the previous version, but you can also
    create a new version within the comparison report.

    <Frame>
      <img src="https://mintcdn.com/baserun/RoOPWwfCH85oSKT_/images/prompt-playground-duplicate-prompt-version.gif?s=e9d85381df92a072e800e1b3e57d52e0" alt="Duplicate prompt version" width="1152" height="720" data-path="images/prompt-playground-duplicate-prompt-version.gif" />
    </Frame>
  </Step>

  <Step title="Click Run all to generate outputs.">
    You can also edit the test inputs at any time and rerun the test.
  </Step>

  <Step title="Save as the active version.">
    After you have decided on the best-performing version, click on the prompt
    card, and then click on the 'Save as the Active Version' button. This action
    will set the selected version as the active version for the prompt.

    <Frame>
      <img src="https://mintcdn.com/baserun/RoOPWwfCH85oSKT_/images/prompt-playground-compare-save-as-active.gif?s=2d6463d9f014bdaac5bf3e3b3640a8b1" alt="Save as the active version" width="1152" height="720" data-path="images/prompt-playground-compare-save-as-active.gif" />
    </Frame>
  </Step>
</Steps>
