Skip to content

Commit fde14b6

Browse files
gaudybGaudy Blanco
andauthored
Mismatch between header in community report generation prompt examples and input data (id vs human_readable_id) (#2161)
* fix issue #860 for mismatch in prompts and input * fix format --------- Co-authored-by: Gaudy Blanco <gaudy-microsoft@MacBook-Pro-m4-Gaudy-For-Work.local>
1 parent c649d9f commit fde14b6

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/graphrag/graphrag/prompt_tune/template/community_report_summarization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@
5656
5757
Entities
5858
59-
id,entity,description
59+
human_readable_id,title,description
6060
5,VERDANT OASIS PLAZA,Verdant Oasis Plaza is the location of the Unity March
6161
6,HARMONY ASSEMBLY,Harmony Assembly is an organization that is holding a march at Verdant Oasis Plaza
6262
6363
Relationships
6464
65-
id,source,target,description
65+
human_readable_id,source,target,description
6666
37,VERDANT OASIS PLAZA,UNITY MARCH,Verdant Oasis Plaza is the location of the Unity March
6767
38,VERDANT OASIS PLAZA,HARMONY ASSEMBLY,Harmony Assembly is holding a march at Verdant Oasis Plaza
6868
39,VERDANT OASIS PLAZA,UNITY MARCH,The Unity March is taking place at Verdant Oasis Plaza

packages/graphrag/graphrag/prompts/index/community_report.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@
5959
6060
Entities
6161
62-
id,entity,description
62+
human_readable_id,title,description
6363
5,VERDANT OASIS PLAZA,Verdant Oasis Plaza is the location of the Unity March
6464
6,HARMONY ASSEMBLY,Harmony Assembly is an organization that is holding a march at Verdant Oasis Plaza
6565
6666
Relationships
6767
68-
id,source,target,description
68+
human_readable_id,source,target,description
6969
37,VERDANT OASIS PLAZA,UNITY MARCH,Verdant Oasis Plaza is the location of the Unity March
7070
38,VERDANT OASIS PLAZA,HARMONY ASSEMBLY,Harmony Assembly is holding a march at Verdant Oasis Plaza
7171
39,VERDANT OASIS PLAZA,UNITY MARCH,The Unity March is taking place at Verdant Oasis Plaza

tests/fixtures/text/prompts/community_report.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ Text:
3535

3636
Entities
3737

38-
id,entity,description
38+
human_readable_id,title,description
3939
5,ABILA CITY PARK,Abila City Park is the location of the POK rally
4040

4141
Relationships
4242

43-
id,source,target,description
43+
human_readable_id,source,target,description
4444
37,ABILA CITY PARK,POK RALLY,Abila City Park is the location of the POK rally
4545
38,ABILA CITY PARK,POK,POK is holding a rally in Abila City Park
4646
39,ABILA CITY PARK,POKRALLY,The POKRally is taking place at Abila City Park

0 commit comments

Comments
 (0)