MIPROv2Optimizer
constructor(metaModel: LLModel, autoMode: AutoRunMode = AutoRunMode.LIGHT, numCandidatesOverride: Int? = null, numTrialsOverride: Int? = null, maxBootstrappedDemos: Int = 4, maxTotalDemos: Int = 8, includeLabeledExamples: Boolean = true, proposerConfig: InstructionProposerConfig = InstructionProposerConfig(), storagePath: ResilientPath, randomSeed: Long = 42, parallelism: Int = 1)
Parameters
meta Model
LLM model for meta-LLM calls (instruction proposal, dataset summarization).
auto Mode
Preset mode controlling defaults (LIGHT/MEDIUM/HEAVY).
num Candidates Override
Manual override for number of candidates per module.
num Trials Override
Manual override for grid search trials.
max Bootstrapped Demos
Max demos per bootstrap run.
max Total Demos
Total demo slots (bootstrapped and labeled).
include Labeled Examples
Whether bootstrap uses labeled fallback.
proposer Config
Configuration for an instruction proposal.
storage Path
File path to save/load the optimization artifact.
random Seed
Seed for reproducibility.
parallelism
Max concurrent operations (bootstrap runs, instruction proposals).