Spaces:
Runtime error
Runtime error
added rules files
Browse files
backend/data/attachments/Priority_Extraction_Rules.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"priority_rules": {
|
| 3 |
+
"is_prioritization_extraction": true,
|
| 4 |
+
"request_type_identification": {
|
| 5 |
+
"order": ["email_content", "document_content"],
|
| 6 |
+
"fallback": "document_content"
|
| 7 |
+
},
|
| 8 |
+
"numerical_field_extraction": {
|
| 9 |
+
"preferred_source": ["attachments"],
|
| 10 |
+
"fallback": "email_body"
|
| 11 |
+
},
|
| 12 |
+
"banking_numeric_keys": [
|
| 13 |
+
"loan_amount",
|
| 14 |
+
"customer_id",
|
| 15 |
+
"account_number",
|
| 16 |
+
"transaction_amount",
|
| 17 |
+
"balance",
|
| 18 |
+
"interest_rate",
|
| 19 |
+
"credit_limit",
|
| 20 |
+
"repayment_amount",
|
| 21 |
+
"mortgage_amount",
|
| 22 |
+
"fees",
|
| 23 |
+
"exchange_rate",
|
| 24 |
+
"deposit_amount",
|
| 25 |
+
"withdrawal_amount",
|
| 26 |
+
"savings_balance",
|
| 27 |
+
"overdraft_limit",
|
| 28 |
+
"annual_income",
|
| 29 |
+
"net_worth",
|
| 30 |
+
"investment_value",
|
| 31 |
+
"processing_fee",
|
| 32 |
+
"penalty_fee",
|
| 33 |
+
"service_charge",
|
| 34 |
+
"minimum_balance",
|
| 35 |
+
"maximum_withdrawal",
|
| 36 |
+
"credit_score",
|
| 37 |
+
"loan_term_years",
|
| 38 |
+
"monthly_interest",
|
| 39 |
+
"annual_percentage_rate",
|
| 40 |
+
"reward_points"
|
| 41 |
+
],
|
| 42 |
+
"classification_key_considerations": [
|
| 43 |
+
"If the email discusses adjusting lender shares or realigning facility distributions without changing the principal commitment, classify it as 'Adjustment'.",
|
| 44 |
+
"If the email explicitly requests an increase or decrease in the loan commitment, classify it as 'Commitment Change'.",
|
| 45 |
+
"If the email mentions financial movements, classify it under 'Money Movement'.",
|
| 46 |
+
"If the email thread or attachment contains the primary intent, use that as the basis for classification."
|
| 47 |
+
]
|
| 48 |
+
}
|
| 49 |
+
}
|