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

# Prompt Variants

Prompt Variants allow multiple prompt configurations to be tested side by side.

All variants within a prompt share the same variables, scenarios, and prompt body while maintaining their own model settings and context configuration.

This makes it possible to compare different prompt strategies, model parameters, and outputs without duplicating the prompt itself.

## Variant Structure

Each variant consists of the following sections:

<CardGroup cols={2}>
  <Card title="Model Settings">
    Provider, model, and generation parameters for the variant.
  </Card>

  <Card title="Context Before">
    Content added before the shared prompt body.
  </Card>

  <Card title="Shared Prompt Body">
    Prompt-level content reflected in every variant.
  </Card>

  <Card title="Context After">
    Content added after the shared prompt body.
  </Card>

  <Card title="Output">
    Execution result displayed after running the variant.
  </Card>
</CardGroup>

The prompt body is configured at the prompt level and is shared across all variants.

Any changes made to the prompt body are automatically reflected in every variant within the prompt.

Variants allow users to experiment with different model configurations and contextual information while keeping a single prompt definition.

## Model Settings

Each variant maintains its own model configuration.

Available settings include:

* Model
* Temperature
* Max Tokens
* Stop Sequences
* Top P
* Presence Penalty
* Frequency Penalty
* Top Choice

Updating the settings of one variant does not affect any other variant.

## Context Blocks

Each variant can contain its own Context Before and Context After blocks.

Supported block types include:

* Text
* File

Context blocks can be used to provide additional instructions, examples, documents, or supporting information to the model.

Different variants can use different context configurations while sharing the same prompt body.

## Reordering Context

Context blocks can be reordered using drag-and-drop.

This allows users to experiment with different prompt structures without recreating content.

The shared prompt body always remains fixed and cannot be reordered.

## Creating Variants

<Steps>
  <Step title="Create the variant">
    Click **New Variant**.
  </Step>

  <Step title="Configure the variant">
    Set description, model, temperature, token limit, stop sequences, Top P, penalties, and Top Choice.
  </Step>

  <Step title="Run or compare">
    Run the variant directly or compare it against another variant using **Differences**.
  </Step>
</Steps>

When creating a variant, configure:

* Description
* Model
* Temperature
* Max Tokens
* Stop Sequences
* Top P
* Presence Penalty
* Frequency Penalty
* Top Choice

After creation, the variant becomes available in the Editor workspace.

## Managing Variants

Each variant provides the following actions:

* Edit
* Clone
* Delete
* Settings

Changes made to a variant affect only that variant.

## Running Variants

Variants can be executed individually or together.

<CardGroup cols={2}>
  <Card title="Run">
    Execute only the selected variant.
  </Card>

  <Card title="Run All">
    Execute all visible variants from the Editor header.
  </Card>
</CardGroup>

Execution results are displayed directly in the Output section of each variant.

## Comparing Variants

The **Differences** action compares the structure of two prompt variants.

Users can select any two available variants and review their differences side by side.

The comparison includes:

* Prompt structure
* Context configuration
* Model settings
* Variant content

The **Differences** action is available only when more than one variant exists.
