Skip to content

Commit 1ee5479

Browse files
committed
Explained teacher settings better
1 parent f04d03c commit 1ee5479

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dspy/teleprompt/mipro_optimizer_v2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@
4848
Note that this teleprompter takes in the following parameters:
4949
5050
* prompt_model: The model used for prompt generation. When unspecified, defaults to the model set in settings (i.e., dspy.settings.configure(lm=task_model)).
51-
* task_model: The model used for prompt generation. When unspecified, defaults to the model set in settings (i.e., dspy.settings.configure(lm=task_model)).
51+
* task_model: The model used for running your task. When unspecified, defaults to the model set in settings (i.e., dspy.settings.configure(lm=task_model)).
5252
* teacher_settings: The settings used for the teacher model. When unspecified, defaults to the settings set in settings (i.e., dspy.settings.configure(lm=task_model)).
53+
The teacher settings are used to generate the fewshot examples. This is the LLM/settings to use as a task model for the bootstrapping runs.
54+
Typically you would want to use a model of equal or greater quality to your task model.
5355
* metric: The task metric used for optimization.
5456
* num_candidates: The number of new prompts and sets of fewshot examples to generate and evaluate. Default=10.
5557
* init_temperature: The temperature used to generate new prompts. Higher roughly equals more creative. Default=1.0.

0 commit comments

Comments
 (0)