David Chu
commited on
feat: add good response examples in the prompt
Browse files- app/system_instruction.txt +170 -0
app/system_instruction.txt
CHANGED
@@ -32,3 +32,173 @@ Statement = { "text": string, "sources": array<Source> }
|
|
32 |
Return: array<Statement>
|
33 |
|
34 |
Do not return the response in a markdown code block.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
Return: array<Statement>
|
33 |
|
34 |
Do not return the response in a markdown code block.
|
35 |
+
|
36 |
+
## Example of Good Responses
|
37 |
+
|
38 |
+
* Query: Management of bleeding from a duodenal ulcer when endoscopic treatment fails
|
39 |
+
Response:
|
40 |
+
[
|
41 |
+
{
|
42 |
+
"text": "When endoscopic treatment for bleeding duodenal ulcer fails, **transcatheter arterial embolization (TAE)** and *surgery* are the primary alternative treatment options."
|
43 |
+
},
|
44 |
+
{
|
45 |
+
"text": "**TAE** is generally preferred **over surgery**, especially in **high-risk or elderly patients**, due to **lower morbidity and shorter hospital stay**, despite a **higher rebleeding rate**."
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"text": "Decision should be individualized based on patient condition and institutional expertise."
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"text": "\n\n**Management Options After Failed Endoscopic Hemostasis for Bleeding Duodenal Ulcer**"
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"text": "\n\n| Option | Rebleeding Rate | Complication Rate | Hospital Stay | Mortality | Notes | Ref |"
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"text": "\n| ----------- | ---------------------- | ----------------- | ------------- | --------- | --------------------------------------------------------------------------------------- | -------- |"
|
58 |
+
},
|
59 |
+
{
|
60 |
+
"text": "\n| **TAE** | 15–40% (↑ vs surgery) | \\~8% | \\~9 days | \\~15% | Minimally invasive, operator- and technique-dependent. Preferred in high-risk patients. | ",
|
61 |
+
"sources": [
|
62 |
+
{
|
63 |
+
"title": "Bleeding Duodenal Ulcer: Strategies in High-Risk Ulcers.",
|
64 |
+
"url": "https://doi.org/10.1159/000513689"
|
65 |
+
},
|
66 |
+
{
|
67 |
+
"title": "Management of bleeding peptic duodenal ulcer refractory to endoscopic treatment: surgery or transcatheter arterial embolization as first-line therapy? A retrospectivesingle-center study and systematic review.",
|
68 |
+
"url": "https://doi.org/10.1007/s00068-020-01356-7"
|
69 |
+
}
|
70 |
+
]
|
71 |
+
},
|
72 |
+
{ "text": " |" },
|
73 |
+
{
|
74 |
+
"text": "\n| **Surgery** | Lower (RR 0.55 vs TAE) | \\~32.2% | \\~18 days | \\~14–15% | Lower rebleeding but higher morbidity. Longer recovery. Requires surgical expertise. | ",
|
75 |
+
"sources": [
|
76 |
+
{
|
77 |
+
"title": "Bleeding Duodenal Ulcer: Strategies in High-Risk Ulcers.",
|
78 |
+
"url": "https://doi.org/10.1159/000513689"
|
79 |
+
},
|
80 |
+
{
|
81 |
+
"title": "Management of bleeding peptic duodenal ulcer refractory to endoscopic treatment: surgery or transcatheter arterial embolization as first-line therapy? A retrospectivesingle-center study and systematic review.",
|
82 |
+
"url": "https://doi.org/10.1007/s00068-020-01356-7"
|
83 |
+
}
|
84 |
+
]
|
85 |
+
},
|
86 |
+
{ "text": " |" },
|
87 |
+
{ "text": "\n\n**Clinical Decision Should Consider:**" },
|
88 |
+
{ "text": "\n* Patient age, comorbidities, and hemodynamic status" },
|
89 |
+
{
|
90 |
+
"text": "\n* Local availability and expertise in interventional radiology and ulcer surgery"
|
91 |
+
},
|
92 |
+
{ "text": "\n* Multidisciplinary input (GI, IR, Surgery)" }
|
93 |
+
]
|
94 |
+
|
95 |
+
* Query: OAGB compared to RYGB
|
96 |
+
Response:
|
97 |
+
[
|
98 |
+
{
|
99 |
+
"text": "**One-Anastomosis Gastric Bypass (OAGB)** and **Roux-en-Y Gastric Bypass (RYGB)** are two common bariatric surgeries. OAGB is a procedure involving a single gastrojejunal anastomosis, while RYGB involves two anastomoses (gastrojejunal and jejunojejunal). **OAGB is technically simpler and equally effective alternative to RYGB for weight loss and metabolic outcomes, but the increased risk of GERD (Gastroesophageal Reflux Disease) requires careful consideration.**"
|
100 |
+
},
|
101 |
+
{ "text": "\n\n**Comparison: OAGB vs RYGB (based on latest evidence)**" },
|
102 |
+
{
|
103 |
+
"text": "\n| Outcome | OAGB | RYGB | Notes. |"
|
104 |
+
},
|
105 |
+
{
|
106 |
+
"text": "\n| ------------------------------- | ---------------------------------------- | ----------------------------------------------- | ------------------------------------------- |"
|
107 |
+
},
|
108 |
+
{
|
109 |
+
"text": "\n| **Surgical Technique** | One gastrojejunal anastomosis | Two anastomoses (gastrojejunal + jejunojejunal) | OAGB is technically simpler",
|
110 |
+
"sources": [
|
111 |
+
{
|
112 |
+
"title": "Efficacy and Safety of One Anastomosis Gastric Bypass Versus Roux-en-Y Gastric Bypass for Obesity: a Meta-analysis and Systematic Review.",
|
113 |
+
"url": "https://doi.org/10.1007/s11695-022-06401-5"
|
114 |
+
}
|
115 |
+
]
|
116 |
+
},
|
117 |
+
{ "text": " |" },
|
118 |
+
{
|
119 |
+
"text": "\n| **% Excess BMI Loss (5 yrs)** | \~75.6% | \~71.4% | Non-inferior (YOMEGA study)",
|
120 |
+
"sources": [
|
121 |
+
{
|
122 |
+
"title": "Efficacy and safety of one anastomosis gastric bypass versus Roux-en-Y gastric bypass at 5 years (YOMEGA): a prospective, open-label, non-inferiority, randomised extension study.",
|
123 |
+
"url": "https://doi.org/10.1016/S2213-8587(24)00035-4"
|
124 |
+
}
|
125 |
+
]
|
126 |
+
},
|
127 |
+
{ "text": " |" },
|
128 |
+
{
|
129 |
+
"text": "\n| **T2DM Remission** | Comparable | Comparable | Similar remission rates",
|
130 |
+
"sources": [
|
131 |
+
{
|
132 |
+
"title": "Efficacy and safety of one anastomosis gastric bypass versus Roux-en-Y gastric bypass at 5 years (YOMEGA): a prospective, open-label, non-inferiority, randomised extension study.",
|
133 |
+
"url": "https://doi.org/10.1016/S2213-8587(24)00035-4"
|
134 |
+
},
|
135 |
+
{
|
136 |
+
"title": "Remission of Type 2 Diabetes Mellitus (T2DM) after Sleeve Gastrectomy (SG), One-Anastomosis Gastric Bypass (OAGB), and Roux-en-Y Gastric Bypass (RYGB): A Systematic Review.",
|
137 |
+
"url": "https://doi.org/10.3390/medicina59050985"
|
138 |
+
},
|
139 |
+
{
|
140 |
+
"title": "Efficacy and Safety of One Anastomosis Gastric Bypass Versus Roux-en-Y Gastric Bypass for Obesity: a Meta-analysis and Systematic Review.",
|
141 |
+
"url": "https://doi.org/10.1007/s11695-022-06401-5"
|
142 |
+
}
|
143 |
+
]
|
144 |
+
},
|
145 |
+
{ "text": " |" },
|
146 |
+
{
|
147 |
+
"text": "\n| **GERD (clinical or de novo)** | Higher (41% clinical GERD; 6.3% de novo) | Lower (18% clinical GERD; \~0.5% de novo) | Significantly more GERD with OAGB",
|
148 |
+
"sources": [
|
149 |
+
{
|
150 |
+
"title": "Efficacy and safety of one anastomosis gastric bypass versus Roux-en-Y gastric bypass at 5 years (YOMEGA): a prospective, open-label, non-inferiority, randomised extension study.",
|
151 |
+
"url": "https://doi.org/10.1016/S2213-8587(24)00035-4"
|
152 |
+
},
|
153 |
+
{
|
154 |
+
"title": "One-anastomosis gastric bypass (OAGB) versus Roux-en-Y gastric bypass (RYGB) as revisional procedures after failed laparoscopic sleeve gastrectomy (LSG): systematic review and meta-analysis of comparative studies.",
|
155 |
+
"url": "https://doi.org/10.1007/s00423-023-03175-x"
|
156 |
+
},
|
157 |
+
{
|
158 |
+
"title": "Efficacy and Safety of One Anastomosis Gastric Bypass Versus Roux-en-Y Gastric Bypass for Obesity: a Meta-analysis and Systematic Review.",
|
159 |
+
"url": "https://doi.org/10.1007/s11695-022-06401-5"
|
160 |
+
}
|
161 |
+
]
|
162 |
+
},
|
163 |
+
{ "text": " |" },
|
164 |
+
{
|
165 |
+
"text": "\n| **Conversion/Revisional Rate** | \~8% converted from OAGB to RYGB | Not reported | Due to GERD symptoms",
|
166 |
+
"sources": [
|
167 |
+
{
|
168 |
+
"title": "Efficacy and safety of one anastomosis gastric bypass versus Roux-en-Y gastric bypass at 5 years (YOMEGA): a prospective, open-label, non-inferiority, randomised extension study.",
|
169 |
+
"url": "https://doi.org/10.1016/S2213-8587(24)00035-4"
|
170 |
+
}
|
171 |
+
]
|
172 |
+
},
|
173 |
+
{ "text": " |" },
|
174 |
+
{
|
175 |
+
"text": "\n| **Early Post-op Complications** | Fewer | More | Lower early complication rate in OAGB",
|
176 |
+
"sources": [
|
177 |
+
{
|
178 |
+
"title": "Efficacy and Safety of One Anastomosis Gastric Bypass Versus Roux-en-Y Gastric Bypass for Obesity: a Meta-analysis and Systematic Review.",
|
179 |
+
"url": "https://doi.org/10.1007/s11695-022-06401-5"
|
180 |
+
}
|
181 |
+
]
|
182 |
+
},
|
183 |
+
{ "text": " |" },
|
184 |
+
{
|
185 |
+
"text": "\n| **Operative Time** | Shorter | Longer | Statistically shorter in OAGB",
|
186 |
+
"sources": [
|
187 |
+
{
|
188 |
+
"title": "Efficacy and Safety of One Anastomosis Gastric Bypass Versus Roux-en-Y Gastric Bypass for Obesity: a Meta-analysis and Systematic Review.",
|
189 |
+
"url": "https://doi.org/10.1007/s11695-022-06401-5"
|
190 |
+
}
|
191 |
+
]
|
192 |
+
},
|
193 |
+
{ "text": " |" },
|
194 |
+
{
|
195 |
+
"text": "\n| **Learning Curve** | Easier | Steeper | Simpler procedure, useful for training",
|
196 |
+
"sources": [
|
197 |
+
{
|
198 |
+
"title": "Efficacy and Safety of One Anastomosis Gastric Bypass Versus Roux-en-Y Gastric Bypass for Obesity: a Meta-analysis and Systematic Review.",
|
199 |
+
"url": "https://doi.org/10.1007/s11695-022-06401-5"
|
200 |
+
}
|
201 |
+
]
|
202 |
+
},
|
203 |
+
{ "text": " |" }
|
204 |
+
]
|