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
Update deprecated langchin output parser to maintained imports #1820
Comments
To address the deprecation warnings and update your project to use the
from langchain.output_parsers import GuardrailsOutputParser with: from langchain_community.output_parsers.rail_parser import GuardrailsOutputParser And: from langchain.tools.json import JsonSpec with: from langchain_community.tools.json.tool import JsonSpec
By following these steps, you'll migrate away from deprecated
|
I have the same issue but this warning appear when I import PydanticOutputParser from langchain.output_parsers import PydanticOutputParser when I'tried change it on GuardrailsOutputParser it was completly different class. Do you have any idea how to fix it this warning? |
@dosu I don't know why I did not import that package but still get the same warnning |
I am getting the same issue, and nowhere in my code I import the |
Tried changing to @dongtandung2001 versions did not work for me. Tried @dosu (bot) suggestion to use from langchain_community.output_parsers instead of what I have below also did not work:
Guessing its something to do with the StructuredOutputParser import, but have not had time to dig any further into it. |
Hey all This should be related to the some of the LangchainTypeCreators that are being fazed out soon. |
pip install langchain==0.1.19 solved it for me. This Stack Overflow discussion has some info. |
Describe the bug
Currently within the dev branch, we are leveraging deprecated output parsers package from langchain. We need to update to use the community and supported version.
Browser and Version
n/a
To Reproduce
Steps to reproduce the behavior:
langflow run
to see the deprecation warnings as below,Screenshots
n/a
Additional context
n/a
The text was updated successfully, but these errors were encountered: