Knowledge Graph Extraction JSON
Overview
Extract central entities, descriptions, and relationships from a document as a knowledge graph in JSON.
Use cases
Prompt
Copied 0
Extract a knowledge graph from the document below.
<document>
<<<paste text>>>
</document>
Return ONLY valid JSON:
{
"entities": [
{"name": "string", "type": "PERSON|ORGANIZATION|LOCATION|EVENT|ARTIFACT", "description": "string"}
],
"relations": [
{"source": "string", "predicate": "string", "target": "string"}
]
}
Rules:
- Extract only entities central to what this document is about — skip incidental mentions.
- Every relation must connect two entities you extracted.
- Do not invent facts.Can AI?
- Extract a knowledge graph from a document as JSONPaste into a general LLM and extract central entities, descriptions, and relationships from a document as a knowledg…