Abstract
Piping and Instrumentation Diagrams (P&IDs) are central to process engineering workflows, yet extracting information from them remains a tedious and time-consuming task. This work introduces ChatP&ID, a framework enabling natural-language interaction with smart P&IDs through Graph Retrieval-Augmented Generation (GraphRAG), to our knowledge, the first application and benchmark of GraphRAG to structured engineering diagrams. DEXPI-encoded P&IDs are transformed into structured knowledge graphs, enabling reliable, grounded querying by large language model (LLM) agents. Benchmarking across commercial LLM APIs demonstrates that graph-based representations improve response accuracy by 18% over raw image inputs and reduce token costs by 85% compared to directly ingesting smart P&ID files. Among the retrieval strategies evaluated, ContextRAG achieves the highest accuracy (91%) at only $0.004 per query using GPT-5-mini. For smaller open-source models, vector-based retrieval improves accuracy by up to 40%. ChatP&ID lays practical groundwork for AI-assisted process engineering tasks, including Hazard and Operability Studies (HAZOP)
| Original language | English |
|---|---|
| Article number | e70540 |
| Number of pages | 24 |
| Journal | AIChE Journal |
| Volume | 72 |
| Issue number | 10 |
| DOIs | |
| Publication status | Published - 2026 |
Keywords
- agentic-AI
- Graph-based Retrieval Augmented Generation (GraphRAG)
- knowledge graph
- large language model (LLM)
- multi-agent system (MAS)
- P&ID
Fingerprint
Dive into the research topics of 'GraphRAG for engineering diagrams: ChatP&ID enables LLM interaction with P&IDs'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver