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

langchain[patch]: deprecate various chains #25310

Merged
merged 24 commits into from
Aug 15, 2024
Merged

langchain[patch]: deprecate various chains #25310

merged 24 commits into from
Aug 15, 2024

Conversation

ccurme
Copy link
Collaborator

@ccurme ccurme commented Aug 12, 2024

  • NatbotChain: move to community, deprecate langchain version. Update to use prompt | llm | output_parser instead of LLMChain.
  • LLMMathChain: deprecate + add langgraph replacement example to API ref
  • HypotheticalDocumentEmbedder (retriever): update to use prompt | llm | output_parser instead of LLMChain
  • FlareChain: update to use prompt | llm | output_parser instead of LLMChain
  • ConstitutionalChain: deprecate + add langgraph replacement example to API ref
  • LLMChainExtractor (document compressor): update to use prompt | llm | output_parser instead of LLMChain
  • LLMChainFilter (document compressor): update to use prompt | llm | output_parser instead of LLMChain
  • RePhraseQueryRetriever (retriever): update to use prompt | llm | output_parser instead of LLMChain

Copy link

vercel bot commented Aug 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain ✅ Ready (Inspect) Visit Preview 3 resolved Aug 14, 2024 3:13pm

@ccurme ccurme marked this pull request as ready for review August 13, 2024 18:26
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. community Related to langchain-community langchain Related to the langchain package labels Aug 13, 2024
"You may need to pip install -U langchain-community."
),
removal="1.0",
)
Copy link
Contributor

Choose a reason for hiding this comment

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

should we do the thing where we just re-import this?

Copy link
Contributor

Choose a reason for hiding this comment

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

i also dont think this needs to be a chain at all?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I considered re-importing but because langchain no longer depends on langchain-community, this would be a breaking change. Can do if preferred.

IMO this should be a community integration, which is why I set up imports there. The natbot repo has had no activity for 2 years and we originally specified this as "deprecate without replacement." So didn't think refactoring it is high priority.

@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Aug 14, 2024
@ccurme ccurme merged commit 8afbab4 into master Aug 15, 2024
55 checks passed
@ccurme ccurme deleted the cc/deprecations branch August 15, 2024 14:49
olgamurraft pushed a commit to olgamurraft/langchain that referenced this pull request Aug 16, 2024
- [x] NatbotChain: move to community, deprecate langchain version.
Update to use `prompt | llm | output_parser` instead of LLMChain.
- [x] LLMMathChain: deprecate + add langgraph replacement example to API
ref
- [x] HypotheticalDocumentEmbedder (retriever): update to use `prompt |
llm | output_parser` instead of LLMChain
- [x] FlareChain: update to use `prompt | llm | output_parser` instead
of LLMChain
- [x] ConstitutionalChain: deprecate + add langgraph replacement example
to API ref
- [x] LLMChainExtractor (document compressor): update to use `prompt |
llm | output_parser` instead of LLMChain
- [x] LLMChainFilter (document compressor): update to use `prompt | llm
| output_parser` instead of LLMChain
- [x] RePhraseQueryRetriever (retriever): update to use `prompt | llm |
output_parser` instead of LLMChain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Related to langchain-community langchain Related to the langchain package size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants