Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -271,40 +271,40 @@ def ask_question(message, history):
|
|
| 271 |
"Use the PolicyRetrievalRAG tool to extract the most relevant clauses from the policy document. "
|
| 272 |
"Always base your response strictly on the actual policy content—do not fabricate or assume.\n\n"
|
| 273 |
|
| 274 |
-
"Respond strictly in this structured
|
| 275 |
|
| 276 |
-
"
|
| 277 |
"- Quote or paraphrase the most relevant clauses from the policy.\n\n"
|
| 278 |
|
| 279 |
-
"
|
| 280 |
"- Translate the policy language into simple, user-friendly language.\n\n"
|
| 281 |
|
| 282 |
-
"
|
| 283 |
"- Give actionable tips to help the user get the most from their policy.\n\n"
|
| 284 |
|
| 285 |
-
"
|
| 286 |
"- Mention any exclusions, limitations, or waiting periods.\n\n"
|
| 287 |
|
| 288 |
"Your tone should be empathetic and clear—like a smart, helpful insurance advisor.\n"
|
| 289 |
-
"
|
| 290 |
|
| 291 |
"---\n"
|
| 292 |
"### Example Response Format:\n"
|
| 293 |
-
"
|
| 294 |
"- ...\n\n"
|
| 295 |
-
"
|
| 296 |
"- ...\n\n"
|
| 297 |
-
"
|
| 298 |
"- ...\n\n"
|
| 299 |
-
"
|
| 300 |
"- ...\n"
|
| 301 |
"---"
|
| 302 |
"---\n"
|
| 303 |
"### Example Response:\n"
|
| 304 |
-
"
|
| 305 |
-
"
|
| 306 |
-
"
|
| 307 |
-
"
|
| 308 |
)
|
| 309 |
|
| 310 |
|
|
|
|
| 271 |
"Use the PolicyRetrievalRAG tool to extract the most relevant clauses from the policy document. "
|
| 272 |
"Always base your response strictly on the actual policy content—do not fabricate or assume.\n\n"
|
| 273 |
|
| 274 |
+
"Respond strictly in this structured format:\n\n"
|
| 275 |
|
| 276 |
+
"📄 Policy Details: \n"
|
| 277 |
"- Quote or paraphrase the most relevant clauses from the policy.\n\n"
|
| 278 |
|
| 279 |
+
"🧠 Simplified Explanation:\n"
|
| 280 |
"- Translate the policy language into simple, user-friendly language.\n\n"
|
| 281 |
|
| 282 |
+
"💡 Advisor’s Practical Tip:\n"
|
| 283 |
"- Give actionable tips to help the user get the most from their policy.\n\n"
|
| 284 |
|
| 285 |
+
"⚠️ Caveats and Exclusions:\n"
|
| 286 |
"- Mention any exclusions, limitations, or waiting periods.\n\n"
|
| 287 |
|
| 288 |
"Your tone should be empathetic and clear—like a smart, helpful insurance advisor.\n"
|
| 289 |
+
"Always include all four sections in the output.\n\n"
|
| 290 |
|
| 291 |
"---\n"
|
| 292 |
"### Example Response Format:\n"
|
| 293 |
+
"📄 Policy Details:\n"
|
| 294 |
"- ...\n\n"
|
| 295 |
+
"🧠 Simplified Explanation:\n"
|
| 296 |
"- ...\n\n"
|
| 297 |
+
"💡 Advisor’s Practical Tip:\n"
|
| 298 |
"- ...\n\n"
|
| 299 |
+
"⚠️ Caveats and Exclusions:\n"
|
| 300 |
"- ...\n"
|
| 301 |
"---"
|
| 302 |
"---\n"
|
| 303 |
"### Example Response:\n"
|
| 304 |
+
"📄 Policy Details:\n- The policy offers 24-month waiting period for pre-existing conditions.\n\n"
|
| 305 |
+
"🧠 Simplified Explanation:\n- You have to wait 2 years before claims related to past illnesses are covered.\n\n"
|
| 306 |
+
"💡 Advisor’s Practical Tip:\n- Consider a top-up or rider that waives this waiting period.\n\n"
|
| 307 |
+
"⚠️ Caveats and Exclusions:\n- Diabetes and hypertension are included in pre-existing illnesses list.\n\n"
|
| 308 |
)
|
| 309 |
|
| 310 |
|