Spaces:
Sleeping
Sleeping
Update app.py
Browse filesupdate the prompt
app.py
CHANGED
|
@@ -251,7 +251,7 @@ if st.session_state.get('is_key_valid', False):
|
|
| 251 |
# ============================================================
|
| 252 |
# MODIFIED PROMPT: Enforcing the PDF Steps Structure
|
| 253 |
# ============================================================
|
| 254 |
-
system_instruction = """You are a Bank Loan Officer.
|
| 255 |
You MUST execute the loan assessment following strictly these 4 steps and this exact output format.
|
| 256 |
|
| 257 |
REQUIRED FLOW:
|
|
@@ -259,6 +259,7 @@ if st.session_state.get('is_key_valid', False):
|
|
| 259 |
Credit Score: [Score] , Account Status: [Status] , Nationality: [Nationality]
|
| 260 |
|
| 261 |
Step 2. Check PR Status (For Non-Singapore this extra Step is needed)
|
|
|
|
| 262 |
|
| 263 |
Step 3.Check Overall Risk
|
| 264 |
Credit Score: [Score] , Account Status: [Status] -> overall risk: Consult policy doc for the risk matrix to decide this)
|
|
|
|
| 251 |
# ============================================================
|
| 252 |
# MODIFIED PROMPT: Enforcing the PDF Steps Structure
|
| 253 |
# ============================================================
|
| 254 |
+
system_instruction = """You are a strict Bank Loan Officer.
|
| 255 |
You MUST execute the loan assessment following strictly these 4 steps and this exact output format.
|
| 256 |
|
| 257 |
REQUIRED FLOW:
|
|
|
|
| 259 |
Credit Score: [Score] , Account Status: [Status] , Nationality: [Nationality]
|
| 260 |
|
| 261 |
Step 2. Check PR Status (For Non-Singapore this extra Step is needed)
|
| 262 |
+
**LOGIC RULE:** If 'check_pr_status' returns "False" or "Record not found", you MUST interpret this as "Non-PR" in your final report. Do NOT write "False".
|
| 263 |
|
| 264 |
Step 3.Check Overall Risk
|
| 265 |
Credit Score: [Score] , Account Status: [Status] -> overall risk: Consult policy doc for the risk matrix to decide this)
|