Open YunpengZhai opened 2 weeks ago
Im having a similar challenge when adding few shot examples. Specifically I have inputs to the model that are always identical and I would like to hide them from the examples that are provided to the LM during inference and training, since it costs a lot of tokens having unnecessary inputs be used during training (multiplied by number of examples showed). Would be nice to be able to specify which parameters should be "tuned".
@YunpengZhai consider passing the task description as a field, that way you control it, and the optimizer can't change it.
Hi,
How can I customize the prompt structure in DSPy and use teleprompter to optimize only a specific part of it? For example, my custom prompt is:
How can I use an optimizer, such as copro, to optimize only the Tips section?
Thank you!