LLMGraphTransformer genertate empty relationships list. #27096
Replies: 1 comment 1 reply
-
It seems like you're encountering an issue with the To resolve this, you can modify the Additionally, there is a similar issue discussed in the LangChain repository where the You might want to check if similar adjustments are needed for your setup with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
As I'm following the 'How to do' chapter: https://python.langchain.com/docs/how_to/graph_constructing
BTW, I'm using ollama with llama3.1:8b to replace ChatGPT.
The expected output should be:
But this is what I got:
The relationships is empty...So I decided to debug. And got the AIMessage:
This means the graph information is correctly extracted, the
relationship
is not empty at first.the argument_json here is
And the function
_parse_and_clean_json
require key is not match with the input. So the relationships is empty List.And my langsmith shows this error
Could any one help me?
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
Beta Was this translation helpful? Give feedback.
All reactions