Osprey Forge - User Guide
Overview
Osprey Forge is an AI-powered tool for extracting asset hierarchies from P&ID (Piping and Instrumentation Diagram) documents. It automates the detection of equipment, instruments, and their relationships, preparing data for import into PI Asset Framework.
Getting Started
1. Opening a Document in Forge
- Navigate to Documents page
- Locate your P&ID file (PDF format)
- Click the document to open it in the viewer
- In the top-left corner, click "Open in Osprey Forge"
- The Forge editor will load with your P&ID
Core Workflows
2. Extracting Text from P&IDs
For PDFs with Embedded Text:
- Click Extract dropdown → Embedded Text
- Text regions are automatically detected and highlighted in green rectangles
- Click any rectangle to view/edit the extracted text in the right panel
For Scanned/Image-Based PDFs:
- Click Extract dropdown → OCR (Optical Character Recognition)
- Wait for AI processing (may take 30-60 seconds)
- Text is extracted and highlighted in green rectangles
- Review low-confidence extractions using Review Extraction button
3. Defining and Detecting Symbols
Method 1: Manual Symbol Definition
- Double-click anywhere on the canvas to create a custom rectangle
- Resize the rectangle to frame your symbol of interest (e.g., an instrument bubble)
- Press keyboard shortcut to classify:
- I = Instrument (blue)
- E = Equipment (orange)
- O = Off-page Connector (purple)
- A = Annotation (gray)
Method 2: Detect Similar Symbols
- Select one or more classified rectangles (your template symbols)
- Click Detect dropdown → Detect Similar
- AI finds visually similar symbols across the page
- Review and adjust results
Method 3: Detect from Symbol Library
- First, build your library by selecting a symbol → Save to Library
- Name it (e.g., "Pressure Indicator PI") and set asset type
- Click Detect dropdown → Detect from Library
- Select which symbols to detect (e.g., all instruments)
- Set confidence threshold (0.7 recommended)
- Click Detect Selected
4. Automated Processing Workflow
For fastest results, use the Auto Process button:
- Click Auto Process (runs 4 steps automatically):
- Step 1: Detect embedded text
- Step 2: Detect all symbols from your library
- Step 3: Group text labels with nearby symbols
- Step 4: Remove unclassified text
- Results: Equipment and instruments with associated text labels, ready for export
5. Associating Instruments to Equipment
Multi-select items:
- Hold Ctrl and click to select 1 equipment + multiple instruments
- Click Associate button (appears in right panel)
- Instruments are now linked to the equipment
- Equipment shows solid border
- Click equipment to see all associated instruments
- Click instrument to see parent equipment
Edit associations:
- Click any associated item
- Use Remove button in the associations list
- Or click Clear Associations to unlink all
6. Mapping Instruments to PI Tags
Auto-Match (Recommended):
- Select equipment with associated instruments
- Click Auto-Map Instruments in right panel
- AI matches instrument names to PI tags using LLM
- Review confidence scores (green = high, yellow = medium, red = low)
Manual Tag Search:
- Click instrument tag input field → Search Tags
- Enter search criteria:
- Tag name (supports regex if enabled)
- Description
- Engineering units
- Point source
- Click Search
- Select matching tag from results table
Tag Search Options:
- Use Regex: Enable pattern matching (e.g.,
PI-10[0-9]{2}) - Case Sensitive: Exact case matching
- Hide SCAN=0: Filter out non-scanning tags
- Hide DQ Issues: Filter tags with data quality problems
- Logical AND: All criteria must match (vs. any criteria)
7. Setting Equipment Types and Attributes
- Click on any equipment rectangle
- In right panel, select Equipment Type from dropdown:
- Pump, Valve, Tank, Heat Exchanger, Compressor, etc.
- Equipment type determines which attributes appear for instruments:
- Pump: Discharge Pressure, Suction Pressure, Flow, Speed, Amps, etc.
- Heat Exchanger: Inlet Temp, Outlet Temp, Differential Pressure, etc.
- For each instrument, assign its attribute (e.g., "Discharge Pressure")
8. Grouping Text Highlights
Auto-Grouping:
- Click Group Text → Group Text Under Symbols
- Text near symbols is automatically associated
Manual Grouping:
- Select multiple text rectangles (Ctrl+Click)
- Click Manual Group button
- Text is combined into single rectangle
- Edit combined text if needed
Smart Grouping:
- Click Group Text → Group Overlapping
- AI groups text by proximity, alignment, and font similarity
9. Saving and Version Control
Save Annotations:
- Click Save button (top-right)
- Annotations saved with version number
- Unsaved changes indicator appears after edits
View Version History:
- Click View Version History
- See all saved versions with timestamps
- Click version to view (read-only)
- Revert to previous version if needed
10. Exporting Data
Export for PI Asset Framework:
- Click Export dropdown → Export Text Highlights
- Choose CSV format for PI AF import
- File includes:
- Equipment hierarchy
- Associated instruments
- Attribute mappings
- PI tag references
Export for JSON:
- Choose JSON format for custom integrations
- Includes all metadata and relationships
Advanced Features
Search & Navigation
Search Current Page:
- Enter text in search box (top-right)
- Click Search Page
- Matching rectangles pulse in red
- Use to find specific tags/equipment
Search All P&IDs:
- Click Search All P&IDs
- Search across entire document library
- Filter by current file or all files
- Click result to jump to that page/document
Review Extraction Quality
- Click Review Extraction (appears after text extraction)
- View all extractions sorted by confidence
- Filter Show Only Low Confidence (<70%)
- Edit text directly in review dialog
- Re-run OCR on low confidence items
- Click Focus on Canvas to locate item
- Save all changes at once
Symbol Library Management
- Click Symbol Library button
- View all saved symbols
- Filter by type (instrument/equipment/etc.)
- Search by name
- Delete unused symbols
- Use symbols for batch detection across multiple P&IDs
Canvas Controls
- Zoom: Mouse wheel or Zoom In/Out buttons
- Pan: Click and drag (or Ctrl+drag)
- Fit to Width: Auto-scale to fit horizontally
- Fit to Screen: Auto-scale to fit entire page
- Rotate: CW/CCW rotation for landscape drawings
- Reset: Clear all annotations and start over
Keyboard Shortcuts
- I - Mark as Instrument
- E - Mark as Equipment
- O - Mark as Off-page Connector
- A - Mark as Annotation
- Ctrl+Click - Multi-select
- Double-click - Create custom rectangle
- Enter - Trigger search