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

# Camel.datagen.evol instruct.templates

<a id="camel.datagen.evol_instruct.templates" />

<a id="camel.datagen.evol_instruct.templates.BaseEvolInstructTemplates" />

## BaseEvolInstructTemplates

```python theme={"system"}
class BaseEvolInstructTemplates(ABC):
```

Abstract base class for evolution instruction templates.

This class defines a required structure for prompt transformation templates

* `EVOL_METHODS`: A dictionary mapping method keys to their descriptions.
* `STRATEGY`: A dictionary defining strategies and associated methods.

Subclasses should define concrete templates for specific domains.

<a id="camel.datagen.evol_instruct.templates.BaseEvolInstructTemplates.EVOL_METHODS" />

### EVOL\_METHODS

```python theme={"system"}
def EVOL_METHODS(self):
```

A dictionary mapping evolution method keys to their descriptions.

<a id="camel.datagen.evol_instruct.templates.BaseEvolInstructTemplates.STRATEGY" />

### STRATEGY

```python theme={"system"}
def STRATEGY(self):
```

A dictionary defining strategies and their corresponding methods.

<a id="camel.datagen.evol_instruct.templates.EvolInstructTemplates" />

## EvolInstructTemplates

```python theme={"system"}
class EvolInstructTemplates(BaseEvolInstructTemplates):
```

Contains templates for EvolInstruct prompt transformations.

References:

* WizardLM: Empowering Large Language Models to Follow Complex
  Instructions
  [https://arxiv.org/pdf/2304.12244](https://arxiv.org/pdf/2304.12244)
* eva: Evolving Alignment via Asymmetric Self-Play
  [https://arxiv.org/abs/2411.00062](https://arxiv.org/abs/2411.00062)

<a id="camel.datagen.evol_instruct.templates.MathEvolInstructTemplates" />

## MathEvolInstructTemplates

```python theme={"system"}
class MathEvolInstructTemplates(BaseEvolInstructTemplates):
```

Contains templates for MathEvolInstruct prompt transformations.
