neo4j-labs / llm-graph-builder

Neo4j graph construction from unstructured data using LLMs
https://neo4j.com/labs/genai-ecosystem/llm-graph-builder/
Apache License 2.0
2.17k stars 333 forks source link

Failed to process PDFs, Youtube, or Wikipedia - error message clipped #390

Open nielsdejong opened 4 months ago

nielsdejong commented 4 months ago

Hi team,

I'm trying to use the application (https://llm-graph-builder.neo4jlabs.com/) but receiving issues when uploading documents of various types. I'm using an Aura Free Instance (Neo4j 4.4)

As a side point - the error messages to the user are clipped, so they cannot see the complete error. Also they disappear after a couple of seconds which makes it hard to read.

It would be great if the messages are displayed completely, with a better description so that the user can better debug/report the issues.

Error messages I receive:

PDF:

Failed To Process File:How Graph Technology Drives Modern Supply Chain Strategy—White Paper_YE_NP_Final.pdf or LLM Unable To Parse Content Generated Cypher Statement is not valid {code: Neo.ClientError.Statement.SyntaxError} {message: Inva

Wikipedia:

Failed To Process File:Pizza or LLM Unable To Parse Content Generated Cypher Statement is not valid {code: Neo.ClientError.Statement.SyntaxError} {message: Inva

Youtube:

Failed To Process File:Let's build GPT: from scratch, in code, spelled out. or LLM Unable To Parse Content Generated Cypher Statement is not valid {code: Neo.ClientError.Statement.SyntaxError} {message: Inva
nielsdejong commented 4 months ago

I realized the issue here is that my Aura free instance is on version 4.4 (and thus has no vector index). We should probably check if the Neo4j version is right after users connect to their database, and display a user friendly error.

jexp commented 3 months ago

Yes good point