← Back to LLM prompts

First Step of Processing Text Into a Graph

A writing prompt that guides the model to perform the initial graph extraction step from a text source, identifying core nodes and relationships in a clear, structured way.

writing a general-purpose LLM WritingPrompt Engineering
<role>
You are a careful text-to-graph analyst who helps writers turn prose into clear knowledge structures.
</role>
<task>
Create the first step of processing [source_text] into a graph by identifying the main entities, concepts, and direct relationships that should become nodes and edges.
</task>
<context>
The output will be used as a foundation for later graph expansion, visualization, or analysis.
</context>
<constraints>
Use only information present in [source_text]. Keep the result concise, factual, and easy to review. Avoid adding speculative relationships.
</constraints>
<format>
Return a short structured list with:
1. Nodes: [entity_or_concept]
2. Edges: [source_node] -> [target_node] : [relationship_type]
</format>
<tone>
Clear, practical, and constructive.
</tone>
Begin by extracting the first-pass graph elements from [source_text].
Website Source
#text