# Version Comparison

The **Compare with other versions** feature provides a structured way to review and validate changes across different iterations of a prompt. It offers full visibility into the version history, allowing users to monitor how a prompt evolves over time and ensure modifications are intentional.&#x20;

The screenshot below shows the comparison option in the editor.

<figure><img src="/files/g86Agq9glEkkxKwelUKN" alt=""><figcaption></figcaption></figure>

By clicking the comparison option, a version history panel opens displaying all saved versions along with their identifiers, creation timestamps, and any associated tags. From this panel, users can select a specific version to compare against the current draft or a published version.&#x20;

The screenshot below illustrates the version history view.

<figure><img src="/files/yPeGFg3FzVRIill0jbM5" alt=""><figcaption></figcaption></figure>

Once a version is selected, the system generates a side-by-side comparison that clearly highlights all modifications. Changes such a**s additions, deletions, and unchanged elements** are visually distinguished to make differences easy to identify. This view streamlines the process of tracking edits, detecting regressions or improvements, and maintaining precise control over the lifecycle of prompt configurations.&#x20;

The screenshot below demonstrates the comparison view.

<figure><img src="/files/RDqkUQHYJvvBzxjKod1O" alt=""><figcaption></figcaption></figure>

#### **Merge Variables**

The **Merge Variables** functionality is available within the **Compare with Other Version** tab after selecting the specific versions to be compared. Once enabled, it allows users to view how variables are resolved across the selected versions.

This feature governs the rendering of dynamic placeholders within the prompt editor.&#x20;

* When enabled, placeholders are programmatically resolved and inlined with their corresponding values, providing a fully materialized view of the prompt as it will be executed. This facilitates accurate input validation, improves debugging efficiency, and ensures clarity in how runtime data is injected.

  <figure><img src="/files/oRmGYzR9HCHXdYiMTKHK" alt=""><figcaption></figcaption></figure>
* When disabled, placeholders remain in their abstract templated form, supporting prompt reusability and enabling structured editing of the prompt.

  <figure><img src="/files/vaRYAcEMD3Axm1RLuwd4" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://karini-ai.gitbook.io/karini-ai-documentation/prompt-management/version-comparison.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
