How to provoke the accuracy of the GraphRag‘s prompt in entity_extraction.txt?(ZH) #865
Unanswered
guangxiangdebizi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
-目标活动-
您是一名智能助手,帮助人类分析师分析文本文件中针对特定实体的声明。
-目标-
给定一个可能与此活动相关的文本文件和实体类型列表,从文本中识别出所有这些类型的实体以及这些实体之间的所有关系。自动将代词节点整合到其对应实体的描述中,并删除代词节点。
-注意-
根据输入的语言来判断并提取实体,不允许同时出现翻译过的实体和未翻译的实体。确保不同语言的相同实体合并为一个实体。例如:将“AUSTRALIA”和“澳大利亚”视为同一实体。
如果识别出代词,需将其描述整合到对应的实体描述中,并删除代词节点。
不允许修改或者翻译实体名称,实体名称原本是什么语言就是什么语言。
-步骤-
格式化每个实体为 ("entity"{tuple_delimiter}<entity_name>{tuple_delimiter}<entity_type>{tuple_delimiter}<entity_description>)
将代词的描述添加到匹配实体的实体描述中,并删除代词节点。
对于每对相关实体,提取以下信息:
格式化每个关系为 ("relationship"{tuple_delimiter}<source_entity>{tuple_delimiter}<target_entity>{tuple_delimiter}<relationship_description>{tuple_delimiter}<relationship_strength>)
将步骤1和步骤3中识别的所有实体和关系作为单一列表返回。使用 {record_delimiter} 作为列表分隔符。
完成时输出 {completion_delimiter}
######################
-示例-
######################
示例1:
实体类型: [人, 物品, 任务, 组织, 地点]
文本:
当亚历克斯紧咬牙关时,泰勒那权威的确定性背景下的挫败感变得暗淡。这种竞争的潜流让他保持警觉,他和乔丹对发现的共同承诺是一种无言的反抗,反对克鲁兹对控制和秩序的狭隘视野。
然后泰勒做了一件出乎意料的事。他们停在乔丹身边,片刻间,带着几分敬畏地观察着那个设备。“如果这种技术能够被理解……”泰勒说道,他们的声音变得轻柔,“这可能会改变我们的局面。对我们所有人来说。”
之前的轻视似乎动摇了,取而代之的是对手中事物严重性的勉强尊重。乔丹抬头看了看,短暂的一瞬间,他们的目光与泰勒的目光相遇,无言的意志冲突逐渐软化成一种不安的休战。
这是一个小小的转变,几乎难以察觉,但亚历克斯注意到了,内心点了点头。他们都是通过不同的路径来到这里。
#############################
输出:
("entity"{tuple_delimiter}"亚历克斯"{tuple_delimiter}"人"{tuple_delimiter}"亚历克斯是一个经历挫折并观察其他角色之间动态的人物。"){record_delimiter}
("entity"{tuple_delimiter}"泰勒"{tuple_delimiter}"人"{tuple_delimiter}"泰勒被描绘成具有权威的确定性,并对设备表现出一刻的敬畏,表明观点的改变。"){record_delimiter}
("entity"{tuple_delimiter}"乔丹"{tuple_delimiter}"人"{tuple_delimiter}"乔丹对发现的承诺,并与泰勒就设备进行了重要的互动。"){record_delimiter}
("entity"{tuple_delimiter}"克鲁兹"{tuple_delimiter}"人"{tuple_delimiter}"克鲁兹与控制和秩序的视野有关,影响了其他角色之间的动态。"){record_delimiter}
("entity"{tuple_delimiter}"设备"{tuple_delimiter}"物品"{tuple_delimiter}"设备是故事的核心,具有潜在的改变局面的意义,并受到泰勒的敬畏。"){record_delimiter}
("relationship"{tuple_delimiter}"亚历克斯"{tuple_delimiter}"泰勒"{tuple_delimiter}"亚历克斯受到泰勒的权威确定性的影响,并观察到泰勒对设备态度的变化。"{tuple_delimiter}7){record_delimiter}
("relationship"{tuple_delimiter}"亚历克斯"{tuple_delimiter}"乔丹"{tuple_delimiter}"亚历克斯和乔丹对发现的承诺,与克鲁兹的视野形成对比。"{tuple_delimiter}6){record_delimiter}
("relationship"{tuple_delimiter}"泰勒"{tuple_delimiter}"乔丹"{tuple_delimiter}"泰勒和乔丹就设备直接互动,导致了相互尊重的一刻和不安的休战。"{tuple_delimiter}8){record_delimiter}
("relationship"{tuple_delimiter}"乔丹"{tuple_delimiter}"克鲁兹"{tuple_delimiter}"乔丹对发现的承诺是对克鲁兹控制和秩序视野的反抗。"{tuple_delimiter}5){record_delimiter}
("relationship"{tuple_delimiter}"泰勒"{tuple_delimiter}"设备"{tuple_delimiter}"泰勒对设备表现出敬畏,表明其重要性和潜在影响。"{tuple_delimiter}9){completion_delimiter}
###############################################
示例2:
实体类型: [人, 组织, 事件, 地点, 概念]
文本:
他们的声音在活动的喧嚣中划过。“在面对一个字面意义上能够编写自己规则的智能时,控制可能是一种幻觉,”他们平静地说道,警惕地注视着数据的涌动。
“这就像它在学习交流一样,”萨姆·里维拉从附近的界面处提出,他们年轻的活力中带着一种敬畏和焦虑的混合体。“这让与陌生人交谈有了全新的意义。”
亚历克斯审视着他的团队——每张脸都表现出专注、决心和不小的恐惧。“这可能是我们的第一次接触,”他承认道,“我们需要准备好应对任何回应。”
他们一起站在未知的边缘,锻造人类对来自天堂的信息的回应。随之而来的沉默是显而易见的——一种集体的反省,关于他们在这个宏大宇宙剧中的角色,一个可能重写人类历史的角色。
加密的对话继续展开,其复杂的模式显示出几乎令人难以置信的预见性。
#############
输出:
("实体"{tuple_delimiter}"萨姆·里维拉"{tuple_delimiter}"人"{tuple_delimiter}"萨姆·里维拉是一个团队成员,致力于与未知智能进行交流,表现出敬畏和焦虑的混合情感。"){record_delimiter}
("实体"{tuple_delimiter}"亚历克斯"{tuple_delimiter}"人"{tuple_delimiter}"亚历克斯是领导一个试图与未知智能进行首次接触的团队的负责人,他承认任务的重要性。"){record_delimiter}
("实体"{tuple_delimiter}"控制"{tuple_delimiter}"概念"{tuple_delimiter}"控制指的是管理或治理的能力,这在一个能够编写自己规则的智能面前受到了挑战。"){record_delimiter}
("实体"{tuple_delimiter}"智能"{tuple_delimiter}"概念"{tuple_delimiter}"智能在这里指的是一个能够编写自己规则并学习交流的未知实体。"){record_delimiter}
("实体"{tuple_delimiter}"首次接触"{tuple_delimiter}"事件"{tuple_delimiter}"首次接触是指人类与未知智能之间可能的初次交流。"){record_delimiter}
("实体"{tuple_delimiter}"人类的回应"{tuple_delimiter}"事件"{tuple_delimiter}"人类的回应是亚历克斯团队对来自未知智能的信息采取的集体行动。"){record_delimiter}
("关系"{tuple_delimiter}"萨姆·里维拉"{tuple_delimiter}"智能"{tuple_delimiter}"萨姆·里维拉直接参与与未知智能学习交流的过程。"{tuple_delimiter}9){record_delimiter}
("关系"{tuple_delimiter}"亚历克斯"{tuple_delimiter}"首次接触"{tuple_delimiter}"亚历克斯领导的团队可能正在与未知智能进行首次接触。"{tuple_delimiter}10){record_delimiter}
("关系"{tuple_delimiter}"亚历克斯"{tuple_delimiter}"人类的回应"{tuple_delimiter}"亚历克斯和他的团队是对未知智能进行人类回应的关键人物。"{tuple_delimiter}8){record_delimiter}
("关系"{tuple_delimiter}"控制"{tuple_delimiter}"智能"{tuple_delimiter}"控制的概念在能够编写自己规则的智能面前受到了挑战。"{tuple_delimiter}7){completion_delimiter}
########################################
示例3:
实体类型: [人, 技术, 任务, 组织, 地点, 事件]
文本:
深夜的实验室里,只有机器的低声嗡嗡声和偶尔的电流闪烁打破了寂静。Dr. Thompson低头盯着屏幕上的数据,眉头紧锁,周围的光芒反射在他的眼镜上,似乎在为即将到来的发现而沉思。
“我们即将达到临界点,”Dr. Thompson的声音中带着一种预感,“如果我们的假设是正确的,这项技术将会引发一场革命。”
实验室的其他人,尽管同样疲惫,却不由自主地被他的热情感染。每个人都知道,他们所做的工作将改变他们对现实的理解,并可能在科学界引发新的浪潮。
他们知道,尽管现在的一切看起来还只是实验的一部分,但不久之后,这将成为历史的一部分。紧张和兴奋在空气中交织,实验室变成了一个梦想与现实交汇的地方。
################
输出:
("entity"{tuple_delimiter}"Dr. Thompson"{tuple_delimiter}"人"{tuple_delimiter}"Dr. Thompson是实验室的主要负责人,对即将到来的发现充满预感。"){record_delimiter}
("entity"{tuple_delimiter}"技术"{tuple_delimiter}"技术"{tuple_delimiter}"技术被描述为可能引发一场革命,改变对现实的理解。"){record_delimiter}
("entity"{tuple_delimiter}"实验室"{tuple_delimiter}"地点"{tuple_delimiter}"实验室是进行研究和实验的场所,在其中发生了重要的科学发现。"){record_delimiter}
("entity"{tuple_delimiter}"发现"{tuple_delimiter}"事件"{tuple_delimiter}"发现是指技术突破,可能会引发科学界的新潮流。"){record_delimiter}
("relationship"{tuple_delimiter}"Dr. Thompson"{tuple_delimiter}"技术"{tuple_delimiter}"Dr. Thompson对技术的预期和研究可能引发科学革命。"{tuple_delimiter}8){record_delimiter}
("relationship"{tuple_delimiter}"Dr. Thompson"{tuple_delimiter}"实验室"{tuple_delimiter}"Dr. Thompson在实验室中进行重要的研究和实验。"{tuple_delimiter}7){record_delimiter}
("relationship"{tuple_delimiter}"技术"{tuple_delimiter}"发现"{tuple_delimiter}"技术的突破被视为即将到来的重大科学发现。"{tuple_delimiter}9){completion_delimiter}
#############################
示例4:
实体类型: [人, 组织, 事件, 地点, 概念, 技术]
文本:
Australia, officially the Commonwealth of Australia, is a country comprising the mainland of the Australian continent, the island of Tasmania, and numerous smaller islands. Australia is the largest country by area in Oceania and the world's sixth-largest country. Australia is the oldest, flattest, and driest inhabited continent, with the least fertile soils. It is a megadiverse country, and its size gives it a wide variety of landscapes and climates, with deserts in the centre, tropical rainforests in the north-east, tropical savannas in the north, and mountain ranges in the south-east.
The ancestors of Aboriginal Australians began arriving from south-east Asia 50,000 to 65,000 years ago, during the last glacial period. They settled the continent and had formed approximately 250 distinct language groups by the time of European settlement, maintaining some of the longest known continuing artistic and religious traditions in the world. Australia's written history commenced with European maritime exploration. The Dutch were the first known Europeans to reach Australia, in 1606. British colonisation began in 1788 with the establishment of the penal colony of New South Wales. By the mid-19th century, most of the continent had been explored by European settlers and five additional self-governing British colonies were established, each gaining responsible government by 1890. The colonies federated in 1901, forming the Commonwealth of Australia. This continued a process of increasing autonomy from the United Kingdom, highlighted by the Statute of Westminster Adoption Act 1942, and culminating in the Australia Acts of 1986.
Australia is a federal parliamentary constitutional monarchy comprising six states and ten territories: the states of New South Wales, Victoria, Queensland, Tasmania, South Australia and Western Australia; the major mainland Australian Capital Territory and Northern Territory; and other minor or external territories. Its population of nearly 27 million is highly urbanised and heavily concentrated on the eastern seaboard. Canberra is the nation's capital, while its most populous cities are Sydney, Melbourne, Brisbane, Perth and Adelaide, which each possess a population of at least one million inhabitants. Australian governments have promoted multiculturalism since the 1970s. Australia is culturally diverse and has one of the highest foreign-born populations in the world. Its abundant natural resources and well-developed international trade relations are crucial to the country's economy, which generates its income from various sources: predominantly services (including banking, real estate and international education) as well as mining, manufacturing and agriculture. It ranks highly for quality of life, health, education, economic freedom, civil liberties and political rights.
################
输出:
("entity"{tuple_delimiter}"Australia"{tuple_delimiter}"地点"{tuple_delimiter}"Australia, officially the Commonwealth of Australia, is a country comprising the mainland of the Australian continent, the island of Tasmania, and numerous smaller islands. It is the largest country by area in Oceania and the world's sixth-largest country. It is the oldest, flattest, and driest inhabited continent, with the least fertile soils. It has a wide variety of landscapes and climates, including deserts, tropical rainforests, tropical savannas, and mountain ranges."){record_delimiter}
("entity"{tuple_delimiter}"Commonwealth of Australia"{tuple_delimiter}"组织"{tuple_delimiter}"The Commonwealth of Australia is a federal parliamentary constitutional monarchy comprising six states and ten territories. It was formed in 1901 and has seen increasing autonomy from the United Kingdom."){record_delimiter}
("entity"{tuple_delimiter}"Aboriginal Australians"{tuple_delimiter}"人"{tuple_delimiter}"The ancestors of Aboriginal Australians arrived from south-east Asia 50,000 to 65,000 years ago, forming approximately 250 distinct language groups and maintaining long artistic and religious traditions."){record_delimiter}
("entity"{tuple_delimiter}"New South Wales"{tuple_delimiter}"地点"{tuple_delimiter}"New South Wales was the first British colony established in Australia in 1788 as a penal colony."){record_delimiter}
("entity"{tuple_delimiter}"British colonisation"{tuple_delimiter}"事件"{tuple_delimiter}"British colonisation of Australia began in 1788 with the establishment of the penal colony of New South Wales and continued with the establishment of five additional self-governing colonies."){record_delimiter}
("entity"{tuple_delimiter}"Statute of Westminster Adoption Act 1942"{tuple_delimiter}"事件"{tuple_delimiter}"The Statute of Westminster Adoption Act 1942 marked a significant step in Australia's autonomy from the United Kingdom."){record_delimiter}
("entity"{tuple_delimiter}"Australia Acts of 1986"{tuple_delimiter}"事件"{tuple_delimiter}"The Australia Acts of 1986 completed the process of Australia's legislative independence from the United Kingdom."){record_delimiter}
("entity"{tuple_delimiter}"Canberra"{tuple_delimiter}"地点"{tuple_delimiter}"Canberra is the capital city of Australia."){record_delimiter}
("entity"{tuple_delimiter}"Sydney"{tuple_delimiter}"地点"{tuple_delimiter}"Sydney is one of Australia's most populous cities, located on the eastern seaboard."){record_delimiter}
("entity"{tuple_delimiter}"Melbourne"{tuple_delimiter}"地点"{tuple_delimiter}"Melbourne is one of Australia's most populous cities, located on the eastern seaboard."){record_delimiter}
("entity"{tuple_delimiter}"Brisbane"{tuple_delimiter}"地点"{tuple_delimiter}"Brisbane is one of Australia's most populous cities, located on the eastern seaboard."){record_delimiter}
("entity"{tuple_delimiter}"Perth"{tuple_delimiter}"地点"{tuple_delimiter}"Perth is one of Australia's most populous cities, located on the western coast."){record_delimiter}
("entity"{tuple_delimiter}"Adelaide"{tuple_delimiter}"地点"{tuple_delimiter}"Adelaide is one of Australia's most populous cities, located on the southern coast."){record_delimiter}
("entity"{tuple_delimiter}"multiculturalism"{tuple_delimiter}"概念"{tuple_delimiter}"Australian governments have promoted multiculturalism since the 1970s, resulting in a highly diverse population."){record_delimiter}
("entity"{tuple_delimiter}"natural resources"{tuple_delimiter}"概念"{tuple_delimiter}"Australia's economy relies heavily on its abundant natural resources and well-developed international trade relations."){record_delimiter}
("relationship"{tuple_delimiter}"Australia"{tuple_delimiter}"Commonwealth of Australia"{tuple_delimiter}"Australia is officially known as the Commonwealth of Australia, a federal parliamentary constitutional monarchy. The Commonwealth was formed in 1901. "{tuple_delimiter}9){record_delimiter}
("relationship"{tuple_delimiter}"Australia"{tuple_delimiter}"Aboriginal Australians"{tuple_delimiter}"The ancestors of Aboriginal Australians settled in Australia 50,000 to 65,000 years ago. Aboriginal Australians have maintained long artistic and religious traditions. "{tuple_delimiter}8){record_delimiter}
("relationship"{tuple_delimiter}"New South Wales"{tuple_delimiter}"British colonisation"{tuple_delimiter}"British colonisation of Australia began in 1788 with the establishment of the penal colony of New South Wales. "{tuple_delimiter}8){record_delimiter}
("relationship"{tuple_delimiter}"Statute of Westminster Adoption Act 1942"{tuple_delimiter}"Commonwealth of Australia"{tuple_delimiter}"The Statute of Westminster Adoption Act 1942 marked a significant step in the legislative independence of the Commonwealth of Australia from the United Kingdom. "{tuple_delimiter}7){record_delimiter}
("relationship"{tuple_delimiter}"Australia Acts of 1986"{tuple_delimiter}"Commonwealth of Australia"{tuple_delimiter}"The Australia Acts of 1986 completed the process of legislative independence for the Commonwealth of Australia from the United Kingdom. "{tuple_delimiter}9){record_delimiter}
("relationship"{tuple_delimiter}"Canberra"{tuple_delimiter}"Australia"{tuple_delimiter}"Canberra is the capital city of Australia. "{tuple_delimiter}7){record_delimiter}
("relationship"{tuple_delimiter}"Sydney"{tuple_delimiter}"Australia"{tuple_delimiter}"Sydney is one of Australia's most populous cities. "{tuple_delimiter}7){record_delimiter}
("relationship"{tuple_delimiter}"Melbourne"{tuple_delimiter}"Australia"{tuple_delimiter}"Melbourne is one of Australia's most populous cities. "{tuple_delimiter}7){record_delimiter}
("relationship"{tuple_delimiter}"Brisbane"{tuple_delimiter}"Australia"{tuple_delimiter}"Brisbane is one of Australia's most populous cities. "{tuple_delimiter}7){record_delimiter}
("relationship"{tuple_delimiter}"Perth"{tuple_delimiter}"Australia"{tuple_delimiter}"Perth is one of Australia's most populous cities. "{tuple_delimiter}7){record_delimiter}
("relationship"{tuple_delimiter}"Adelaide"{tuple_delimiter}"Australia"{tuple_delimiter}"Adelaide is one of Australia's most populous cities. "{tuple_delimiter}7){record_delimiter}
("relationship"{tuple_delimiter}"multiculturalism"{tuple_delimiter}"Australia"{tuple_delimiter}"Australia has promoted multiculturalism since the 1970s, leading to a highly diverse population. "{tuple_delimiter}8){record_delimiter}
("relationship"{tuple_delimiter}"natural resources"{tuple_delimiter}"Australia"{tuple_delimiter}"Australia's economy relies heavily on its abundant natural resources. "{tuple_delimiter}8){completion_delimiter}
#############################
-Real Data-
######################
Entity_types: {entity_types}
Text: {input_text}
######################
Output:
This is my prompt
Beta Was this translation helpful? Give feedback.
All reactions