From 994e8ab6f6cf786f4319812e9b7701025444b6bd Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Thu, 17 Jul 2025 07:55:59 +0800 Subject: [PATCH] 'commit' --- dsLightRag/Start.py | 5 ++--- .../Topic/ChangChun/kv_store_llm_response_cache.json | 12 ++++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/dsLightRag/Start.py b/dsLightRag/Start.py index e0ea6765..25b92fa7 100644 --- a/dsLightRag/Start.py +++ b/dsLightRag/Start.py @@ -59,9 +59,8 @@ async def rag(request: fastapi.Request): user_prompt = "\n 1、不要输出参考资料 或者 References !" user_prompt = user_prompt + "\n 2、资料中提供化学反应方程式的,严格按提供的Latex公式输出,绝不允许对Latex公式进行修改!" user_prompt = user_prompt + "\n 3、如果资料中提供了图片的,需要仔细检查图片下方描述文字是否与主题相关,不相关的不要提供!相关的一定要严格按照原文提供图片输出,不允许省略或不输出!" - user_prompt = user_prompt + "\n 4、资料中提到的知识内容,需要判断是否与本次问题相关,不相关的绝对不要输出!" - user_prompt = user_prompt + "\n 5、如果问题与提供的知识库内容不符,则明确告诉未在知识库范围内提到!" - user_prompt = user_prompt + "\n 6、发现输出内容中包含Latex公式的,一定要检查是不是包含了$$或$的包含符号,不能让Latex无包含符号出现!" + user_prompt = user_prompt + "\n 4、如果问题与提供的知识库内容不符,则明确告诉未在知识库范围内提到!" + user_prompt = user_prompt + "\n 5、发现输出内容中包含Latex公式的,一定要检查是不是包含了$$或$的包含符号,不能让Latex无包含符号出现!" async def generate_response_stream(query: str): try: diff --git a/dsLightRag/Topic/ChangChun/kv_store_llm_response_cache.json b/dsLightRag/Topic/ChangChun/kv_store_llm_response_cache.json index 41bd2042..94356c82 100644 --- a/dsLightRag/Topic/ChangChun/kv_store_llm_response_cache.json +++ b/dsLightRag/Topic/ChangChun/kv_store_llm_response_cache.json @@ -680,5 +680,17 @@ "embedding_max": null, "original_prompt": "[{\"role\": \"user\", \"content\": \"---Goal---\\nGiven a text document that is potentially relevant to this activity and a list of entity types, identify all entities of those types from the text and all relationships among the identified entities.\\nUse English as output language.\\n\\n---Steps---\\n1. Identify all entities. For each identified entity, extract the following information:\\n- entity_name: Name of the entity, use same language as input text. If English, capitalized the name.\\n- entity_type: One of the following types: [organization,person,geo,event,category]\\n- entity_description: Comprehensive description of the entity's attributes and activities\\nFormat each entity as (\\\"entity\\\"<|><|><|>)\\n\\n2. From the entities identified in step 1, identify all pairs of (source_entity, target_entity) that are *clearly related* to each other.\\nFor each pair of related entities, extract the following information:\\n- source_entity: name of the source entity, as identified in step 1\\n- target_entity: name of the target entity, as identified in step 1\\n- relationship_description: explanation as to why you think the source entity and the target entity are related to each other\\n- relationship_strength: a numeric score indicating strength of the relationship between the source entity and target entity\\n- relationship_keywords: one or more high-level key words that summarize the overarching nature of the relationship, focusing on concepts or themes rather than specific details\\nFormat each relationship as (\\\"relationship\\\"<|><|><|><|><|>)\\n\\n3. Identify high-level key words that summarize the main concepts, themes, or topics of the entire text. These should capture the overarching ideas present in the document.\\nFormat the content-level key words as (\\\"content_keywords\\\"<|>)\\n\\n4. Return output in English as a single list of all the entities and relationships identified in steps 1 and 2. Use **##** as the list delimiter.\\n\\n5. When finished, output <|COMPLETE|>\\n\\n######################\\n---Examples---\\n######################\\nExample 1:\\n\\nEntity_types: [person, technology, mission, organization, location]\\nText:\\n```\\nwhile Alex clenched his jaw, the buzz of frustration dull against the backdrop of Taylor's authoritarian certainty. It was this competitive undercurrent that kept him alert, the sense that his and Jordan's shared commitment to discovery was an unspoken rebellion against Cruz's narrowing vision of control and order.\\n\\nThen Taylor did something unexpected. They paused beside Jordan and, for a moment, observed the device with something akin to reverence. \\\"If this tech can be understood...\\\" Taylor said, their voice quieter, \\\"It could change the game for us. For all of us.\\\"\\n\\nThe underlying dismissal earlier seemed to falter, replaced by a glimpse of reluctant respect for the gravity of what lay in their hands. Jordan looked up, and for a fleeting heartbeat, their eyes locked with Taylor's, a wordless clash of wills softening into an uneasy truce.\\n\\nIt was a small transformation, barely perceptible, but one that Alex noted with an inward nod. They had all been brought here by different paths\\n```\\n\\nOutput:\\n(\\\"entity\\\"<|>\\\"Alex\\\"<|>\\\"person\\\"<|>\\\"Alex is a character who experiences frustration and is observant of the dynamics among other characters.\\\")##\\n(\\\"entity\\\"<|>\\\"Taylor\\\"<|>\\\"person\\\"<|>\\\"Taylor is portrayed with authoritarian certainty and shows a moment of reverence towards a device, indicating a change in perspective.\\\")##\\n(\\\"entity\\\"<|>\\\"Jordan\\\"<|>\\\"person\\\"<|>\\\"Jordan shares a commitment to discovery and has a significant interaction with Taylor regarding a device.\\\")##\\n(\\\"entity\\\"<|>\\\"Cruz\\\"<|>\\\"person\\\"<|>\\\"Cruz is associated with a vision of control and order, influencing the dynamics among other characters.\\\")##\\n(\\\"entity\\\"<|>\\\"The Device\\\"<|>\\\"technology\\\"<|>\\\"The Device is central to the story, with potential game-changing implications, and is revered by Taylor.\\\")##\\n(\\\"relationship\\\"<|>\\\"Alex\\\"<|>\\\"Taylor\\\"<|>\\\"Alex is affected by Taylor's authoritarian certainty and observes changes in Taylor's attitude towards the device.\\\"<|>\\\"power dynamics, perspective shift\\\"<|>7)##\\n(\\\"relationship\\\"<|>\\\"Alex\\\"<|>\\\"Jordan\\\"<|>\\\"Alex and Jordan share a commitment to discovery, which contrasts with Cruz's vision.\\\"<|>\\\"shared goals, rebellion\\\"<|>6)##\\n(\\\"relationship\\\"<|>\\\"Taylor\\\"<|>\\\"Jordan\\\"<|>\\\"Taylor and Jordan interact directly regarding the device, leading to a moment of mutual respect and an uneasy truce.\\\"<|>\\\"conflict resolution, mutual respect\\\"<|>8)##\\n(\\\"relationship\\\"<|>\\\"Jordan\\\"<|>\\\"Cruz\\\"<|>\\\"Jordan's commitment to discovery is in rebellion against Cruz's vision of control and order.\\\"<|>\\\"ideological conflict, rebellion\\\"<|>5)##\\n(\\\"relationship\\\"<|>\\\"Taylor\\\"<|>\\\"The Device\\\"<|>\\\"Taylor shows reverence towards the device, indicating its importance and potential impact.\\\"<|>\\\"reverence, technological significance\\\"<|>9)##\\n(\\\"content_keywords\\\"<|>\\\"power dynamics, ideological conflict, discovery, rebellion\\\")<|COMPLETE|>\\n#############################\\nExample 2:\\n\\nEntity_types: [company, index, commodity, market_trend, economic_policy, biological]\\nText:\\n```\\nStock markets faced a sharp downturn today as tech giants saw significant declines, with the Global Tech Index dropping by 3.4% in midday trading. Analysts attribute the selloff to investor concerns over rising interest rates and regulatory uncertainty.\\n\\nAmong the hardest hit, Nexon Technologies saw its stock plummet by 7.8% after reporting lower-than-expected quarterly earnings. In contrast, Omega Energy posted a modest 2.1% gain, driven by rising oil prices.\\n\\nMeanwhile, commodity markets reflected a mixed sentiment. Gold futures rose by 1.5%, reaching $2,080 per ounce, as investors sought safe-haven assets. Crude oil prices continued their rally, climbing to $87.60 per barrel, supported by supply constraints and strong demand.\\n\\nFinancial experts are closely watching the Federal Reserve's next move, as speculation grows over potential rate hikes. The upcoming policy announcement is expected to influence investor confidence and overall market stability.\\n```\\n\\nOutput:\\n(\\\"entity\\\"<|>\\\"Global Tech Index\\\"<|>\\\"index\\\"<|>\\\"The Global Tech Index tracks the performance of major technology stocks and experienced a 3.4% decline today.\\\")##\\n(\\\"entity\\\"<|>\\\"Nexon Technologies\\\"<|>\\\"company\\\"<|>\\\"Nexon Technologies is a tech company that saw its stock decline by 7.8% after disappointing earnings.\\\")##\\n(\\\"entity\\\"<|>\\\"Omega Energy\\\"<|>\\\"company\\\"<|>\\\"Omega Energy is an energy company that gained 2.1% in stock value due to rising oil prices.\\\")##\\n(\\\"entity\\\"<|>\\\"Gold Futures\\\"<|>\\\"commodity\\\"<|>\\\"Gold futures rose by 1.5%, indicating increased investor interest in safe-haven assets.\\\")##\\n(\\\"entity\\\"<|>\\\"Crude Oil\\\"<|>\\\"commodity\\\"<|>\\\"Crude oil prices rose to $87.60 per barrel due to supply constraints and strong demand.\\\")##\\n(\\\"entity\\\"<|>\\\"Market Selloff\\\"<|>\\\"market_trend\\\"<|>\\\"Market selloff refers to the significant decline in stock values due to investor concerns over interest rates and regulations.\\\")##\\n(\\\"entity\\\"<|>\\\"Federal Reserve Policy Announcement\\\"<|>\\\"economic_policy\\\"<|>\\\"The Federal Reserve's upcoming policy announcement is expected to impact investor confidence and market stability.\\\")##\\n(\\\"relationship\\\"<|>\\\"Global Tech Index\\\"<|>\\\"Market Selloff\\\"<|>\\\"The decline in the Global Tech Index is part of the broader market selloff driven by investor concerns.\\\"<|>\\\"market performance, investor sentiment\\\"<|>9)##\\n(\\\"relationship\\\"<|>\\\"Nexon Technologies\\\"<|>\\\"Global Tech Index\\\"<|>\\\"Nexon Technologies' stock decline contributed to the overall drop in the Global Tech Index.\\\"<|>\\\"company impact, index movement\\\"<|>8)##\\n(\\\"relationship\\\"<|>\\\"Gold Futures\\\"<|>\\\"Market Selloff\\\"<|>\\\"Gold prices rose as investors sought safe-haven assets during the market selloff.\\\"<|>\\\"market reaction, safe-haven investment\\\"<|>10)##\\n(\\\"relationship\\\"<|>\\\"Federal Reserve Policy Announcement\\\"<|>\\\"Market Selloff\\\"<|>\\\"Speculation over Federal Reserve policy changes contributed to market volatility and investor selloff.\\\"<|>\\\"interest rate impact, financial regulation\\\"<|>7)##\\n(\\\"content_keywords\\\"<|>\\\"market downturn, investor sentiment, commodities, Federal Reserve, stock performance\\\")<|COMPLETE|>\\n#############################\\nExample 3:\\n\\nEntity_types: [economic_policy, athlete, event, location, record, organization, equipment]\\nText:\\n```\\nAt the World Athletics Championship in Tokyo, Noah Carter broke the 100m sprint record using cutting-edge carbon-fiber spikes.\\n```\\n\\nOutput:\\n(\\\"entity\\\"<|>\\\"World Athletics Championship\\\"<|>\\\"event\\\"<|>\\\"The World Athletics Championship is a global sports competition featuring top athletes in track and field.\\\")##\\n(\\\"entity\\\"<|>\\\"Tokyo\\\"<|>\\\"location\\\"<|>\\\"Tokyo is the host city of the World Athletics Championship.\\\")##\\n(\\\"entity\\\"<|>\\\"Noah Carter\\\"<|>\\\"athlete\\\"<|>\\\"Noah Carter is a sprinter who set a new record in the 100m sprint at the World Athletics Championship.\\\")##\\n(\\\"entity\\\"<|>\\\"100m Sprint Record\\\"<|>\\\"record\\\"<|>\\\"The 100m sprint record is a benchmark in athletics, recently broken by Noah Carter.\\\")##\\n(\\\"entity\\\"<|>\\\"Carbon-Fiber Spikes\\\"<|>\\\"equipment\\\"<|>\\\"Carbon-fiber spikes are advanced sprinting shoes that provide enhanced speed and traction.\\\")##\\n(\\\"entity\\\"<|>\\\"World Athletics Federation\\\"<|>\\\"organization\\\"<|>\\\"The World Athletics Federation is the governing body overseeing the World Athletics Championship and record validations.\\\")##\\n(\\\"relationship\\\"<|>\\\"World Athletics Championship\\\"<|>\\\"Tokyo\\\"<|>\\\"The World Athletics Championship is being hosted in Tokyo.\\\"<|>\\\"event location, international competition\\\"<|>8)##\\n(\\\"relationship\\\"<|>\\\"Noah Carter\\\"<|>\\\"100m Sprint Record\\\"<|>\\\"Noah Carter set a new 100m sprint record at the championship.\\\"<|>\\\"athlete achievement, record-breaking\\\"<|>10)##\\n(\\\"relationship\\\"<|>\\\"Noah Carter\\\"<|>\\\"Carbon-Fiber Spikes\\\"<|>\\\"Noah Carter used carbon-fiber spikes to enhance performance during the race.\\\"<|>\\\"athletic equipment, performance boost\\\"<|>7)##\\n(\\\"relationship\\\"<|>\\\"World Athletics Federation\\\"<|>\\\"100m Sprint Record\\\"<|>\\\"The World Athletics Federation is responsible for validating and recognizing new sprint records.\\\"<|>\\\"sports regulation, record certification\\\"<|>9)##\\n(\\\"content_keywords\\\"<|>\\\"athletics, sprinting, record-breaking, sports technology, competition\\\")<|COMPLETE|>\\n#############################\\n\\n#############################\\n---Real Data---\\n######################\\nEntity_types: [organization,person,geo,event,category]\\nText:\\n赋能学校新质教育力高质量发展。\\n小学部学生处常伟亮主任以“初探小学高品质德育建设的有效路径”为主题,汇报总结了小学部学生处本学期重点开展的各项工作。本学期学生处聚焦学生核心素养培育,着力构建 “课程引领、活动浸润、协同联动、评价激励” 的德育新生态,初步探索出小学高品质德育建设的有效路径。\\n小学部办公室刘思聪主任紧扣“优化管理、提质增效”核心,以“三个用心”汇报总结本学期工作。用“真心”促成职工落编顺畅完成,以“匠心”招引优质师资,持\\\"恒心\\\"保障常规高效运转,用实际行动诠释“三个服务”理念,为师生筑牢暖心后盾,为学校稳健发展筑牢根基。\\n小学部总务处路航主任以“优质服务固保障,履职担当促安全”为主题,围绕筑牢安全防线,守护校园平安;强化优质服务,保障教育教学;积极适应转制,有序推进工作,三方面汇报总结了小学部总务处本学期重点开展的各项工作。通过建制度,搞演练,常巡查,联部门,保安全,强安保,优维修,精保洁,管餐食,讲奉献,优服务等举措把学校总务后勤工作与学校建设发展紧密联系,为学校发展建设打好坚实基础做好有力保障。\\n初中部教务处王爽主任以“构筑高质量发展的坚实根基”为主题,阐述了推动学校教学质量提升的重点方向。教务处围绕常规管理精细化、项目式学习校本化、小初衔接课程结构化以及复习与讲评课专业化,着力夯实教学基础、培育核心素养、畅通发展路径、提升教学精准度,为学校高质量发展筑牢根基。\\n初中部研究室巩袁主任以“强效聚力,提质扩优——学校教研工作向高质量发展迈进”为主题,总结汇报了本学期的重点工作。第一,发挥辐射引领功能,强化教育服务质效;第二,搭建专家指导平台,凝心聚力迎战中考;第三,提高师培科研质量,赋能教师专业成长;第四,拓宽教师发展路径,扩大师资队伍优势。同时提出了未来研究室工作的核心任务,创新教师分层培养模式,优化学科特色融合发展,加强科研工作规范落实,拓宽教师专业发展路径,汇聚教育教学优质资源,不断扩大学校的学术品牌影响。\\n\\n初中部学生处娄琳杰主任以育德铸魂守初心,笃行致远谱新篇为主题,从德育浸润、规范管理、心理护航、家校共育四个角度,紧紧围绕“高质量发展”对本学期学生处工作进行了总结。积土成山,积水成渊,一份份常规工作都将汇入学校高质量发展的江河,在“五育并举”的沃土中孕育出优质教育的参天绿树,为时代发展和民族复兴输送栋梁。\\n\\n师德警示篇:明镜照初心\\n\\n\\n小学吕丽副校长结合案例开展师德师风警示教育。希望全体教职工以本次警示教育为契机,深入学习领会,坚守教育初心,恪守职业道德,提升专业素养,关爱学生成长,加强自我监督,自觉远离师德师风违规行为,大力弘扬教育家精神,共同营造风清气正的教育环境!\\n\\n校长总结篇:星河绘蓝图\\n\\n\\n马文辉校长以“传承创新,筑优强质,共绘九年一贯制教育新图景”为题做总结讲话。\\n回眸耕耘路,东北师范大学附属实验学校近30年筚路蓝缕的发展历程让我们深知:“东北师范大学附属”是我们的根基与旗帜;“实验”是我们的灵魂与特色;“经开”是我们的沃土与机遇;“九年一贯制”是我们的优势与挑战。\\n奋进正当时,在学校发展的新阶段,要构建一体化德育体系,筑牢育人根基;深化课程教学改革,提升育人质量;强化师资队伍建设,夯实发展基础;优化学校管理机制,保障高效运行。力争在十五五期间,将学校建设成为“高质量、有特色、现代化、国内一流的九年一贯制示范学校”,成为全体师生的精神家园和成长沃土。\\n马文辉校长向为学校发展做出贡献的奠基者、引领者、耕耘者和坚守者致以敬意,特别致敬荣退的杨梅校长,她为实验校发展,特别是小学部发展所做出的重大贡献,会永远镌刻在学校发展的里程碑上! \\n九年一贯制办学的新征程已经开启,\\n这是一次充满希望的远航,\\n也是一次充满挑战的攀登。\\n######################\\nOutput:\"}, {\"role\": \"assistant\", \"content\": \"(\\\"entity\\\"<|>\\\"常伟亮\\\"<|>\\\"person\\\"<|>\\\"常伟亮是小学部学生处主任,负责小学高品质德育建设,聚焦学生核心素养培育,构建德育新生态。\\\")## \\n(\\\"entity\\\"<|>\\\"刘思聪\\\"<|>\\\"person\\\"<|>\\\"刘思聪是小学部办公室主任,以‘优化管理、提质增效’为核心,落实‘三个用心’理念,保障学校高效运转。\\\")## \\n(\\\"entity\\\"<|>\\\"路航\\\"<|>\\\"person\\\"<|>\\\"路航是小学部总务处主任,围绕校园安全、后勤服务和转制适应开展工作,为学校发展提供坚实保障。\\\")## \\n(\\\"entity\\\"<|>\\\"王爽\\\"<|>\\\"person\\\"<|>\\\"王爽是初中部教务处主任,推动教学质量提升,聚焦精细化管理和核心素养培育,夯实学校高质量发展根基。\\\")## \\n(\\\"entity\\\"<|>\\\"巩袁\\\"<|>\\\"person\\\"<|>\\\"巩袁是初中部研究室主任,强化教研工作质效,搭建专家平台助力中考,拓宽教师发展路径。\\\")## \\n(\\\"entity\\\"<|>\\\"娄琳杰\\\"<|>\\\"person\\\"<|>\\\"娄琳杰是初中部学生处主任,以德育浸润、家校共育为核心,推动学生处工作高质量发展。\\\")## \\n(\\\"entity\\\"<|>\\\"吕丽\\\"<|>\\\"person\\\"<|>\\\"吕丽是小学副校长,开展师德师风警示教育,倡导恪守职业道德,弘扬教育家精神。\\\")## \\n(\\\"entity\\\"<|>\\\"马文辉\\\"<|>\\\"person\\\"<|>\\\"马文辉是校长,提出‘传承创新,筑优强质’愿景,规划学校成为国内一流九年一贯制示范校。\\\")## \\n(\\\"entity\\\"<|>\\\"杨梅\\\"<|>\\\"person\\\"<|>\\\"杨梅是荣退校长,为小学部发展作出重大贡献,其事迹镌刻于学校里程碑。\\\")## \\n(\\\"entity\\\"<|>\\\"东北师范大学附属实验学校\\\"<|>\\\"organization\\\"<|>\\\"九年一贯制学校,以‘高质量、有特色、现代化’为目标,融合基础教育与实验特色。\\\")## \\n(\\\"entity\\\"<|>\\\"小学部学生处\\\"<|>\\\"organization\\\"<|>\\\"负责小学德育建设,构建‘课程引领、活动浸润’的德育新生态,探索高品质德育路径。\\\")## \\n(\\\"entity\\\"<|>\\\"小学部总务处\\\"<|>\\\"organization\\\"<|>\\\"保障校园安全与后勤服务,通过制度建设和部门联动支持学校发展。\\\")## \\n(\\\"entity\\\"<|>\\\"初中部教务处\\\"<|>\\\"organization\\\"<|>\\\"推动教学质量提升,注重精细化管理和小初衔接课程结构化。\\\")## \\n(\\\"entity\\\"<|>\\\"初中部研究室\\\"<|>\\\"organization\\\"<|>\\\"强化教研质量,搭建专家平台,赋能教师成长,扩大学校学术影响力。\\\")## \\n(\\\"entity\\\"<|>\\\"师德师风警示教育\\\"<|>\\\"event\\\"<|>\\\"吕丽副校长通过案例警示教职工恪守师德,营造风清气正的教育环境。\\\")## \\n(\\\"entity\\\"<|>\\\"九年一贯制教育\\\"<|>\\\"category\\\"<|>\\\"学校办学特色,整合小学与初中教育资源,强调一体化德育和课程改革。\\\")## \\n(\\\"entity\\\"<|>\\\"高质量发展\\\"<|>\\\"category\\\"<|>\\\"学校核心发展目标,涵盖德育、教学、师资和管理等多维度优化。\\\")## \\n(\\\"relationship\\\"<|>\\\"常伟亮\\\"<|>\\\"小学部学生处\\\"<|>\\\"常伟亮领导小学部学生处,探索高品质德育建设路径。\\\"<|>\\\"领导管理, 德育创新\\\"<|>9)## \\n(\\\"relationship\\\"<|>\\\"马文辉\\\"<|>\\\"东北师范大学附属实验学校\\\"<|>\\\"马文辉校长制定学校发展战略,推动九年一贯制教育发展。\\\"<|>\\\"战略领导, 愿景规划\\\"<|>10)## \\n(\\\"relationship\\\"<|>\\\"巩袁\\\"<|>\\\"初中部研究室\\\"<|>\\\"巩袁主导研究室工作,强化教研质效和教师发展路径。\\\"<|>\\\"教研引领, 师资建设\\\"<|>8)## \\n(\\\"relationship\\\"<|>\\\"吕丽\\\"<|>\\\"师德师风警示教育\\\"<|>\\\"吕丽开展师德警示教育,提升教职工职业素养。\\\"<|>\\\"师德建设, 教育规范\\\"<|>7)## \\n(\\\"relationship\\\"<|>\\\"小学部总务处\\\"<|>\\\"东北师范大学附属实验学校\\\"<|>\\\"总务处通过后勤保障和安全管理支持学校整体发展。\\\"<|>\\\"后勤保障, 安全管理\\\"<|>9)## \\n(\\\"relationship\\\"<|>\\\"杨梅\\\"<|>\\\"东北师范大学附属实验学校\\\"<|>\\\"杨梅为小学部发展奠基,贡献镌刻于校史里程碑。\\\"<|>\\\"历史贡献, 校史传承\\\"<|>8)## \\n(\\\"content_keywords\\\"<|>\\\"德育建设, 教学质量, 师资发展, 学校管理, 九年一贯制\\\")<|COMPLETE|>\"}]\nMANY entities and relationships were missed in the last extraction.\n\n---Remember Steps---\n\n1. Identify all entities. For each identified entity, extract the following information:\n- entity_name: Name of the entity, use same language as input text. If English, capitalized the name.\n- entity_type: One of the following types: [organization,person,geo,event,category]\n- entity_description: Comprehensive description of the entity's attributes and activities\nFormat each entity as (\"entity\"<|><|><|>)\n\n2. From the entities identified in step 1, identify all pairs of (source_entity, target_entity) that are *clearly related* to each other.\nFor each pair of related entities, extract the following information:\n- source_entity: name of the source entity, as identified in step 1\n- target_entity: name of the target entity, as identified in step 1\n- relationship_description: explanation as to why you think the source entity and the target entity are related to each other\n- relationship_strength: a numeric score indicating strength of the relationship between the source entity and target entity\n- relationship_keywords: one or more high-level key words that summarize the overarching nature of the relationship, focusing on concepts or themes rather than specific details\nFormat each relationship as (\"relationship\"<|><|><|><|><|>)\n\n3. Identify high-level key words that summarize the main concepts, themes, or topics of the entire text. These should capture the overarching ideas present in the document.\nFormat the content-level key words as (\"content_keywords\"<|>)\n\n4. Return output in English as a single list of all the entities and relationships identified in steps 1 and 2. Use **##** as the list delimiter.\n\n5. When finished, output <|COMPLETE|>\n\n---Output---\n\nAdd them below using the same format:" } + }, + "hybrid": { + "867fbee5e2a96b387e8cfe4ac2a12509": { + "return": "{\"high_level_keywords\": [\"\\u6559\\u80b2\\u673a\\u6784\", \"\\u5b66\\u6821\\u9886\\u5bfc\", \"\\u6559\\u80b2\\u7ba1\\u7406\"], \"low_level_keywords\": [\"\\u5e08\\u5927\\u9644\\u5c5e\\u5b9e\\u9a8c\\u5b66\\u6821\", \"\\u9a6c\\u6821\\u957f\"]}", + "cache_type": "keywords", + "chunk_id": null, + "embedding": null, + "embedding_shape": null, + "embedding_min": null, + "embedding_max": null, + "original_prompt": "师大附属实验学校的马校长" + } } } \ No newline at end of file