Visualize your DSPy notebooks experimentations to better track and debug the optimization process
LangWatch DSPy Visualization allows you to start tracking your DSPy experiments in real-time and easily follow the progress, track costs and debug each step.
Before your DSPy program compilation starts, initialize langwatch with your experiment name and the optimizer to be tracked:
Copy
# Initialize langwatch for this run, to track the optimizer compilationlangwatch.dspy.init(experiment="my-awesome-experiment", optimizer=optimizer)compiled_rag = optimizer.compile(RAG(), trainset=trainset)
With your experiments tracked on LangWatch, now it’s time to explore how is the training going, take a look at the examples, the llm calls,
the different steps and so on, so you can understand and hypothesize where you could improve your DSPy program, and keep iterating!
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.
For any questions or issues, feel free to contact our support, join our channel on Discord or open an issue on our GitHub.