Installation
Quickstart
This quickstart shows you how to instrument your DSPy application. It is adapted from the DSPy quickstart. Install required packages:Start Phoenix server
Start Phoenix in the background as a collector. By default, it listens onhttp://localhost:6006:
Setup instrumentation
Set upDSPyInstrumentor to trace your DSPy application and send traces to Phoenix:
Import DSPy and configure language model
Define a custom program
Define a program that utilizes theChainOfThought module to perform step-by-step reasoning:
Optimize your program
Optimize your program using theBootstrapFewShot teleprompter:
Evaluate performance
http://localhost:6006 to see your traces.