Open tituslhy opened 1 month ago
Ah good catch. It looks like this some recent updates (switching CoT to become a module) broke compatibility with the llamaindex integraton.
Maybe we should pin the notebook to an old DSPy version?
Sure! I was on dspy-ai 2.4.11 before this I think - the update just before!
I was following the llamaindex cookbook and reached an error for the code
The error trace showed that there was a pydantic validation error for "predict_module". That's because the DSPyComponent object only accepts a dspy.Predict(signature) input instead of a ChainOfThought object as listed in the cookbook.
I didn't have any errors running this cell before until I upgraded my dspy-ai version. Perhaps loosen the allowable classes for QueryComponent (the parent of DSPyComponent)? Or is the team's recommendation to use dspy.Predict instead?
Validation error trace