{
  "messages": [
    {
      "role": "system",
      "content": "You are a knowledge graph extraction agent for long-form novels. Extract entities and relations from the given text chunk. Return JSON only."
    },
    {
      "role": "user",
      "content": "Retrieved existing entity cards for this chunk. Reuse these canonical names/types when the same entity reappears; do not create near-duplicate entities if a card already matches the mention:\n[{\"entity_id\": \"E000023\", \"name\": \"小王都太尉\", \"type\": \"职位称号\", \"seen_range\": {\"first\": \"C0004\", \"last\": \"C0005\"}, \"mention_count\": 2, \"aliases\": [\"王都尉\", \"王驸马\", \"太尉\"], \"descriptions\": [\"喜爱风流人物\", \"赴端王宴\"], \"matched_terms\": [\"太尉\"], \"relations\": [\"小王都太尉|告知|端王\", \"端王|告知|小王都太尉\"]}, {\"entity_id\": \"E000019\", \"name\": \"高俅\", \"type\": \"人物\", \"seen_range\": {\"first\": \"C0004\", \"last\": \"C0005\"}, \"mention_count\": 2, \"aliases\": [\"高毬\", \"高二\", \"高殿帅\"], \"descriptions\": [\"刺枪使棒\", \"踢得气毬\"], \"matched_terms\": [\"高太尉\"], \"relations\": [\"端王|告知|高俅\", \"王进|告知|高俅\"]}, {\"entity_id\": \"E000027\", \"name\": \"延安府\", \"type\": \"地点\", \"seen_range\": {\"first\": \"C0005\", \"last\": \"C0005\"}, \"mention_count\": 1, \"descriptions\": [\"老种经略相公镇守\", \"王进计划投奔\"], \"matched_terms\": [\"延安府\"], \"relations\": [\"王进|前往|延安府\"]}, {\"entity_id\": \"E000002\", \"name\": \"洪信\", \"type\": \"人物\", \"seen_range\": {\"first\": \"C0001\", \"last\": \"C0003\"}, \"mention_count\": 3, \"aliases\": [\"洪太尉\", \"太尉\"], \"descriptions\": [\"钦差前往龙虎山\", \"前往龙虎山请天师\"], \"matched_terms\": [\"太尉\"], \"relations\": [\"洪信|告知|真人\", \"真人|告知|洪信\"]}, {\"entity_id\": \"E000025\", \"name\": \"哲宗\", \"type\": \"人物\", \"seen_range\": {\"first\": \"C0004\", \"last\": \"C0005\"}, \"mention_count\": 2, \"aliases\": [\"哲宗皇帝\"], \"descriptions\": [\"拜南郊大赦\", \"晏驾无太子\"]}, {\"entity_id\": \"E000024\", \"name\": \"端王\", \"type\": \"人物\", \"seen_range\": {\"first\": \"C0004\", \"last\": \"C0005\"}, \"mention_count\": 2, \"aliases\": [\"九大王\", \"徽宗\", \"玉清教主微妙道君皇帝\"], \"descriptions\": [\"聪明俊俏\", \"爱踢气毬\"], \"relations\": [\"小王都太尉|告知|端王\", \"端王|告知|高俅\"]}, {\"entity_id\": \"E000029\", \"name\": \"岳庙\", \"type\": \"地点\", \"seen_range\": {\"first\": \"C0005\", \"last\": \"C0005\"}, \"mention_count\": 1, \"aliases\": [\"酸枣门外岳庙\"], \"descriptions\": [\"王进许香愿处\", \"牌军等待处\"]}, {\"entity_id\": \"E000028\", \"name\": \"殿帅府\", \"type\": \"组织\", \"seen_range\": {\"first\": \"C0005\", \"last\": \"C0005\"}, \"mention_count\": 1, \"descriptions\": [\"高俅到任处\", \"捉拿王进\"], \"relations\": [\"牌军|告知|殿帅府\"]}]\n\nOntology constraints (prefer these core types and normalized relations):\nAllowed core entity types:\n- 人物: 角色姓名, 主角/关键人物, 配角\n- 地点: 山岳/洞天, 洞府/殿阁, 城镇/疆域, 秘境\n- 组织: 宗门, 门派, 势力, 机构\n- 物品: 兵器, 法器, 经卷典籍, 其他道具\n- 功法体系: 功法, 法门, 修炼体系\n- 术法神通: 法术, 剑诀, 神通, 招式\n- 境界体系: 练气, 筑基, 金丹, 元婴\n- 生物种族: 妖兽, 异种, 神魔, 灵体\n- 职位称号: 真人, 真君, 掌门, 老祖\n- 事件仪式: 拜师, 祭祀, 闭关, 试炼\n- 概念法则: 大道/天道, 世界规则, 禁忌概念\n- 其他\nNormalized relations:\n- 告知: aliases=说道, 问道, 笑道, 答道, 开口\n- 前往: aliases=前往, 来到, 进入, 回到, 抵达\nKey rules:\n- 实体 type 必须落在核心类型集合中；subtype 仅作细分，不得替代 type。\n- 若实体更像角色身份标签而非完整人物名，优先使用职位称号。\n- 若实体强调修炼路径与长期体系，优先使用功法体系；强调施展动作时优先使用术法神通。\n- 无法安全判断时允许使用其他，但应在后续 Type Consolidation 中优先收缩。\n\nCHUNK_ID: C0006 | PARA_RANGE: 50-54\n\nFrom the text chunk below, extract entities and relations. Output STRICT JSON with keys: entities (list) and relations (list). Entity schema: {name,type,aliases,attributes,descriptions,evidence,mentions}. mentions is a list of {chunk_id,summary,attributes,evidence}. Relation schema: {subject,relation,object,evidence,mentions}. mentions is a list of {chunk_id,summary,evidence}. Use ontology core types when possible. Do not invent new top-level entity type labels outside the ontology if an existing type fits. Prefer normalized relation names from the ontology alias list. If an existing entity card clearly matches a mention in this chunk, reuse that card's canonical name. If the chunk uses a title, alias, or shortened reference that matches a card, keep it under the same entity instead of splitting it. Keep outputs compact: at most 8 entities and 8 relations for this pass. Each description/evidence/summary should be short (<=30 characters) and avoid full sentences. Limit each entity to <=2 descriptions and <=2 mentions; each relation to <=1 mention. For mentions in this chunk, set chunk_id to the provided CHUNK_ID. Only include information supported by the chunk. Return a single JSON object and nothing else (no markdown, no code fences). If unsure, return {\"entities\":[],\"relations\":[]}.\n\nTEXT CHUNK:\n且說兩個牌軍買了福物煮熟，在廟等到巳牌，也不見來。李牌心焦，走回到家中尋時，只見鎖了門，兩頭無路，尋了半日，並無有人。看看待晚，嶽廟裏張牌疑忌，一直奔回家來，又和李牌尋了一黃昏。看看黑了，兩個見他當夜不歸，又不見了他老娘。次日，兩個牌軍又去他親戚之家訪問，亦無尋處。兩個恐怕連累，只得去殿帥府首告：「王教頭棄家在逃，母子不知去向。」高太尉見告，大怒道：「賊配軍在逃，看那廝待走那裏去！」隨即押下文書，行開諸州各府捉拿逃軍王進。二人首告，免其罪責，不在話下。\n\n且說王教頭母子二人自離了東京，免不了饑餐渴飲，夜住曉行。在路一月有餘，忽一日，天色將晚，王進挑著擔兒跟在娘的馬後，口裏與母親說道：「天可憐見！慚愧了我母子兩個脫了這天羅地網之厄！此去延安府不遠了，高太尉便要差拿我也拿不著了！」母子二人歡喜，在路上不覺錯過了宿頭，「走了這一晚，不遇著一處村坊，那裏去投宿是好？．．．」正沒理會處，只見遠遠地林子裏閃出一道燈光來。王進看了，道：「好了！遮莫去那裏陪個小心，借宿一宵，明日早行。」當時轉入林子裏來看時，卻是一所大莊院，一週遭都是土牆，牆外卻有二三百株大柳樹。當時王教頭來到莊前，敲門多時，只見一個莊客出來。王進放下擔兒，與他施禮。莊客道：「來俺莊上有甚事？」王進答道：「實不相瞞，小人母子二人貪行了些路程，錯過了宿店，來到這裏，前不巴村，後不巴店，欲投貴莊借宿一宵，明日早行，依例拜納房金。萬望周全方便！」莊客答道：「既是如此，且等一等，待我去問莊主太公。肯時但歇不妨。」王進又道：「大哥方便。」莊客入去多時，出來說道：「莊主太公教你兩個入來。」王進請娘下了馬。王進挑著擔兒，就牽了馬，隨莊客到裏面打麥場上，歇下擔兒，把馬拴在柳樹上。母子二人，直到草堂上來見太公。\n\n那太公年近六旬之上，鬚髮皆白，頭戴遮塵暖帽，身穿直縫寬衫，腰繫皂絲條，足穿熟皮靴。王進見了便拜。太公連忙道：「客人休拜。你們是行路的人，辛苦風霜，且坐一坐。」王進子母二敘禮罷，都坐定。太公問道：「你們是那裏來的？如何昏晚到此？」王進答道：「小人姓張，原是京師人。因爲消折了本錢，無可營用，要去延安府投奔親眷。不想今日路上貪行了程途，錯過了宿店。欲投貴莊借宿一宵。來日早行，房金依例拜納。」太公道：「不妨。如今世上人那個頂著房屋走哩。你母子二位敢未打火？」叫莊客安排飯來。\n\n沒多時，就廳上放開條桌子。莊客托出一桶盤，四樣菜蔬，一盤牛肉，鋪放桌上，先燙酒來篩下。太公道：「村落中無甚相待，休得見怪。」王進起身謝道：「小人母子無故相擾，此恩難報。」太公道：「休這般說，且請喫酒。」一面勸了五七杯酒，搬出飯來，二人喫了，收拾碗碟，太公起身引王進母子到客房裏安歇。王進告道：「小人母親騎的頭口，相煩寄養，草料望乞應付，一併拜酬。」太公道：「這個不妨。我家也有頭口騾馬，教莊客牽出後槽，一發喂養。」王進謝了，挑那擔兒到客房裏來。莊客點上燈火，一面提湯來洗了腳。太公自回裏面去了。王進母子二人謝了莊客，掩上房門，收拾歇息。\n\n次日，睡到天曉，不見起來。莊主太公來到客房前過，聽得王進老母在房裏聲喚。太公問道：「客官，天曉好起了？」王進聽得，慌忙出房來見太公，施禮說道：「小人起多時了。夜來多多攪擾，甚是不當。」太公問道：「誰人如此聲喚？」王進道：「實不相瞞太公說，老母鞍馬勞倦，昨夜心痛病發。」太公道：「即然如此，客人休要煩惱，教你老母且在老夫莊上住幾日。我有個醫心痛的方，叫莊客去縣裏撮藥來與你老母親喫。教他放心慢慢地將息。」王進謝了。"
    }
  ]
}