From a6d34d12b08cce54eb38bb14a609bc5efc766835 Mon Sep 17 00:00:00 2001 From: JonahDelman Date: Thu, 17 Jul 2025 11:36:53 -0400 Subject: [PATCH] Update: fixed outdated information in graphrag_import_neo4j_cypher.ipynb --- .../neo4j/graphrag_import_neo4j_cypher.ipynb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples_notebooks/community_contrib/neo4j/graphrag_import_neo4j_cypher.ipynb b/examples_notebooks/community_contrib/neo4j/graphrag_import_neo4j_cypher.ipynb index a8b30a819..79b076ae5 100644 --- a/examples_notebooks/community_contrib/neo4j/graphrag_import_neo4j_cypher.ipynb +++ b/examples_notebooks/community_contrib/neo4j/graphrag_import_neo4j_cypher.ipynb @@ -562,7 +562,7 @@ "entity_df = pd.read_parquet(\n", " f\"{GRAPHRAG_FOLDER}/entities.parquet\",\n", " columns=[\n", - " \"name\",\n", + " \"title\",\n", " \"type\",\n", " \"description\",\n", " \"human_readable_id\",\n", @@ -602,7 +602,7 @@ "source": [ "entity_statement = \"\"\"\n", "MERGE (e:__Entity__ {id:value.id})\n", - "SET e += value {.human_readable_id, .description, name:replace(value.name,'\"','')}\n", + "SET e += value {.human_readable_id, .description, title:replace(value.title,'\"','')}\n", "WITH e, value\n", "CALL db.create.setNodeVectorProperty(e, \"description_embedding\", value.description_embedding)\n", "CALL apoc.create.addLabels(e, case when coalesce(value.type,\"\") = \"\" then [] else [apoc.text.upperCamelCase(replace(value.type,'\"',''))] end) yield node\n", @@ -912,7 +912,7 @@ "source": [ "### Importing Community Reports\n", "\n", - "Fo the community reports we create nodes for each communitiy set the id, community, level, title, summary, rank, and rank_explanation and connect them to the entities they are about.\n", + "Fo the community reports we create nodes for each communitiy set the id, community, level, title, summary, rank, and rating_explanation and connect them to the entities they are about.\n", "For the findings we create the findings in context of the communities." ] }, @@ -950,7 +950,7 @@ " summary\n", " findings\n", " rank\n", - " rank_explanation\n", + " rating_explanation\n", " full_content\n", " \n", " \n", @@ -1000,7 +1000,7 @@ "0 [{'explanation': 'Marley's Ghost plays a cruci... 8.0 \n", "1 [{'explanation': 'The Ghost, identified at tim... 8.5 \n", "\n", - " rank_explanation \\\n", + " rating_explanation \\\n", "0 The impact severity rating is high due to the ... \n", "1 The impact severity rating is high due to the ... \n", "\n", @@ -1025,7 +1025,7 @@ " \"summary\",\n", " \"findings\",\n", " \"rank\",\n", - " \"rank_explanation\",\n", + " \"rating_explanation\",\n", " \"full_content\",\n", " ],\n", ")\n", @@ -1061,7 +1061,7 @@ "# Import communities\n", "community_statement = \"\"\"\n", "MERGE (c:__Community__ {community:value.community})\n", - "SET c += value {.level, .title, .rank, .rank_explanation, .full_content, .summary}\n", + "SET c += value {.level, .title, .rank, .rating_explanation, .full_content, .summary}\n", "WITH c, value\n", "UNWIND range(0, size(value.findings)-1) AS finding_idx\n", "WITH c, value, finding_idx, value.findings[finding_idx] as finding\n",