Build a Bilingual Chiller Refrigerant Leak Safety Packager — implementation
Linked challenge: Build a Bilingual Chiller Refrigerant Leak Safety Packager
Prompt source
implementation76 lines11 sectionsNo variables1 code block
## Build
Extract cooling plant sensor anomalies and Arabic-English safety logs to classify refrigerant leak severity. Synthesize bilingual environmental safety incident reports to ensure compliance and support audit-ready engineering sign-offs.
## User
Facilities Asset Manager
## Workflow
1. Ingest bilingual safety logs and Building Management System (BMS) refrigerant pressure telemetry.
2. Extract safety interventions, leak locations, and severity indicators across Arabic and English text using an LLM.
3. Cross-reference asserted leak repair locations against BMS pressure recovery telemetry to verify mitigation success.
4. Synthesize audit-ready bilingual environmental compliance packets for safety engineering sign-off.
## Interface
A split-pane web review interface showing aligned Arabic-English source safety logs, BMS pressure telemetry charts, and compliance report export actions.
## Data
Construct synthetic normalized JSON documents modeling bilingual Arabic-English chiller leak logs and CSV-based pressure and concentration sensor timeseries.
Starter examples below are synthetic. They are not downloaded records.
## Source
[EnergyPlus](https://raw.githubusercontent.com/NREL/EnergyPlus/develop/README.md)
Leverages EnergyPlus schema concepts for chiller operational parameters to validate modeled pressure recovery after reported refrigerant leaks.
## Tools
pydantic-ai, fastapi, jinja2.
Enforces type-safe validation over bilingual entity extractions and structured safety incident verification schemas.
Hosted or local multilingual LLM capable of robust Arabic-English code-switching and translating technical HVAC safety terms.
## 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
- Harmonizes bilingual technical terms such as 'refrigerant leak' into standard schema fields.
- Flags safety incident reports where asserted leak repair is not corroborated by BMS pressure stabilization.
- Outputs verified bilingual safety packet containing Arabic and English executive summaries.
- Maintains an audit log requiring safety supervisor approval before closing incident tickets.
## Starter Examples
```json
[
{
"input": {
"ticket_id": "INC-001",
"text_ar": "تم إصلاح تسرب غاز التبريد في المبرد رقم 1 واستقر الضغط.",
"text_en": "Refrigerant leak repaired on Chiller 1 and pressure stabilized.",
"telemetry_pre_kpa": 150,
"telemetry_post_kpa": 350,
"target_kpa": 350
},
"expected_output": {
"ticket_id": "INC-001",
"status": "VERIFIED",
"leak_status": "REPAIRED",
"summary_bilingual": {
"en": "Chiller 1 leak repair verified by pressure recovery.",
"ar": "تم التحقق من إصلاح تسرب المبرد 1 من خلال استعادة الضغط."
},
"note": "Simplified synthetic app record."
}
},
{
"input": {
"ticket_id": "INC-002",
"text_ar": "تم استبدال الصمام ولكن الضغط لا يزال منخفضا.",
"text_en": "Valve replaced but pressure remains low.",
"telemetry_pre_kpa": 180,
"telemetry_post_kpa": 185,
"target_kpa": 350
},
"expected_output": {
"ticket_id": "INC-002",
"status": "INVESTIGATION_REQUIRED",
"leak_status": "PERSISTENT",
"summary_bilingual": {
"en": "Discrepancy: Persistent low pressure indicates leak is not fully mitigated.",
"ar": "تعارض: يشير الضغط المنخفض المستمر إلى أن التسرب لم يتم التخفيف منه بالكامل."
},
"note": "Simplified synthetic app record."
}
}
]
```
## Safety
Read-only audit tool for incident records; does not write changes to live Building Management Systems or control physical valves.
Use mock external writes. Require human review before any real deployment.