Skip to content
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

Make langchain copy-able in Dspy #1488

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

chenmoneygithub
Copy link
Collaborator

Before this change, if the chain has things like retriever, DSpy program will crash on optimizer.compile() call because the deep copy fails due to retriever not copy-able. This PR fixes the issue by only doing deep copy on LangChainPredict.

@okhat okhat merged commit 3db2484 into stanfordnlp:main Sep 13, 2024
5 checks passed
@chenmoneygithub chenmoneygithub deleted the langchain-small-fix branch December 27, 2024 22:02
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