Skip to content

What makes prompts a graph: necessary and sufficient conditions for prompt graph engineering

Jul 2026 · arXiv.org · Vol abs/2607.27578 · 1 citation · 61 references
Computer Science

TL;DR

This work proposes a constitutive definition of prompt graph engineering, state its four conditions, and operationalize them as an inclusion and exclusion test, and reconstructs the genealogy of the idea, from dataflow graphs and build systems, through prompt chaining and the thought topologies.

Abstract

Prompts stopped being isolated strings some time ago. In real systems, one model call feeds another, retrieval interleaves with generation, routers branch, and aggregators merge parallel results. Practice converged on a single structure to hold this together: the graph. Frameworks such as LangGraph, DSPy, and Prompt Flow expose it openly, and research systems already optimize it automatically. The vocabulary, however, lags behind. Graph names, variously, a reasoning topology inside one sampling strategy, a multi-agent conversation, or an orchestration artifact, while prompt engineering still evokes writing one good string. What is missing is a reference definition treating prompts as nodes of an explicit, executable, improvable graph. We build that definition through conceptual analysis over sources with persistent identifiers, complemented by primary grey literature. We reconstruct the genealogy of the idea, from dataflow graphs and build systems, through prompt chaining and the thought topologies (chain, tree, graph), to graphs compiled and optimized as artifacts. We then propose a constitutive definition of prompt graph engineering, state its four conditions (explicit structure, separation between structure and prompt content, executable semantics, and the graph as a first-class engineering artifact), and operationalize them as an inclusion and exclusion test. We draw the boundary against six neighboring concepts and apply the test to six real systems (LangGraph, DSPy, Prompt Flow, AutoGen, CrewAI, and Claude Code subagents); it includes and excludes consistently. We close with a research agenda organized along four design tension axes. The contribution is an operational definition and a shared vocabulary for a practice that industry already exercises daily without naming precisely.

View source

Similar papers

Open access Sep 2026

A framework for efficient and secure LLM agency: a case for the GraphQL paradigm

It is argued that GraphQL constitutes a principled, testable alternative to function calling for agentic systems, combining lower cost, stronger safety, and improved cognitive robustness.

Viktor Zhakhalov · 0 citations
#artificial intelligence Preprint Sep 2026

Grounded and Faithful P&ID Reasoning: Constraining Vision-Language Models with Recovered Evidence Graphs

Graph-Grounded Harness (The authors') recovers an explicit graph of the drawing---its symbols, the process connections between them, and the tags that name them---and then requires the model to answer only by querying that graph through seven read-only operators, so a topology claim is returned only when it cites the q...

P. Gadekar, Sagar Srinivas Sakhinana, Venkataramana Runkana · 0 citations
Preprint Aug 2026

Towards Researcher Agents for Knowledge-Graph Question Answering

This work presents an agentic text-to-SPARQL system that goes one step beyond static tool-using agents: a researcher agent that, after each round of inference on a validation set, proposes and tests changes to its own prompts, rules, and tool-orchestration code.

Tommaso Soru, Abdulsobur Oyewale · 0 citations
Preprint Aug 2026

Schema-Agnostic Graph Reasoning Agent for Hybrid Knowledge Graphs

GRA is presented, a Graph Reasoning Agent that explores hybrid knowledge graphs, whose nodes are either textual concepts or relational tables, with seven generic tools, discovering everything domain-specific at run time.

M. Dragić, Ruben Ifrah, Alexandre Rio · 0 citations
Book Open access Sep 2026

Demonstrating SAGE: A Dataflow-Native Framework for Modular, Controllable, and Transparent LLM-Augmented Reasoning

This demo presents SAGE as a pipeline-native runtime system and demonstrates it through an OPC-facing control plane and includes a compact distributed comparison against a LangChain RPC baseline over a shared 15-workload RAG suite, where SAGE nearly doubles full-RAG throughput under matched 8-node settings.

Jun Liu, Shu-Hao Zhang · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.