graphrag
graphrag copied to clipboard
The community report template does not use a custom, but uses the default
Is there an existing issue for this?
- [ ] I have searched the existing issues
- [ ] I have checked #657 to validate if my issue is covered by community support
Describe the issue
Extracted community report has content that does not exist in the document. I found that the community report template uses the default template, not the one I modified.
Steps to reproduce
No response
GraphRAG Config Used
Some of the contents of my customized community report template are as follows:
# Paste your config here
以中文的形式和格式良好的JSON格式字符串返回输出,格式如下:
{
"title": <报告标题>,
"summary": <总结>,
"rating": <影响程度评分>,
"rating_explanation": <评分解释>,
"findings": [
{
"summary":<见解1的总结>,
"explanation": <见解1的解释>
},
{
"summary":<见解2的总结>,
"explanation": <见解2的解释>
}
]
}
# 依据规则
数据支持的点应该按照以下方式列出它们的数据引用:
“这是一个由多个数据引用支持的示例句子 [数据: <数据集名称> (记录编号); <数据集名称> (记录编号)]。”
不要在单个引用中列出超过5个记录编号。相反,列出最相关的5个记录编号,并添加 "+更多" 表示还有更多。
例如:
"X人是Y公司的所有人,并且面临许多不当行为的指控 [数据: 报告 (1), 实体 (5, 7); 关系 (23); 声明 (7, 2, 34, 64, 46, +更多)]。"
其中1、5、7、23、2、34、46和64代表相关数据记录的编号(而不是索引)。
不要包含没有提供证据支持的信息。
# 示例1
输入
-----------
文本:
实体
id,entity,description
1,公安机关交通管理部门,负责接警、调度、管理
2,交通警察,执行现场处理
3,受伤人员,在交通事故中受到身体伤害的人员
4,事故车辆,涉及交通事故、待检查的车辆
5,专门机构,提供专业检验服务
6,鉴定人,出具鉴定结论的专业人员
关系
id,source,target,description
11,公安机关交通管理部门,交通警察,公安机关交通管理部门和交通警察之间存在直接的隶属关系。公安机关交通管理部门是交通警察的上级指挥和管理机构。
The actual community report template is as follows:
Return output as a well-formed JSON-formatted string with the following format:
{{
"title": <report_title>,
"summary": <executive_summary>,
"rating": <impact_severity_rating>,
"rating_explanation": <rating_explanation>,
"findings": [
{{
"summary":<insight_1_summary>,
"explanation": <insight_1_explanation>
}},
{{
"summary":<insight_2_summary>,
"explanation": <insight_2_explanation>
}}
]
}}
# Grounding Rules
Points supported by data should list their data references as follows:
"This is an example sentence supported by multiple data references [Data: <dataset name> (record ids); <dataset name> (record ids)]."
Do not list more than 5 record ids in a single reference. Instead, list the top 5 most relevant record ids and add "+more" to indicate that there are more.
For example:
"Person X is the owner of Company Y and subject to many allegations of wrongdoing [Data: Reports (1), Entities (5, 7); Relationships (23); Claims (7, 2, 34, 64, 46, +more)]."
where 1, 5, 7, 23, 2, 34, 46, and 64 represent the id (not the index) of the relevant data record.
Do not include information where the supporting evidence for it is not provided.
# Example Input
-----------
Text:
Entities
id,entity,description
5,VERDANT OASIS PLAZA,Verdant Oasis Plaza is the location of the Unity March
6,HARMONY ASSEMBLY,Harmony Assembly is an organization that is holding a march at Verdant Oasis Plaza
Relationships
id,source,target,description
37,VERDANT OASIS PLAZA,UNITY MARCH,Verdant Oasis Plaza is the location of the Unity March
38,VERDANT OASIS PLAZA,HARMONY ASSEMBLY,Harmony Assembly is holding a march at Verdant Oasis Plaza
39,VERDANT OASIS PLAZA,UNITY MARCH,The Unity March is taking place at Verdant Oasis Plaza
40,VERDANT OASIS PLAZA,TRIBUNE SPOTLIGHT,Tribune Spotlight is reporting on the Unity march taking place at Verdant Oasis Plaza
41,VERDANT OASIS PLAZA,BAILEY ASADI,Bailey Asadi is speaking at Verdant Oasis Plaza about the march
43,HARMONY ASSEMBLY,UNITY MARCH,Harmony Assembly is organizing the Unity March
Logs and screenshots
No response
Additional Information
- GraphRAG Version:
- Operating System:
- Python Version:
- Related Issues: