llmp.components.instruction.mutation.InstructionMutation

class llmp.components.instruction.mutation.InstructionMutation(job: JobRecord, debug: bool = False, **kwargs)[source]

Generate Mutated Instructions.

Can only be used if an instruction is already given.

Methods

__init__(job[, debug])

generate(*args, **kwargs)

Generate text based on the job and input object.

run([num_samples_per_mutation])

Run the instruction generation process.

__init__(job: JobRecord, debug: bool = False, **kwargs)
generate(*args, **kwargs)

Generate text based on the job and input object.

run(num_samples_per_mutation: int = 2)[source]

Run the instruction generation process.