Package-level declarations

Types

Link copied to clipboard

Preset auto-run modes controlling candidate count, validation set size, and trial budget cap.

Link copied to clipboard

Generates instruction candidates for each optimizable module.

Link copied to clipboard
data class InstructionProposerConfig(val useDatasetSummary: Boolean = true, val programAware: Boolean = true, val useTaskDemos: Boolean = true, val numDemosInContext: Int = 3, val useTip: Boolean = true, val setTipRandomly: Boolean = true, val useInstructHistory: Boolean = false, val setHistoryRandomly: Boolean = false)

Configuration for InstructionProposer, toggling which context the meta-LLM receives.

Link copied to clipboard
class MIPROv2Optimizer<Input, Output, InputLabel>(metaModel: LLModel, autoMode: AutoRunMode = AutoRunMode.LIGHT, numCandidatesOverride: Int? = null, numTrialsOverride: Int? = null, maxBootstrappedDemos: Int = 4, maxTotalDemos: Int = 8, includeLabeledExamples: Boolean = true, proposerConfig: InstructionProposerConfig = InstructionProposerConfig(), val storagePath: ResilientPath, randomSeed: Long = 42, parallelism: Int = 1) : AgentOptimizer<Input, Output, InputLabel>

MIPRO v2 optimizer that tunes instructions and demonstrations via a 3-stage pipeline:

Properties

Link copied to clipboard

Tips for instruction generation diversity.