GraphRAG for Engineering Diagrams: ChatP&ID Enables LLM Interaction with P&IDs
Achmad Anggawirya Alimin, Artur M. Schweidtmann

TL;DR
ChatP&ID introduces a graph-based retrieval framework enabling cost-effective, accurate natural-language interaction with engineering diagrams like P&IDs, significantly reducing costs and improving reliability over raw image processing.
Contribution
This work presents GraphRAG for engineering diagrams, transforming smart P&IDs into knowledge graphs for improved LLM querying and reasoning, reducing costs and increasing accuracy.
Findings
GraphRAG improves accuracy by 18% over raw images.
Token costs are reduced by 85% with graph-based representations.
GPT-5-mini with ContextRAG achieves 91% accuracy at low cost.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Graph Neural Networks · Graph Theory and Algorithms · Multimodal Machine Learning Applications
