GEPAOptimizer
constructor(reflectionModel: LLModel, storagePath: ResilientPath, maxIterations: Int, minibatchSize: Int, componentSelection: ComponentSelection, enableCrossover: Boolean, maxMergeInvocations: Int = 5, randomSeed: Long = 42, labelExtractor: (TrainSetItem<Input, InputLabel>) -> String)
Parameters
reflection Model
LLM model for reflection / instruction proposal. Calls are routed through the training DSL's tracked executePrompt, so timing and consumption are recorded under the appropriate iteration stage.
storage Path
Path for saving the optimization artifact.
max Iterations
Maximum number of evolution iterations.
minibatch Size
Number of training items sampled per iteration for reflection.
component Selection
How to select which modules to update each iteration.
enable Crossover
Whether to attempt merging complementary candidates during the loop.
max Merge Invocations
Maximum number of crossover attempts per optimization run.
random Seed
Seed for reproducibility.
label Extractor
Converts a dataset item's label to a string for the reflection LM.