Spaces:
Sleeping
Sleeping
Rajan Sharma
commited on
Update prompt_templates.py
Browse files- prompt_templates.py +5 -4
prompt_templates.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
\
|
| 2 |
import json
|
| 3 |
from typing import Dict
|
|
|
|
| 4 |
|
| 5 |
DECISION_FRAME = """FRAME:
|
| 6 |
- SAFETY/RISK: crowding proxy; p95 boarding time; # critical waits; isolation/telemetry constraints.
|
|
@@ -22,9 +22,10 @@ EXEC_FRAME = """EXECUTIVE FRAME:
|
|
| 22 |
|
| 23 |
def build_system_preamble(snapshot: Dict, policy_context: str, computed_numbers: Dict, scenario_text: str = "", session_snips: str = "") -> str:
|
| 24 |
return f"""
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
|
|
|
| 28 |
|
| 29 |
Policies & SOP Excerpts:
|
| 30 |
{policy_context}
|
|
|
|
|
|
|
| 1 |
import json
|
| 2 |
from typing import Dict
|
| 3 |
+
from safety import POLICY_NOTICE
|
| 4 |
|
| 5 |
DECISION_FRAME = """FRAME:
|
| 6 |
- SAFETY/RISK: crowding proxy; p95 boarding time; # critical waits; isolation/telemetry constraints.
|
|
|
|
| 22 |
|
| 23 |
def build_system_preamble(snapshot: Dict, policy_context: str, computed_numbers: Dict, scenario_text: str = "", session_snips: str = "") -> str:
|
| 24 |
return f"""
|
| 25 |
+
{POLICY_NOTICE}
|
| 26 |
+
|
| 27 |
+
Use (a) the snapshot JSON, (b) policy excerpts, (c) computed numbers, and (d) uploaded/scenario evidence
|
| 28 |
+
to recommend next actions and provide structured estimates with tables, bullets, and assumptions. Cite specific policies where applicable.
|
| 29 |
|
| 30 |
Policies & SOP Excerpts:
|
| 31 |
{policy_context}
|