Skip to main content
Loading navigation

Build a Bilingual BMS Alarm Triage and Translation Agent — implementation

Prompt source

implementation66 lines11 sectionsNo variables1 code block
## Build
Translate and classify real-time Building Management System alarms from Arabic and English into a unified standard. Triage critical mechanical failures for facility management rapid response using EnergyPlus epJSON schemas.

## User
MEP Operations Manager

## Workflow
1. Ingest live BMS alarm feeds containing mixed Arabic and English fault descriptions.
2. Map vendor-specific equipment tags and error codes to standardized EnergyPlus epJSON HVAC terminology.
3. Classify alarm severity based on system impact and occupant safety criteria.
4. Push translated and prioritized alerts to the facility management ticketing system.

## Interface
Two-column bilingual verification view with side-by-side Arabic and English active alarm records and dispatch actions.

## Data
Use simplified synthetic JSON records representing live BMS fault codes and mechanical alarm strings in Arabic and English.
Starter examples below are synthetic. They are not downloaded records.

## Source
[EnergyPlus](https://raw.githubusercontent.com/NREL/EnergyPlus/develop/README.md)
Applies EnergyPlus epJSON HVAC equipment schemas to map proprietary bilingual vendor alarm strings to standardized mechanical component terminology.

## Tools
anthropic-claude, pydantic, fastapi.
Claude provides superior Arabic-English technical translation and nuance extraction across MEP engineering terms.
Hosted Claude API for cross-lingual engineering term translation and structured schema mapping.

## Deliverables
Submit runnable source, pinned dependencies, setup commands, a working interface, example outputs, and a recorded end-to-end demo. Include tests and an action log.

## Acceptance
- Extracts equipment identifiers and operational anomalies from mixed Arabic and English live alarms.
- Maps technical jargon between Arabic (e.g. وحدة مناولة الهواء) and English (AHU) using epJSON nomenclature.
- Scores alarm severity based on impact on thermal load and mechanical failure risk.
- Exports a structured JSON alert payload ready for maintenance dispatch.

## Starter Examples
```json
[
  {
    "input": {
      "alarm_id": "ALM-991",
      "timestamp": "2023-11-01T08:00:00Z",
      "raw_text_ar": "توقف مفاجئ في مضخة المياه المبردة رقم 2 مع ارتفاع درجة حرارة المحرك",
      "raw_text_en": null
    },
    "expected_output": {
      "epjson_component": "Pump:VariableSpeed",
      "translated_en": "Sudden stop in chilled water pump #2 with high motor temperature",
      "severity": "CRITICAL",
      "action": "DISPATCH_TECHNICIAN",
      "record_type": "simplified synthetic app record"
    }
  },
  {
    "input": {
      "alarm_id": "ALM-992",
      "timestamp": "2023-11-01T08:05:00Z",
      "raw_text_ar": null,
      "raw_text_en": "VAV-05 supply air temp deviation +2C"
    },
    "expected_output": {
      "epjson_component": "AirTerminal:SingleDuct:VAV:Reheat",
      "translated_ar": "انحراف في درجة حرارة هواء التغذية VAV-05 بمقدار +2 مئوية",
      "severity": "LOW",
      "action": "LOG_ONLY",
      "record_type": "simplified synthetic app record"
    }
  }
]
```

## Safety
Advisory diagnostic tool only; final critical infrastructure shutdown decisions require human operational review.
Use mock external writes. Require human review before any real deployment.