-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
"You may need to pip install -U langchain-community." | ||
), | ||
removal="1.0", | ||
) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
- [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
prompt | llm | output_parser
instead of LLMChain.prompt | llm | output_parser
instead of LLMChainprompt | llm | output_parser
instead of LLMChainprompt | llm | output_parser
instead of LLMChainprompt | llm | output_parser
instead of LLMChainprompt | llm | output_parser
instead of LLMChain