SHUBHAM KUMAR / CASEFILE
Portfolio All projects
FILE / ENGINEERING AICASE NO. 008 · SYNTHETIC DRAWINGS

P&ID Engineering-Document Intelligence

How do you ask a technical drawing a precise question and still know which revision, entity, and source region support the answer?

Revision-aware by design.

A small, testable service models synthetic P&ID sheets as connected engineering entities rather than a flat text corpus.

Graph entities
05
Typed entities in the synthetic revision demo
Revision changes
02
Added and removed instrument detected
Validation issue
01
Dangling connection flagged for review
Answers
Cited
Evidence is returned with narrow Q&A

See what changed. Keep the source.

These two authored drawings are entirely synthetic. The comparison changes one instrument tag while preserving the example process path.

Authored synthetic P&ID revision A showing a tank, pump, valve, exchanger, and pressure instrument PT-101
REV A Synthetic source sheet
Authored synthetic P&ID revision B with flow instrument FT-101 replacing pressure instrument PT-101
REV B Synthetic updated sheet
01 / EXTRACT

Typed entities

Identify equipment, lines, valves, instruments, and links while retaining document and revision metadata.

02 / VALIDATE

Engineering graph

Run transparent checks over connections and flag dangling endpoints rather than smoothing them over.

03 / COMPARE

Revision + evidence

Find added and removed entities, then answer narrow questions with traceable page-region evidence.

Test the plumbing around extraction.

The current scorecard validates deterministic behavior and evidence structure on a deliberately small synthetic set.

01 / CHANGE DETECTION

Removals count too.

The revision comparator checks both directions, so a deleted entity is not lost by considering only the newer drawing.

02 / GRAPH QUALITY

Flag broken connections.

A dangling endpoint is exposed as a validation issue for inspection rather than being silently accepted as a valid path.

03 / TRACEABILITY

Keep answers grounded.

Extracted items retain source evidence. Narrow questions can cite the underlying entity and uncertain questions can abstain.

Structure first. Recognition later.

The current prototype uses a deterministic source-layer adapter over authored SVG metadata so the graph, comparison, rules, and API can be tested without a commercial OCR service or model key.

  1. Synthetic sheets only. No client, employer, or confidential plant drawings are included.
  2. Not arbitrary OCR. This is not a claim of full symbol recognition on arbitrary scanned P&IDs.
  3. Not design approval. Rules are illustrative; production use needs project standards, calibrated extraction, governance, and human review.

Core model

Typed extraction records connected into an engineering graph.

Revision logic

Set-based changes, including entity additions and deletions, with reproducible regression tests.

Extension point

An OCR or multimodal adapter can be added later without replacing graph validation or evidence-aware API contracts.

ESC