neo4j-labs / llm-graph-builder

Neo4j graph construction from unstructured data
Apache License 2.0
368 stars 93 forks source link

Descriptions of nodes in LLM context. #492

Open punksta opened 4 days ago

punksta commented 4 days ago

LLM extracts nodes, but it misinterprets their meaning.

We would like to have an "Event" node with a "date" property for historical events, but llm-graph-builder generates nodes for the date values (01.01.1995)

Perhaps it can be solvable by providing descriptions of schemas.

    "schema": "healthcare",

    "description": "AgeGroup is one of \"<18\", \"18-80\", \">80\". Case is ...",

    "labels": [
      "AgeGroup",
      "Case",
      "Drug",
      "Manufacturer",
      "Outcome",
      "Reaction",
      "ReportSource",
      "Therapy"
    ]