How harshmohite777/analyzer-bom-extraction works
Drawing-to-BOM is a web application for extracting procurement and engineering data from PDF drawings, checking it against source text and rules, and supporting human review and export. The main path runs from upload or sample selection through PDF rendering/text extraction, model extraction, verification and checks, then saved results. The UI also supports drawing-page viewing and review actions. Source excerpts establish the route, pipeline, verification and audit responsibilities; several internal calls and UI features are only partially shown, so uncertain links are omitted.
Main entry points: main.py API routes · pipeline.py Run orchestration · app.js Review interface · pdf_utils.py PDF rendering
Components 15
Web interface
- Review interface
drawing-to-bom-demo/static/app.js - API routes
drawing-to-bom-demo/app/main.py
Drawing ingestion
- PDF and sample input
drawing-to-bom-demo/app/main.py - PDF rendering
drawing-to-bom-demo/app/pdf_utils.py - Text and OCR spans
drawing-to-bom-demo/app/pdf_utils.py
Extraction and checks
- Model extraction
drawing-to-bom-demo/app/extract.py - Source verification
drawing-to-bom-demo/app/checks.py - Integrity checks
drawing-to-bom-demo/app/checks.py
Runs and review
- Run orchestration
drawing-to-bom-demo/app/pipeline.py - Human review
drawing-to-bom-demo/app/pipeline.py - Run results
drawing-to-bom-demo/app/audit.py - Audit log
drawing-to-bom-demo/app/audit.py - CSV and JSON export
drawing-to-bom-demo/app/main.py
Other components
- Engineer
- AI model service
Connections 20
- Engineer → Review interface: uses
drawing-to-bom-demo/static/app.js - Review interface → API routes: requests
drawing-to-bom-demo/static/app.js - API routes → PDF and sample input: accepts PDFs
drawing-to-bom-demo/app/main.py - API routes → Run orchestration: starts runs
drawing-to-bom-demo/app/main.py - Run orchestration → PDF rendering: renders pages
drawing-to-bom-demo/app/pipeline.py - Run orchestration → Text and OCR spans: extracts spans
drawing-to-bom-demo/app/pipeline.py - PDF rendering → Text and OCR spans: provides pages
drawing-to-bom-demo/app/pdf_utils.py - Run orchestration → Model extraction: requests extraction
drawing-to-bom-demo/app/pipeline.py - Model extraction → AI model service: sends drawing data
drawing-to-bom-demo/app/extract.py - Run orchestration → Source verification: verifies fields
drawing-to-bom-demo/app/pipeline.py - Run orchestration → Integrity checks: runs checks
drawing-to-bom-demo/app/pipeline.py - API routes → Human review: applies review
drawing-to-bom-demo/app/main.py - Human review → Integrity checks: reevaluates results
drawing-to-bom-demo/app/pipeline.py - Run orchestration → Run results: saves results
drawing-to-bom-demo/app/pipeline.py - Run orchestration → Audit log: records events
drawing-to-bom-demo/app/pipeline.py - API routes → Run results: loads results
drawing-to-bom-demo/app/main.py - API routes → Audit log: reads events
drawing-to-bom-demo/app/main.py - API routes → CSV and JSON export: exports data
drawing-to-bom-demo/app/main.py - Review interface → API routes: uploads PDF
drawing-to-bom-demo/static/app.js - API routes → Review interface: returns run data