Implement a DspyMetricAdapter (or similar name) that allows users to utilize metrics defined as DSPy modules. This adapter will serve as a bridge, converting DSPy metrics a metric compatible with continuous-eval.
Technical Details:
- Base Class: The
DspyMetricAdapter (or similar name) will extend the Metric class, which is the fundamental interface for metrics within continuous-eval.
- Functionality: The adapter will wrap a DSPy module representing a metric, handling the conversion of input data and output results to match the expectations of continuous-eval.
Implement a
DspyMetricAdapter(or similar name) that allows users to utilize metrics defined as DSPy modules. This adapter will serve as a bridge, converting DSPy metrics a metric compatible with continuous-eval.Technical Details:
DspyMetricAdapter(or similar name) will extend theMetricclass, which is the fundamental interface for metrics within continuous-eval.