First Step of Processing Text Into a Graph
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].
#text