Skip to content

Conversation

@enitrat
Copy link
Collaborator

@enitrat enitrat commented Aug 18, 2025

PR Summary: Upgrade to DSPy 3.0

📜 High-Level Summary

Upgrades DSPy from 2.6.27 to DSPy 3.0 benefiting from new improvements:

  • Had to define the custom PgVectorRM retrieval module here as it's removed from DSPy codebase
  • Remove duplication of forward / aforward sync / async methods, simplified with the now existing dspy.syncify method. which simplifies tests.
  • Uses new BAML adapter which has less failure on strucutred output (observed) and, combined with new instructions under <important_rules> for writing contracts, passes 100% of starknet starklings test on try 1

- Update dspy dependency from 2.6.27 to 3.0.0
- Refactor DSPy modules to use new 3.0 API patterns
- Add pgvector retrieval module for improved vector search
- Update tests to match new DSPy patterns and reduce complexity
- Simplify retrieval judge and generation program implementations
@enitrat enitrat force-pushed the feat/update-dspy-3.0 branch from 8887e8e to 8e81d9f Compare August 18, 2025 18:36
Copy link
Collaborator

@ijusttookadnatest ijusttookadnatest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great PR everything works as expected

@ijusttookadnatest ijusttookadnatest merged commit afa191c into main Aug 20, 2025
3 checks passed
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.

2 participants