Replies: 1 comment 1 reply
-
@krlmt8 Try upgrading pydantic , |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked other resources
Commit to Help
Example Code
Description
GraphCypherQAChain. from llm is not working after i changed the import from langchain.chain to langchain_community
thi i the error I got:
graph_tools.py", line 65, in _run
chain = GraphCypherQAChain.from_llm( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\Lib\site-packages\langchain_community\chains\graph_qa\cypher.py", line 326, in from_llm
return cls( ^^^^
File "\Lib\site-packages\langchain_community\chains\graph_qa\cypher.py", line 200, in init
super().init(**kwargs)
File "\Lib\site-packages\langchain_core\load\serializable.py", line 125, in init
super().init(*args, **kwargs)
File "\Lib\site-packages\pydantic\main.py", line 212, in init
validated_self = self.pydantic_validator.validate_python(data, self_instance=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\Lib\site-packages\langchain\chains\base.py", line 236, in raise_callback_manager_deprecation
if values.get("callback_manager") is not None:
^^^^^^^^^^
File "\Lib\site-packages\pydantic\main.py", line 856, in getattr
raise AttributeError(f'{type(self).name!r} object has no attribute {item!r}')
AttributeError: 'RunnableSequence' object has no attribute 'get'
System Info
langchain==0.3.2
langchain-community==0.3.1
langchain-core==0.3.19
langchain-experimental==0.3.3
langchain-openai==0.2.2
langchain-text-splitters==0.3.0
Beta Was this translation helpful? Give feedback.
All reactions