DSPy (optimizers: BootstrapFewShotWithRandomSearchMIPROv2)Python LM integrations (OpenAIHF)intermediate30 min
DSPy + optimization teleprompter pipeline
Automatic tuning of complex LM pipelines across models without manual prompt engineering
Prerequisites
- →Install DSPy (`pip install dspy-ai`)
- →define DSPy program (e.g. dspy.Predict)
- →metric function
- →trainset of dspy.Example objects
- →configure LM (dspy.settings.configure(lm=dspy.OpenAI(model='gpt-4o-mini'))).
Further reading