You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I'm wrong but I thought I recalled the old version of DSPY (pre-litellm / pre-adapter era) doing retries for pydantic validation failures, but I'm not seeing any retrying in the codepaths I'm looking at in the stack trace (predict.py, json_adapter.py)
Is there a way built into the new version of DSPY to control retries? Or do I need to impl it into my own modules now?
E.g.:
pydantic_core._pydantic_core.ValidationError: 1 validation error for SomeSignature
some_list
List should have at most 3 items after validation, not 4 [type=too_long, input_value=[1,2,3,4], input_type=list]
For further information visit https://errors.pydantic.dev/2.9/v/too_long
I would expect this to feed back into the LLM to let it correct its outputs.
Would you like to contribute?
Yes, I'd like to help implement this.
No, I just want to request it.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
In looking into it tho, I found dspy.predict.retry.py... Which is totally commented out. I was all set to work on adding back the retrying in, till I saw that.. Can someone explain what the plan for retrying Pydantic validation failures?
What feature would you like to see?
Maybe I'm wrong but I thought I recalled the old version of DSPY (pre-litellm / pre-adapter era) doing retries for pydantic validation failures, but I'm not seeing any retrying in the codepaths I'm looking at in the stack trace (predict.py, json_adapter.py)
Is there a way built into the new version of DSPY to control retries? Or do I need to impl it into my own modules now?
E.g.:
I would expect this to feed back into the LLM to let it correct its outputs.
Would you like to contribute?
Additional Context
No response
The text was updated successfully, but these errors were encountered: