You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
30 KiB
24 lines
30 KiB
2 weeks ago
|
{
|
||
|
"default": {
|
||
|
"a2c01a7e04aa9c4b6649e944bf10cbad": {
|
||
|
"return": "(\"entity\"<|>\"FeO\"<|>\"category\"<|>\"Iron(II) oxide, a chemical compound involved in the reaction with nitric acid.\")##\n(\"entity\"<|>\"HNO3\"<|>\"category\"<|>\"Nitric acid, a strong acid used in the reaction with iron(II) oxide.\")##\n(\"entity\"<|>\"Fe(NO3)3\"<|>\"category\"<|>\"Iron(III) nitrate, a product of the reaction between iron(II) oxide and nitric acid.\")##\n(\"entity\"<|>\"H2O\"<|>\"category\"<|>\"Water, a byproduct in both chemical reactions described.\")##\n(\"entity\"<|>\"NO2\"<|>\"category\"<|>\"Nitrogen dioxide, a gaseous byproduct of the reaction between iron(II) oxide and nitric acid.\")##\n(\"entity\"<|>\"H2\"<|>\"category\"<|>\"Hydrogen gas, a reactant in the combustion reaction with oxygen.\")##\n(\"entity\"<|>\"O2\"<|>\"category\"<|>\"Oxygen gas, a reactant in the combustion reaction with hydrogen.\")##\n(\"relationship\"<|>\"FeO\"<|>\"HNO3\"<|>\"Iron(II) oxide reacts with nitric acid to produce iron(III) nitrate, water, and nitrogen dioxide.\"<|>\"chemical reaction, acid-base\"<|>9)##\n(\"relationship\"<|>\"H2\"<|>\"O2\"<|>\"Hydrogen gas combusts with oxygen gas to produce water.\"<|>\"combustion, synthesis\"<|>10)##\n(\"content_keywords\"<|>\"chemical reactions, equations, chemistry, oxidation\")<|COMPLETE|>",
|
||
|
"cache_type": "extract",
|
||
|
"chunk_id": "chunk-7a1c5d06c754b1ae3ec624417caf8cc8",
|
||
|
"embedding": null,
|
||
|
"embedding_shape": null,
|
||
|
"embedding_min": null,
|
||
|
"embedding_max": null,
|
||
|
"original_prompt": "---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\"<|><entity_name><|><entity_type><|><entity_description>)\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\"<|><source_entity><|><target_entity><|><relationship_description><|><relationship_keywords><|><relationship_strength>)\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\"<|><high_level_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 implicatio
|
||
|
},
|
||
|
"16d3a56f090b8840e460730c7d9da7c9": {
|
||
|
"return": "(\"entity\"<|>\"问题1\"<|>\"event\"<|>\"Question 1 describes a chemical reaction between iron(II) oxide and nitric acid.\")##\n(\"entity\"<|>\"氧化铁\"<|>\"category\"<|>\"Iron(II) oxide (FeO), a reactant in the chemical reaction described in Question 1.\")##\n(\"entity\"<|>\"硝酸\"<|>\"category\"<|>\"Nitric acid (HNO₃), a reactant in the chemical reaction described in Question 1.\")##\n(\"entity\"<|>\"加热\"<|>\"event\"<|>\"Heating is the condition required for the reaction between iron(II) oxide and nitric acid.\")##\n(\"entity\"<|>\"硝酸铁\"<|>\"category\"<|>\"Iron(III) nitrate (Fe(NO₃)₃), a product of the reaction in Question 1.\")##\n(\"entity\"<|>\"水\"<|>\"category\"<|>\"Water (H₂O), a byproduct in both chemical reactions described.\")##\n(\"entity\"<|>\"二氧化氮\"<|>\"category\"<|>\"Nitrogen dioxide (NO₂), a gaseous byproduct in Question 1's reaction.\")##\n(\"entity\"<|>\"问题2\"<|>\"event\"<|>\"Question 2 describes the combustion reaction of hydrogen and oxygen.\")##\n(\"entity\"<|>\"氢气\"<|>\"category\"<|>\"Hydrogen gas (H₂), a reactant in the combustion reaction described in Question 2.\")##\n(\"entity\"<|>\"氧气\"<|>\"category\"<|>\"Oxygen gas (O₂), a reactant in the combustion reaction described in Question 2.\")##\n(\"entity\"<|>\"问题3\"<|>\"event\"<|>\"Question 3 indicates an image file is present in the document.\")##\n(\"relationship\"<|>\"氧化铁\"<|>\"硝酸\"<|>\"Iron(II) oxide reacts with nitric acid under heating to produce iron(III) nitrate, water, and nitrogen dioxide.\"<|>\"chemical reaction, acid-base\"<|>9)##\n(\"relationship\"<|>\"氢气\"<|>\"氧气\"<|>\"Hydrogen gas combusts with oxygen gas to produce water.\"<|>\"combustion, synthesis\"<|>10)##\n(\"relationship\"<|>\"问题1\"<|>\"氧化铁\"<|>\"Question 1 describes the reaction involving iron(II) oxide.\"<|>\"chemical equation, problem statement\"<|>8)##\n(\"relationship\"<|>\"问题1\"<|>\"硝酸\"<|>\"Question 1 describes the reaction involving nitric acid.\"<|>\"chemical equation, problem statement\"<|>8)##\n(\"relationship\"<|>\"问题2\"<|>\"氢气\"<|>\"Question 2 describes the reaction involving hydrogen gas.\"<|>\"chemical equation, problem statement\"<|>8)##\n(\"relationship\"<|>\"问题2\"<|>\"氧气\"<|>\"Question 2 describes the reaction involving oxygen gas.\"<|>\"chemical equation, problem statement\"<|>8)##\n(\"content_keywords\"<|>\"chemical reactions, equations, chemistry, oxidation, combustion\")<|COMPLETE|>",
|
||
|
"cache_type": "extract",
|
||
|
"chunk_id": "chunk-7a1c5d06c754b1ae3ec624417caf8cc8",
|
||
|
"embedding": null,
|
||
|
"embedding_shape": null,
|
||
|
"embedding_min": null,
|
||
|
"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\\\"<|><entity_name><|><entity_type><|><entity_description>)\\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\\\"<|><source_entity><|><target_entity><|><relationship_description><|><relationship_keywords><|><relationship_strength>)\\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\\\"<|><high_level_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 t
|
||
|
}
|
||
|
}
|
||
|
}
|