Using Opik with DSPy
DSPy is the framework for programming—rather than prompting—language models.
In this guide, we will showcase how to integrate Opik with DSPy so that all the DSPy calls are logged as traces in Opik.
Creating an account on Comet.com
Comet provides a hosted version of the Opik platform, simply create an account and grab you API Key.
You can also run the Opik platform locally, see the installation guide for more information.
Logging traces
In order to log traces to Opik, you will need to set the opik
callback:
The trace is now logged to the Opik platform: