Closed aishwaryap closed 2 months ago
Hi @aishwaryap , most of the community-integrated modules like Langchain, Llamaindex, etc. were not built in concert with some of the new optimizers and will need some implementation details refined/updated. Particularly, this sets up the signature using the Langchain template, while DSPy module signatures use DSPy templates, which is why the error is triggered. Will keep this issue open for further investigation and/or if members using Langchain have suggestions for better integration of the Langchain modules to ensure this compatibility.
Additionally, I recommend using MIPROv2 over COPRO going forward!
Consider Zenbase @CyrusOfEden for LangChain<>DSPy integrations, @aishwaryap !
Although this is included in this more general issue outlining issues with integration with Langchain, it felt beneficial to create a new issue for this particular error. With the latest
dspy-ai==2.4.13
, the Langchain integration example runs but if the optimizer in the notebook is changed toCOPRO
, it fails with the following error: