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.16k stars 329 forks source link

Disallow Reserved Node Labels CHunk & Document in Graph Generation #436

Open zach-blumenfeld opened 3 months ago

zach-blumenfeld commented 3 months ago

The Graph Generator will infer "Document" labeled nodes when generating graphs. However, this conflicts with concept of the source Document node. Is there any way to force the generator to not use already reserved node labels - specifically "Document" and "Chunk"?

For example in the below only three documents where loaded into llm-grph-builder, but multiple other "Document" nodes were created image

jexp commented 3 months ago

Yeah I know this is frustrating, we might need to use special __Document__, and __Chunk__ labels in the future.