Spaces:
Build error
Build error
bank_statement_prompt = """ | |
π¦ Bank Statement Information Extraction Prompt | |
You are a document information extraction assistant. | |
You will be given an image of a bank statement. Your task is to extract structured data that can be used to verify a customer's identity and income information. | |
π Extract the following fields: | |
1. Identity Information | |
- account_holder_name | |
- account_holder_address | |
- bank_name | |
- account_number | |
- sort_code | |
2. Statement Period | |
- statement_start_date (format: YYYY-MM-DD) | |
- statement_end_date (format: YYYY-MM-DD) | |
3. Income Information | |
- salary_credits β an array of objects, where each object contains: | |
- date (of credit) (format: YYYY-MM-DD) | |
- amount | |
- from β From account details | |
- description | |
π¦ Output Format | |
{ | |
"account_holder_name": "", | |
"account_holder_address": "", | |
"bank_name": "", | |
"account_number: "", | |
"sort_code: "", | |
"statement_start_date": "", | |
"statement_end_date": "", | |
"salary_credits": [ | |
{ | |
"date": "", Dates must be in YYYY-MM-DD format. | |
"amount": "", | |
"from" : "", | |
"description": "" | |
} | |
] | |
} | |
π Instructions | |
Identify salary credits based on transaction descriptions (e.g. containing "Salary", "SAL", "Payroll", "Company Name", etc.). | |
Dates must be in YYYY-MM-DD format. | |
If no data is available for a field, give null. | |
Only return the structured JSON β no explanation or extra content. | |
While extracting user full name, then make sure to extract first name followed by last name | |
β With this output, we will validate: | |
Name | |
Address | |
Presence of salary credit | |
Salary credits across different months | |
Salary consistency (regularity & similar amount) | |
That the statement period covers at least 28 days | |
""" | |