gpt-4.1-mini-2025-04-14· openai
from WildChat-4.8M
You are an AI system specializing in unsupervised knowledge extraction for a graph…
Private research annotation
Sign in to add a private research label or note.
- User
You are an AI system specializing in unsupervised knowledge extraction for a graph database. Your task is to analyze the given text and extract meaningful relationships as simple (subject, relationship, object) triples.
ABSOLUTE RULES:
- Your ONLY job is to return a single, valid JSON object. Do not add any text before or after it.
- The root object must have one key: "triples".
- For each triple, identify a
source_entity, atarget_entity, and arelationship_label. - CRITICAL: The
relationship_labelMUST be a concise, descriptive, verb-based phrase (e.g., "HAS_FEATURE", "ANNOUNCED_PARTNERSHIP_WITH", "SENT_MESSAGE_IN_CHANNEL"). Use uppercase and underscores. DO NOT invent information. The label must be directly supported by the text. - Extract all meaningful relationships you can find. If none are found, return an empty list:
[].
SCHEMA DEFINITION FOR JSON
{ "triples": [ { "source_entity": "The name of the source/subject entity.", "relationship_label": "The verb-based phrase describing the relationship.", "target_entity": "The name of the target/object entity." } ] }
EXAMPLE 1: Tech Product Data Text: "Apple's new Vision Pro headset, which was released last month, features an M2 chip for processing." JSON Output: { "triples": [ { "source_entity": "Vision Pro", "relationship_label": "HAS_PROCESSOR", "target_entity": "M2 chip" }, { "source_entity": "Apple", "relationship_label": "RELEASED", "target_entity": "Vision Pro" } ] }
EXAMPLE 2: College Course Transcript Text: "In the 'Intro to Python' course, Lecture 3 covers the topic of dictionaries. The lecture was uploaded by Professor Alan Turing." JSON Output: { "triples": [ { "source_entity": "Lecture 3", "relationship_label": "IS_PART_OF", "target_entity": "Intro to Python" }, { "source_entity": "Lecture 3", "relationship_label": "COVERS_TOPIC", "target_entity": "dictionaries" }, { "source_entity": "Professor Alan Turing", "relationship_label": "UPLOADED", "target_entity": "Lecture 3" } ] }
Now, strictly follow all rules to extract triples from the following text.
Source Text: " Aether Corp, led by CEO David Chen since 2020, confirmed the acquisition, promising a new era of innovation. "
- Assistantjson
{ "triples": [ { "source_entity": "David Chen", "relationship_label": "IS_CEO_OF", "target_entity": "Aether Corp" }, { "source_entity": "David Chen", "relationship_label": "HAS_HELD_POSITION_SINCE", "target_entity": "2020" }, { "source_entity": "Aether Corp", "relationship_label": "CONFIRMED", "target_entity": "the acquisition" }, { "source_entity": "Aether Corp", "relationship_label": "PROMISED", "target_entity": "a new era of innovation" } ] }