BaseEvolInstructTemplates

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.

EVOL_METHODS

def EVOL_METHODS(self):

A dictionary mapping evolution method keys to their descriptions.

STRATEGY

def STRATEGY(self):

A dictionary defining strategies and their corresponding methods.

EvolInstructTemplates

class EvolInstructTemplates(BaseEvolInstructTemplates):

Contains templates for EvolInstruct prompt transformations.

References:

MathEvolInstructTemplates

class MathEvolInstructTemplates(BaseEvolInstructTemplates):

Contains templates for MathEvolInstruct prompt transformations.