mlsanityData to 7 Oct 2026

GraphRAG for Engineering Diagrams: ChatP&ID Enables LLM Interaction with P&IDs

arXiv 2603.22528 ↗First posted 23 Mar 2026cs.IR cs.AIcited by 1

On the map: Retrieval-augmented generation → Knowledge-graph and structured-knowledge RAG

Abstract (arXiv)

Large Language Models (LLMs) combined with Retrieval-Augmented Generation (RAG) and knowledge graphs offer new opportunities for interacting with engineering diagrams such as Piping and Instrumentation Diagrams (P&IDs). However, directly processing raw images or smart P&ID files with LLMs is often costly, inefficient, and prone to hallucinations. This work introduces ChatP&ID, an agentic framework that enables grounded and cost-effective natural-language interaction with P&IDs using Graph Retrieval-Augmented Generation (GraphRAG), a paradigm we refer to as GraphRAG for engineering diagrams. Smart P&IDs encoded in the DEXPI standard are transformed into structured knowledge graphs, which serve as the basis for graph-based retrieval and reasoning by LLM agents. This approach enables reliable querying of engineering diagrams while significantly reducing computational cost. Benchmarking across commercial LLM APIs (OpenAI, Anthropic) demonstrates that graph-based representations improve accuracy by 18% over raw image inputs and reduce token costs by 85% compared to directly ingesting smart P&ID files. While small open-source models still struggle to interpret knowledge graph formats and structured engineering data, integrating them with VectorRAG and PathRAG improves response accuracy by up to 40%. Notably, GPT-5-mini combined with ContextRAG achieves 91% accuracy at a cost of only 0.004 per task. The resulting ChatP&ID interface enables intuitive natural-language interaction with complex engineering diagrams and lays the groundwork for AI-assisted process engineering tasks such as Hazard and Operability Studies (HAZOP) and multi-agent analysis.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Knowledge-graph and structured-knowledge RAG, one of 15 directions in Retrieval-augmented generation. Builds on 30 of its 61 references that are in the map. First posted on arXiv 23 Mar 2026.

Builds on

30 of 61 references.

Closest ancestors · 2

Same direction, newest first

  1. 2025Multi-Agent GraphRAG: A Text-to-Cypher Framework for Labeled Property Graphs11 Nov
  2. 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarization24 Apr

Other references · 28

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  5. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  6. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  7. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  8. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
  9. 2024A Survey on LLM-as-a-Judgecited by 1,384
  10. 2024JudgeBench: A Benchmark for Evaluating LLM-based Judgescited by 294
  11. 2018A Survey on Deep Learning for Named Entity Recognitioncited by 281
  12. 2023Using an LLM to Help With Code Understandingcited by 222
16 more
  1. 2025A Survey of Frontiers in LLM Reasoning: Inference Scaling, Learning to Reason, and Agentic Systemscited by 108
  2. 2024In Search of Needles in a 11M Haystack: Recurrent Memory Finds What LLMs Misscited by 36
  3. 2024GIVE: Structured Reasoning of Large Language Models with Knowledge Graph Inspired Veracity Extrapolationcited by 13
  4. 2024An Agentic Approach to Automatic Creation of P&ID Diagrams from Natural Language Descriptionscited by 12
  5. 2025OckBench: Measuring the Efficiency of LLM Reasoningcited by 10
  6. 2025Multi-agent systems for chemical engineering: A review and perspectivecited by 9
  7. 2025Deep Semantic Graph Learning via LLM based Node Enhancementcited by 8
  8. 2025SAGE: A Realistic Benchmark for Semantic Understandingcited by 6
  9. 2025The Massive Legal Embedding Benchmark (MLEB)cited by 6
  10. 2024Graph-to-SFILES: Control structure prediction from process topologies using generative artificial intelligencecited by 5
  11. 2025Talking like Piping and Instrumentation Diagrams (P&IDs)cited by 5
  12. 2026Do Chatbot LLMs Talk Too Much? The YapBench Benchmarkcited by 5
  13. 2023Empirical assessment of ChatGPT's answering capabilities in natural science and engineeringcited by 4
  14. 2025Engineering RAG Systems for Real-World Applications: Design, Development, and Evaluationcited by 3
  15. 2025SEA-BED: How Do Embedding Models Represent Southeast Asian Languages?cited by 2
  16. 2025Rule-based autocorrection of Piping and Instrumentation Diagrams (P&IDs) on graphscited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Integrating Graphs, Large Language Models, and Agents: Reasoning and Retrieval
  2. 2024LEGO-GraphRAG: Modularizing Graph-based Retrieval-Augmented Generation for Design Space Exploration
  3. 2026Knowledge Graphs as the Missing Data Layer for LLM-Based Industrial Asset Operations
  4. 2026Beyond Vector Similarity: A Structural Analysis of Graph-Augmented Retrieval for Industrial Knowledge Graphs
  5. 2024Graph Retrieval-Augmented Generation: A Survey
  6. 2025A Survey of Graph Retrieval-Augmented Generation for Customized Large Language Models
  7. 2025XGraphRAG: Interactive Visual Analysis for Graph-based Retrieval-Augmented Generation
  8. 2025When to use Graphs in RAG: A Comprehensive Analysis for Graph Retrieval-Augmented Generation