1. Install the Python library
- Notebook
- Command Line
2. Login to LangWatch
Import and authenticate the LangWatch SDK:3. Start tracking
Before your DSPy program compilation starts, initialize langwatch with your experiment name and the optimizer to be tracked:Follow your experiment
Open the link provided when the compilation starts or go to your LangWatch dashboard to follow the progress of your experiments:
Wrapping up
With your experiments tracked on LangWatch, you can explore how the training is going and look at the examples, the LLM calls and the different steps, so you can find where to improve your DSPy program.When you are ready to deploy your DSPy program, you can monitor the inference traces on LangWatch dashboard as well. Check out the Python Integration Guide for more details.