-
Notifications
You must be signed in to change notification settings - Fork 15.9k
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
LLMGraphTransformer not working with Gemini #26624
Comments
Thank you for addressing this issue. Would it be possible to provide an implementation or example using an OpenAI model as a baseline? This could help in identifying whether the issue lies within the model integration or the data handling within Gemini. |
Hello, sure! The module LLMGraphTransformer is the same, the only thing that changes is:
|
I am experiencing a similar issue. Here is the executed code:
And here is the error:
|
I am experiencing the same issue. Below is the code I am trying to execute:
Below is the error I am getting:
I have also logged this here - issue 661 |
It seems that the
Unfortunately it may cause a failure if the list of nodes/relationships is empty. |
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
Hello, I've been trying to use LLMGraphTransformer with a model that is not from OpenAI, so I tried Google Gemini, however, I noticed that the result is always empty for nodes and relationships.
So, I added this print statement of the raw_schema to check what was the reply from the LLM and I receive this error, so it looks like no Node or Relationship is created because the arguments to the DynamicGraph function are expected to be lists, but they are currently strings.
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
The text was updated successfully, but these errors were encountered: