Back to Prompt Library
implementation
Build the application
Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.
Linked challenge: Build an EnergyPlus Glazing epJSON Patch Generator
Format
Code-aware
Lines
82
Sections
11
Linked challenge
Build an EnergyPlus Glazing epJSON Patch Generator
Prompt source
Original prompt text with formatting preserved for inspection.
82 lines
11 sections
No variables
1 code block
## Build
Ingest baseline epJSON files to detect substandard glazing specifications. Generate schema-compliant epJSON parameter patches replacing old materials with high-performance low-emissivity specifications for regression testing.
## User
Building Envelope Performance Engineer
## Workflow
1. Upload an existing EnergyPlus epJSON building simulation model.
2. Parse FenestrationSurface:Detailed and WindowMaterial:SimpleGlazingSystem objects.
3. Formulate triple-pane low-emissivity glass upgrade JSON configurations.
4. Generate a validated epJSON patch artifact ready for integration.
## Interface
Split-view web console presenting original versus upgraded thermal envelope properties with interactive U-value sliders.
## Data
Use standard open EnergyPlus test files from the official EnergyPlus example suite in the public repository.
Starter examples below are synthetic. They are not downloaded records.
## Source
[EnergyPlus](https://raw.githubusercontent.com/NREL/EnergyPlus/develop/README.md)
Operates directly on the EnergyPlus epJSON input schema for Construction and glazing material objects.
## Tools
dspy, pydantic, fastapi.
DSPy compiles and optimizes prompts to generate valid epJSON parameters that conform strictly to EnergyPlus schema bounds.
Local or hosted language model tuned for structured schema synthesis and engineering reasoning.
## 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 all exterior FenestrationSurface:Detailed instances accurately.
- Replaces glazing thermal transmittance values above 2.8 W/m2-K with compliant specifications.
- Emits valid epJSON that parses cleanly against the EnergyPlus schema.
## Starter Examples
```json
[
{
"input": {
"model_version": "24.1",
"target_surface": "East_Window_Floor1",
"current_glazing": {
"name": "Single_Clear_Glass",
"u_factor": 5.8,
"solar_heat_gain_coefficient": 0.81
},
"retrofit_target_climate_zone": "Zone 5A"
},
"expected_output": {
"target_surface": "East_Window_Floor1",
"updated_material": "Triple_LowE_Argon",
"updated_u_factor": 1.1,
"updated_shgc": 0.35,
"epjson_patch": {
"WindowMaterial:SimpleGlazingSystem": {
"Triple_LowE_Argon": {
"u_factor": 1.1,
"solar_heat_gain_coefficient": 0.35
}
}
},
"status": "RETROFIT_APPLIED"
}
},
{
"input": {
"model_version": "24.1",
"target_surface": "North_Window_Floor2",
"current_glazing": {
"name": "Existing_HighPerf_Double",
"u_factor": 1.3,
"solar_heat_gain_coefficient": 0.4
},
"retrofit_target_climate_zone": "Zone 5A"
},
"expected_output": {
"target_surface": "North_Window_Floor2",
"updated_material": "Existing_HighPerf_Double",
"updated_u_factor": 1.3,
"updated_shgc": 0.4,
"epjson_patch": {},
"status": "ALREADY_COMPLIANT"
}
}
]
```
## Safety
Thermal modifications are exported into a staging environment without overwriting baseline design models automatically.
Use mock external writes. Require human review before any real deployment.Adaptation plan
Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.
Keep stable
Hold the task contract and output shape stable so generated implementations remain comparable.
Tune next
Update libraries, interfaces, and environment assumptions to match the stack you actually run.
Verify after
Test failure handling, edge cases, and any code paths that depend on hidden context or secrets.