Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dspy/teleprompt/mipro_optimizer_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ def _select_and_insert_instructions_and_demos(
)
set_signature(predictor, updated_signature)
trial_logs[trial_num][f"{i}_predictor_instruction"] = instruction_idx
chosen_params.append(f"Predictor {i+1}: Instruction {instruction_idx}")
chosen_params.append(f"Predictor {i}: Instruction {instruction_idx}")

# Select demos if available
if demo_candidates:
Expand All @@ -668,7 +668,7 @@ def _select_and_insert_instructions_and_demos(
)
predictor.demos = demo_candidates[i][demos_idx]
trial_logs[trial_num][f"{i}_predictor_demos"] = demos_idx
chosen_params.append(f"Predictor {i+1}: Few-Shot Set {demos_idx}")
chosen_params.append(f"Predictor {i}: Few-Shot Set {demos_idx}")

return chosen_params

Expand Down
Loading