Module: DSPy::Teleprompt
- Defined in:
- lib/dspy/teleprompt/mipro_v2.rb
Defined Under Namespace
Classes: AutoPreset, CandidateType, MIPROv2, OptimizationStrategy
Constant Summary collapse
- AUTO_PRESET_SETTINGS =
{ AutoPreset::None => {}, AutoPreset::Light => { candidate_budget: 6, instruction_candidates: 3, instruction_candidates_when_fewshot: 3, bootstrap_sets: 3, max_bootstrapped_examples: 2, max_labeled_examples: 8, optimization_strategy: OptimizationStrategy::Greedy, early_stopping_patience: 2, valset_target_size: 100, minibatch_size: nil }, AutoPreset::Medium => { candidate_budget: 12, instruction_candidates: 5, instruction_candidates_when_fewshot: 5, bootstrap_sets: 5, max_bootstrapped_examples: 4, max_labeled_examples: 16, optimization_strategy: OptimizationStrategy::Adaptive, early_stopping_patience: 3, valset_target_size: 300, minibatch_size: nil }, AutoPreset::Heavy => { candidate_budget: 18, instruction_candidates: 8, instruction_candidates_when_fewshot: 8, bootstrap_sets: 8, max_bootstrapped_examples: 6, max_labeled_examples: 24, optimization_strategy: OptimizationStrategy::Bayesian, early_stopping_patience: 5, valset_target_size: 1000, minibatch_size: nil } }.freeze
- DEFAULT_AUTO_SEED =
42