Skip to content

Add reliability testing for DSPy Adapters #8333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chenmoneygithub
Copy link
Collaborator

@chenmoneygithub chenmoneygithub commented Jun 6, 2025

We are adding adapter reliability testing with the purpose of:

  • Informing users of the DSPy program's quality without using DSPy optimizer.
  • Compare among different adapters and vanilla LM sdk coding.
  • Ensure backwards compatibility.

This initial PR only has math reasoning, and requires manual triggering via commands like:

python3 -m benchmark.adapter.math_qa.main --models openai/gpt-4o-mini openai/gpt-4o --num_threads=2 

A sample print looks like:

|                    |   Vanilla |   Vanilla with Structured Output |   DSPy (ChatAdapter) |   DSPy (JSONAdapter) |
|--------------------|-----------|----------------------------------|----------------------|----------------------|
| openai/gpt-4o-mini |        20 |                               30 |                   80 |                   80 |
| openai/gpt-4o      |        30 |                               30 |                   80 |                   70 |

@chenmoneygithub chenmoneygithub changed the title Reliability testing Add reliability testing for DSPy Adapters Jun 6, 2025
@chenmoneygithub chenmoneygithub requested a review from okhat June 6, 2025 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant