| Original Filename: | Mastercard_Corporate_statemement_March_24.pdf |
| Upload Date: | December 02, 2025 at 01:22 PM |
| Total Pages: | 6 |
| Processing Status: | Completed |
| Total Documents: | 3 |
| Credit Cards: | 2 |
| Bank Statements: | 1 |
Credit Card
98%Credit Card
95%Bank Statement
98%Bank Statement
98%Credit Card
95%Credit Card
95%{
"document_groups": [
{
"avg_confidence": 0.965,
"document_identifiers": {
"agreement_date": null,
"amount_financed": null,
"annual_interest_rate": null,
"invoice_date": null,
"invoice_number": null,
"loan_reference": null,
"loan_tenure": null,
"monthly_payment": null,
"monthly_payment_amount": null,
"mortgage_account_number": null,
"outstanding_balance": "-3,281.20",
"property_address": null,
"remaining_term_months": null,
"seller_name": null,
"statement_period": "03/29/2024 - 05/16/2024",
"total_amount": null
},
"document_type": "credit_card",
"end_page": 2,
"pages": [
{
"confidence_score": 0.98,
"document_type": "credit_card",
"features": {
"llm_based": {
"confidence": 0.98,
"features": {
"api_response_debug": {
"content_preview": "```json\n{\n \"document_type\": \"credit_card\",\n \"confidence\": 0.98,\n \"reasoning\": \"This is a Danske Bank Mastercard Corporate statement showing credit card transactions. Key indicators include: \u0027Mastercard Corporate\u0027 account type, billing period (03/29/2024 - 05/16/2024), multiple merchant transactions (Starbucks, UBER, IKEA, etc.), negative balances indicating credit card debt (-2,545.94 opening, -3,281.20 closing), amount withdrawn (10,633.81) and deposited (9,898.55), and typical credit card merchant names with transaction dates and amounts.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": \"-3,281.20\",\n \"statement_period\": \"03/29/2024 - 05/16/2024\",\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```",
"response_repr": "Message(id=\u0027msg_014qkAm9iBrxouVHqYLBRBkF\u0027, content=[TextBlock(citations=None, text=\u0027```json\\n{\\n \"document_type\": \"credit_card\",\\n \"confidence\": 0.98,\\n \"reasoning\": \"This is a Danske Bank Mastercard Corporate statement showing credit card transactions. Key indicators include: \\\u0027Mastercard Corporate\\\u0027 account type, billing period (03/29/2024 - 05/16/2024), multiple merchant transactions (Starbucks, UBER, IKEA, etc.), negative balances indicating credit card debt (-2,545.94 opening, -3,281.20 closing), amount withdrawn (10,633.81) and deposited (9,898.55), and typical credit card merchant names with transaction dates and amounts.\",\\n \"document_identifiers\": {\\n \"invoice_number\": null,\\n \"seller_name\": null,\\n \"invoice_date\": null,\\n \"total_amount\": null,\\n \"agreement_date\": null,\\n \"amount_financed\": null,\\n \"monthly_payment\": null,\\n \"loan_tenure\": null,\\n \"loan_reference\": null,\\n \"annual_interest_rate\": null,\\n \"outstanding_balance\": \"-3,281.20\",\\n \"statement_period\": \"03/29/2024 - 05/16/2024\",\\n \"mortgage_account_number\": null,\\n \"property_address\": null,\\n \"remaining_term_months\": null,\\n \"monthly_payment_amount\": null\\n }\\n}\\n```\u0027, type=\u0027text\u0027)], model=\u0027claude-sonnet-4-5-20250929\u0027, role=\u0027assistant\u0027, stop_reason=\u0027end_turn\u0027, stop_sequence=None, type=\u0027message\u0027, usage=Usage(cache_creation=CacheCreation(ephemeral_1h_input_tokens=0, ephemeral_5m_input_tokens=0), cache_creation_input_tokens=0, cache_read_input_tokens=0, input_tokens=1991, output_tokens=346, server_tool_use=None, service_tier=\u0027standard\u0027))"
},
"document_identifiers": {
"agreement_date": null,
"amount_financed": null,
"annual_interest_rate": null,
"invoice_date": null,
"invoice_number": null,
"loan_reference": null,
"loan_tenure": null,
"monthly_payment": null,
"monthly_payment_amount": null,
"mortgage_account_number": null,
"outstanding_balance": "-3,281.20",
"property_address": null,
"remaining_term_months": null,
"seller_name": null,
"statement_period": "03/29/2024 - 05/16/2024",
"total_amount": null
},
"llm_reasoning": "This is a Danske Bank Mastercard Corporate statement showing credit card transactions. Key indicators include: \u0027Mastercard Corporate\u0027 account type, billing period (03/29/2024 - 05/16/2024), multiple merchant transactions (Starbucks, UBER, IKEA, etc.), negative balances indicating credit card debt (-2,545.94 opening, -3,281.20 closing), amount withdrawn (10,633.81) and deposited (9,898.55), and typical credit card merchant names with transaction dates and amounts.",
"raw_response": "```json\n{\n \"document_type\": \"credit_card\",\n \"confidence\": 0.98,\n \"reasoning\": \"This is a Danske Bank Mastercard Corporate statement showing credit card transactions. Key indicators include: \u0027Mastercard Corporate\u0027 account type, billing period (03/29/2024 - 05/16/2024), multiple merchant transactions (Starbucks, UBER, IKEA, etc.), negative balances indicating credit card debt (-2,545.94 opening, -3,281.20 closing), amount withdrawn (10,633.81) and deposited (9,898.55), and typical credit card merchant names with transaction dates and amounts.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": \"-3,281.20\",\n \"statement_period\": \"03/29/2024 - 05/16/2024\",\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```"
},
"type": "credit_card"
},
"method_used": "llm_preferred",
"pattern_based": {
"confidence": 0.03529411764705882,
"features": {
"bank_statement": {
"keyword_score": 0.058823529411764705,
"pattern_score": 0.0,
"total_score": 0.03529411764705882
},
"corporation_tax": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"credit_card": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"financial_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"hp_agreement": {
"keyword_score": 0.038461538461538464,
"pattern_score": 0.0,
"total_score": 0.023076923076923078
},
"invoice": {
"keyword_score": 0.05555555555555555,
"pattern_score": 0.0,
"total_score": 0.03333333333333333
},
"loan_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"mortgage_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"nominal_ledger": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"payroll": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
}
},
"type": "bank_statement"
}
},
"page_number": 1,
"text_length": 2058
},
{
"confidence_score": 0.95,
"document_type": "credit_card",
"features": {
"llm_based": {
"confidence": 0.95,
"features": {
"api_response_debug": {
"content_preview": "```json\n{\n \"document_type\": \"credit_card\",\n \"confidence\": 0.95,\n \"reasoning\": \"This document shows a list of transactions with merchant names (The White Harte Bar, ADOBE, Amazon Prime, UBER, etc.), transaction dates, amounts in GBP with negative values indicating purchases, and a running booked balance. The format is typical of a credit card statement with retail purchases, online subscriptions, and services. The presence of foreign currency conversions (EUR), merchant category indicators ()))))), and the continuous running balance are strong indicators of a credit card statement rather than a bank statement.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": null,\n \"statement_period\": null,\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```",
"response_repr": "Message(id=\u0027msg_01MRJboPLgWmGd8oqC9Lxxn2\u0027, content=[TextBlock(citations=None, text=\u0027```json\\n{\\n \"document_type\": \"credit_card\",\\n \"confidence\": 0.95,\\n \"reasoning\": \"This document shows a list of transactions with merchant names (The White Harte Bar, ADOBE, Amazon Prime, UBER, etc.), transaction dates, amounts in GBP with negative values indicating purchases, and a running booked balance. The format is typical of a credit card statement with retail purchases, online subscriptions, and services. The presence of foreign currency conversions (EUR), merchant category indicators ()))))), and the continuous running balance are strong indicators of a credit card statement rather than a bank statement.\",\\n \"document_identifiers\": {\\n \"invoice_number\": null,\\n \"seller_name\": null,\\n \"invoice_date\": null,\\n \"total_amount\": null,\\n \"agreement_date\": null,\\n \"amount_financed\": null,\\n \"monthly_payment\": null,\\n \"loan_tenure\": null,\\n \"loan_reference\": null,\\n \"annual_interest_rate\": null,\\n \"outstanding_balance\": null,\\n \"statement_period\": null,\\n \"mortgage_account_number\": null,\\n \"property_address\": null,\\n \"remaining_term_months\": null,\\n \"monthly_payment_amount\": null\\n }\\n}\\n```\u0027, type=\u0027text\u0027)], model=\u0027claude-sonnet-4-5-20250929\u0027, role=\u0027assistant\u0027, stop_reason=\u0027end_turn\u0027, stop_sequence=None, type=\u0027message\u0027, usage=Usage(cache_creation=CacheCreation(ephemeral_1h_input_tokens=0, ephemeral_5m_input_tokens=0), cache_creation_input_tokens=0, cache_read_input_tokens=0, input_tokens=1943, output_tokens=308, server_tool_use=None, service_tier=\u0027standard\u0027))"
},
"document_identifiers": {
"agreement_date": null,
"amount_financed": null,
"annual_interest_rate": null,
"invoice_date": null,
"invoice_number": null,
"loan_reference": null,
"loan_tenure": null,
"monthly_payment": null,
"monthly_payment_amount": null,
"mortgage_account_number": null,
"outstanding_balance": null,
"property_address": null,
"remaining_term_months": null,
"seller_name": null,
"statement_period": null,
"total_amount": null
},
"llm_reasoning": "This document shows a list of transactions with merchant names (The White Harte Bar, ADOBE, Amazon Prime, UBER, etc.), transaction dates, amounts in GBP with negative values indicating purchases, and a running booked balance. The format is typical of a credit card statement with retail purchases, online subscriptions, and services. The presence of foreign currency conversions (EUR), merchant category indicators ()))))), and the continuous running balance are strong indicators of a credit card statement rather than a bank statement.",
"raw_response": "```json\n{\n \"document_type\": \"credit_card\",\n \"confidence\": 0.95,\n \"reasoning\": \"This document shows a list of transactions with merchant names (The White Harte Bar, ADOBE, Amazon Prime, UBER, etc.), transaction dates, amounts in GBP with negative values indicating purchases, and a running booked balance. The format is typical of a credit card statement with retail purchases, online subscriptions, and services. The presence of foreign currency conversions (EUR), merchant category indicators ()))))), and the continuous running balance are strong indicators of a credit card statement rather than a bank statement.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": null,\n \"statement_period\": null,\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```"
},
"type": "credit_card"
},
"method_used": "llm_preferred",
"pattern_based": {
"confidence": 0.03529411764705882,
"features": {
"bank_statement": {
"keyword_score": 0.058823529411764705,
"pattern_score": 0.0,
"total_score": 0.03529411764705882
},
"corporation_tax": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"credit_card": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"financial_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"hp_agreement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"invoice": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"loan_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"mortgage_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"nominal_ledger": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"payroll": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
}
},
"type": "bank_statement"
}
},
"page_number": 2,
"text_length": 1676
}
],
"start_page": 1
},
{
"avg_confidence": 0.98,
"document_identifiers": {
"agreement_date": null,
"amount_financed": null,
"annual_interest_rate": null,
"invoice_date": null,
"invoice_number": null,
"loan_reference": null,
"loan_tenure": null,
"monthly_payment": null,
"monthly_payment_amount": null,
"mortgage_account_number": null,
"outstanding_balance": null,
"property_address": null,
"remaining_term_months": null,
"seller_name": null,
"statement_period": null,
"total_amount": null
},
"document_type": "bank_statement",
"end_page": 4,
"pages": [
{
"confidence_score": 0.98,
"document_type": "bank_statement",
"features": {
"llm_based": {
"confidence": 0.98,
"features": {
"api_response_debug": {
"content_preview": "```json\n{\n \"document_type\": \"bank_statement\",\n \"confidence\": 0.98,\n \"reasoning\": \"This document shows a clear list of transactions with dates, merchant names, transaction amounts in GBP, and running booked balances. Key indicators include: transaction dates (04/15/2024 - 04/24/2024), merchant names (Wetransfer, Amazon, Spar, IKEA, Ryanair, etc.), debit/credit amounts, running balance column showing progressive balance changes (starting at -3,541.85 and ending at -4,562.33), and a footer indicating this is \u0027Page 3 of 6\u0027 printed by a named user. The format is typical of a bank account statement showing daily transactions and account balance movements.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": null,\n \"statement_period\": null,\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```",
"response_repr": "Message(id=\u0027msg_01DtGagMdy3SmJL9vbEimrJL\u0027, content=[TextBlock(citations=None, text=\u0027```json\\n{\\n \"document_type\": \"bank_statement\",\\n \"confidence\": 0.98,\\n \"reasoning\": \"This document shows a clear list of transactions with dates, merchant names, transaction amounts in GBP, and running booked balances. Key indicators include: transaction dates (04/15/2024 - 04/24/2024), merchant names (Wetransfer, Amazon, Spar, IKEA, Ryanair, etc.), debit/credit amounts, running balance column showing progressive balance changes (starting at -3,541.85 and ending at -4,562.33), and a footer indicating this is \\\u0027Page 3 of 6\\\u0027 printed by a named user. The format is typical of a bank account statement showing daily transactions and account balance movements.\",\\n \"document_identifiers\": {\\n \"invoice_number\": null,\\n \"seller_name\": null,\\n \"invoice_date\": null,\\n \"total_amount\": null,\\n \"agreement_date\": null,\\n \"amount_financed\": null,\\n \"monthly_payment\": null,\\n \"loan_tenure\": null,\\n \"loan_reference\": null,\\n \"annual_interest_rate\": null,\\n \"outstanding_balance\": null,\\n \"statement_period\": null,\\n \"mortgage_account_number\": null,\\n \"property_address\": null,\\n \"remaining_term_months\": null,\\n \"monthly_payment_amount\": null\\n }\\n}\\n```\u0027, type=\u0027text\u0027)], model=\u0027claude-sonnet-4-5-20250929\u0027, role=\u0027assistant\u0027, stop_reason=\u0027end_turn\u0027, stop_sequence=None, type=\u0027message\u0027, usage=Usage(cache_creation=CacheCreation(ephemeral_1h_input_tokens=0, ephemeral_5m_input_tokens=0), cache_creation_input_tokens=0, cache_read_input_tokens=0, input_tokens=1936, output_tokens=351, server_tool_use=None, service_tier=\u0027standard\u0027))"
},
"document_identifiers": {
"agreement_date": null,
"amount_financed": null,
"annual_interest_rate": null,
"invoice_date": null,
"invoice_number": null,
"loan_reference": null,
"loan_tenure": null,
"monthly_payment": null,
"monthly_payment_amount": null,
"mortgage_account_number": null,
"outstanding_balance": null,
"property_address": null,
"remaining_term_months": null,
"seller_name": null,
"statement_period": null,
"total_amount": null
},
"llm_reasoning": "This document shows a clear list of transactions with dates, merchant names, transaction amounts in GBP, and running booked balances. Key indicators include: transaction dates (04/15/2024 - 04/24/2024), merchant names (Wetransfer, Amazon, Spar, IKEA, Ryanair, etc.), debit/credit amounts, running balance column showing progressive balance changes (starting at -3,541.85 and ending at -4,562.33), and a footer indicating this is \u0027Page 3 of 6\u0027 printed by a named user. The format is typical of a bank account statement showing daily transactions and account balance movements.",
"raw_response": "```json\n{\n \"document_type\": \"bank_statement\",\n \"confidence\": 0.98,\n \"reasoning\": \"This document shows a clear list of transactions with dates, merchant names, transaction amounts in GBP, and running booked balances. Key indicators include: transaction dates (04/15/2024 - 04/24/2024), merchant names (Wetransfer, Amazon, Spar, IKEA, Ryanair, etc.), debit/credit amounts, running balance column showing progressive balance changes (starting at -3,541.85 and ending at -4,562.33), and a footer indicating this is \u0027Page 3 of 6\u0027 printed by a named user. The format is typical of a bank account statement showing daily transactions and account balance movements.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": null,\n \"statement_period\": null,\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```"
},
"type": "bank_statement"
},
"method_used": "both_agree",
"pattern_based": {
"confidence": 0.03529411764705882,
"features": {
"bank_statement": {
"keyword_score": 0.058823529411764705,
"pattern_score": 0.0,
"total_score": 0.03529411764705882
},
"corporation_tax": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"credit_card": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"financial_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"hp_agreement": {
"keyword_score": 0.038461538461538464,
"pattern_score": 0.0,
"total_score": 0.023076923076923078
},
"invoice": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"loan_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"mortgage_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"nominal_ledger": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"payroll": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
}
},
"type": "bank_statement"
}
},
"page_number": 3,
"text_length": 1658
},
{
"confidence_score": 0.98,
"document_type": "bank_statement",
"features": {
"llm_based": {
"confidence": 0.98,
"features": {
"api_response_debug": {
"content_preview": "```json\n{\n \"document_type\": \"bank_statement\",\n \"confidence\": 0.98,\n \"reasoning\": \"This document shows a clear list of transactions with dates, merchant names, transaction amounts in GBP, and running booked balances. Key indicators include: transaction dates (04/24/2024 - 05/07/2024), merchant names (Snax N The City, Prime Video, Amazon, Ryanair, etc.), debit/credit amounts, and a running balance column showing the account balance after each transaction. The footer indicates this is \u0027Page 4 of 6\u0027 printed from \u0027District\u0027 by a user ID, typical of bank statement formatting.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": null,\n \"statement_period\": null,\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```",
"response_repr": "Message(id=\u0027msg_01XhQYCPRz2af5yvw7TaGrXH\u0027, content=[TextBlock(citations=None, text=\u0027```json\\n{\\n \"document_type\": \"bank_statement\",\\n \"confidence\": 0.98,\\n \"reasoning\": \"This document shows a clear list of transactions with dates, merchant names, transaction amounts in GBP, and running booked balances. Key indicators include: transaction dates (04/24/2024 - 05/07/2024), merchant names (Snax N The City, Prime Video, Amazon, Ryanair, etc.), debit/credit amounts, and a running balance column showing the account balance after each transaction. The footer indicates this is \\\u0027Page 4 of 6\\\u0027 printed from \\\u0027District\\\u0027 by a user ID, typical of bank statement formatting.\",\\n \"document_identifiers\": {\\n \"invoice_number\": null,\\n \"seller_name\": null,\\n \"invoice_date\": null,\\n \"total_amount\": null,\\n \"agreement_date\": null,\\n \"amount_financed\": null,\\n \"monthly_payment\": null,\\n \"loan_tenure\": null,\\n \"loan_reference\": null,\\n \"annual_interest_rate\": null,\\n \"outstanding_balance\": null,\\n \"statement_period\": null,\\n \"mortgage_account_number\": null,\\n \"property_address\": null,\\n \"remaining_term_months\": null,\\n \"monthly_payment_amount\": null\\n }\\n}\\n```\u0027, type=\u0027text\u0027)], model=\u0027claude-sonnet-4-5-20250929\u0027, role=\u0027assistant\u0027, stop_reason=\u0027end_turn\u0027, stop_sequence=None, type=\u0027message\u0027, usage=Usage(cache_creation=CacheCreation(ephemeral_1h_input_tokens=0, ephemeral_5m_input_tokens=0), cache_creation_input_tokens=0, cache_read_input_tokens=0, input_tokens=1891, output_tokens=327, server_tool_use=None, service_tier=\u0027standard\u0027))"
},
"document_identifiers": {
"agreement_date": null,
"amount_financed": null,
"annual_interest_rate": null,
"invoice_date": null,
"invoice_number": null,
"loan_reference": null,
"loan_tenure": null,
"monthly_payment": null,
"monthly_payment_amount": null,
"mortgage_account_number": null,
"outstanding_balance": null,
"property_address": null,
"remaining_term_months": null,
"seller_name": null,
"statement_period": null,
"total_amount": null
},
"llm_reasoning": "This document shows a clear list of transactions with dates, merchant names, transaction amounts in GBP, and running booked balances. Key indicators include: transaction dates (04/24/2024 - 05/07/2024), merchant names (Snax N The City, Prime Video, Amazon, Ryanair, etc.), debit/credit amounts, and a running balance column showing the account balance after each transaction. The footer indicates this is \u0027Page 4 of 6\u0027 printed from \u0027District\u0027 by a user ID, typical of bank statement formatting.",
"raw_response": "```json\n{\n \"document_type\": \"bank_statement\",\n \"confidence\": 0.98,\n \"reasoning\": \"This document shows a clear list of transactions with dates, merchant names, transaction amounts in GBP, and running booked balances. Key indicators include: transaction dates (04/24/2024 - 05/07/2024), merchant names (Snax N The City, Prime Video, Amazon, Ryanair, etc.), debit/credit amounts, and a running balance column showing the account balance after each transaction. The footer indicates this is \u0027Page 4 of 6\u0027 printed from \u0027District\u0027 by a user ID, typical of bank statement formatting.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": null,\n \"statement_period\": null,\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```"
},
"type": "bank_statement"
},
"method_used": "both_agree",
"pattern_based": {
"confidence": 0.03529411764705882,
"features": {
"bank_statement": {
"keyword_score": 0.058823529411764705,
"pattern_score": 0.0,
"total_score": 0.03529411764705882
},
"corporation_tax": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"credit_card": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"financial_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"hp_agreement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"invoice": {
"keyword_score": 0.05555555555555555,
"pattern_score": 0.0,
"total_score": 0.03333333333333333
},
"loan_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"mortgage_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"nominal_ledger": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"payroll": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
}
},
"type": "bank_statement"
}
},
"page_number": 4,
"text_length": 1585
}
],
"start_page": 3
},
{
"avg_confidence": 0.95,
"document_identifiers": {
"agreement_date": null,
"amount_financed": null,
"annual_interest_rate": null,
"invoice_date": null,
"invoice_number": null,
"loan_reference": null,
"loan_tenure": null,
"monthly_payment": null,
"monthly_payment_amount": null,
"mortgage_account_number": null,
"outstanding_balance": "-2,433.78",
"property_address": null,
"remaining_term_months": null,
"seller_name": null,
"statement_period": "05/07/2024 to 05/10/2024",
"total_amount": null
},
"document_type": "credit_card",
"end_page": 6,
"pages": [
{
"confidence_score": 0.95,
"document_type": "credit_card",
"features": {
"llm_based": {
"confidence": 0.95,
"features": {
"api_response_debug": {
"content_preview": "```json\n{\n \"document_type\": \"credit_card\",\n \"confidence\": 0.95,\n \"reasoning\": \"This document shows a list of transactions with merchant names (Ryanair, Starbucks, UBER, Amazon, etc.), transaction dates, amounts in GBP with negative values indicating purchases/debits, and a running booked balance. The format is typical of a credit card or bank card statement showing daily transactions and cumulative balance. The presence of typical consumer purchases (coffee shops, restaurants, online retailers, ride-sharing services) and the transaction listing format with booked dates and running balances are key indicators of a credit card statement.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": \"-2,433.78\",\n \"statement_period\": \"05/07/2024 to 05/10/2024\",\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```",
"response_repr": "Message(id=\u0027msg_01X7cBhJVrVr5Y6oT1TqMkUi\u0027, content=[TextBlock(citations=None, text=\u0027```json\\n{\\n \"document_type\": \"credit_card\",\\n \"confidence\": 0.95,\\n \"reasoning\": \"This document shows a list of transactions with merchant names (Ryanair, Starbucks, UBER, Amazon, etc.), transaction dates, amounts in GBP with negative values indicating purchases/debits, and a running booked balance. The format is typical of a credit card or bank card statement showing daily transactions and cumulative balance. The presence of typical consumer purchases (coffee shops, restaurants, online retailers, ride-sharing services) and the transaction listing format with booked dates and running balances are key indicators of a credit card statement.\",\\n \"document_identifiers\": {\\n \"invoice_number\": null,\\n \"seller_name\": null,\\n \"invoice_date\": null,\\n \"total_amount\": null,\\n \"agreement_date\": null,\\n \"amount_financed\": null,\\n \"monthly_payment\": null,\\n \"loan_tenure\": null,\\n \"loan_reference\": null,\\n \"annual_interest_rate\": null,\\n \"outstanding_balance\": \"-2,433.78\",\\n \"statement_period\": \"05/07/2024 to 05/10/2024\",\\n \"mortgage_account_number\": null,\\n \"property_address\": null,\\n \"remaining_term_months\": null,\\n \"monthly_payment_amount\": null\\n }\\n}\\n```\u0027, type=\u0027text\u0027)], model=\u0027claude-sonnet-4-5-20250929\u0027, role=\u0027assistant\u0027, stop_reason=\u0027end_turn\u0027, stop_sequence=None, type=\u0027message\u0027, usage=Usage(cache_creation=CacheCreation(ephemeral_1h_input_tokens=0, ephemeral_5m_input_tokens=0), cache_creation_input_tokens=0, cache_read_input_tokens=0, input_tokens=1896, output_tokens=337, server_tool_use=None, service_tier=\u0027standard\u0027))"
},
"document_identifiers": {
"agreement_date": null,
"amount_financed": null,
"annual_interest_rate": null,
"invoice_date": null,
"invoice_number": null,
"loan_reference": null,
"loan_tenure": null,
"monthly_payment": null,
"monthly_payment_amount": null,
"mortgage_account_number": null,
"outstanding_balance": "-2,433.78",
"property_address": null,
"remaining_term_months": null,
"seller_name": null,
"statement_period": "05/07/2024 to 05/10/2024",
"total_amount": null
},
"llm_reasoning": "This document shows a list of transactions with merchant names (Ryanair, Starbucks, UBER, Amazon, etc.), transaction dates, amounts in GBP with negative values indicating purchases/debits, and a running booked balance. The format is typical of a credit card or bank card statement showing daily transactions and cumulative balance. The presence of typical consumer purchases (coffee shops, restaurants, online retailers, ride-sharing services) and the transaction listing format with booked dates and running balances are key indicators of a credit card statement.",
"raw_response": "```json\n{\n \"document_type\": \"credit_card\",\n \"confidence\": 0.95,\n \"reasoning\": \"This document shows a list of transactions with merchant names (Ryanair, Starbucks, UBER, Amazon, etc.), transaction dates, amounts in GBP with negative values indicating purchases/debits, and a running booked balance. The format is typical of a credit card or bank card statement showing daily transactions and cumulative balance. The presence of typical consumer purchases (coffee shops, restaurants, online retailers, ride-sharing services) and the transaction listing format with booked dates and running balances are key indicators of a credit card statement.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": \"-2,433.78\",\n \"statement_period\": \"05/07/2024 to 05/10/2024\",\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```"
},
"type": "credit_card"
},
"method_used": "llm_preferred",
"pattern_based": {
"confidence": 0.03529411764705882,
"features": {
"bank_statement": {
"keyword_score": 0.058823529411764705,
"pattern_score": 0.0,
"total_score": 0.03529411764705882
},
"corporation_tax": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"credit_card": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"financial_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"hp_agreement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"invoice": {
"keyword_score": 0.05555555555555555,
"pattern_score": 0.0,
"total_score": 0.03333333333333333
},
"loan_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"mortgage_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"nominal_ledger": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"payroll": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
}
},
"type": "bank_statement"
}
},
"page_number": 5,
"text_length": 1563
},
{
"confidence_score": 0.95,
"document_type": "credit_card",
"features": {
"llm_based": {
"confidence": 0.95,
"features": {
"api_response_debug": {
"content_preview": "```json\n{\n \"document_type\": \"credit_card\",\n \"confidence\": 0.95,\n \"reasoning\": \"This document shows a list of transactions with merchant names (AMAZON, MAXOL, TESCO, EASYJET, etc.), transaction dates, amounts in GBP with negative values indicating purchases/debits, and a running \u0027Booked balance in GBP\u0027 column. The format is typical of a credit card statement showing purchases and the resulting balance after each transaction. The presence of an interest date column (06/21/2024) and various retail/service transactions are strong indicators of a credit card statement.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": \"-3,281.20\",\n \"statement_period\": null,\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```",
"response_repr": "Message(id=\u0027msg_01P3xdASe4rWQhURn8virhAx\u0027, content=[TextBlock(citations=None, text=\u0027```json\\n{\\n \"document_type\": \"credit_card\",\\n \"confidence\": 0.95,\\n \"reasoning\": \"This document shows a list of transactions with merchant names (AMAZON, MAXOL, TESCO, EASYJET, etc.), transaction dates, amounts in GBP with negative values indicating purchases/debits, and a running \\\u0027Booked balance in GBP\\\u0027 column. The format is typical of a credit card statement showing purchases and the resulting balance after each transaction. The presence of an interest date column (06/21/2024) and various retail/service transactions are strong indicators of a credit card statement.\",\\n \"document_identifiers\": {\\n \"invoice_number\": null,\\n \"seller_name\": null,\\n \"invoice_date\": null,\\n \"total_amount\": null,\\n \"agreement_date\": null,\\n \"amount_financed\": null,\\n \"monthly_payment\": null,\\n \"loan_tenure\": null,\\n \"loan_reference\": null,\\n \"annual_interest_rate\": null,\\n \"outstanding_balance\": \"-3,281.20\",\\n \"statement_period\": null,\\n \"mortgage_account_number\": null,\\n \"property_address\": null,\\n \"remaining_term_months\": null,\\n \"monthly_payment_amount\": null\\n }\\n}\\n```\u0027, type=\u0027text\u0027)], model=\u0027claude-sonnet-4-5-20250929\u0027, role=\u0027assistant\u0027, stop_reason=\u0027end_turn\u0027, stop_sequence=None, type=\u0027message\u0027, usage=Usage(cache_creation=CacheCreation(ephemeral_1h_input_tokens=0, ephemeral_5m_input_tokens=0), cache_creation_input_tokens=0, cache_read_input_tokens=0, input_tokens=1589, output_tokens=319, server_tool_use=None, service_tier=\u0027standard\u0027))"
},
"document_identifiers": {
"agreement_date": null,
"amount_financed": null,
"annual_interest_rate": null,
"invoice_date": null,
"invoice_number": null,
"loan_reference": null,
"loan_tenure": null,
"monthly_payment": null,
"monthly_payment_amount": null,
"mortgage_account_number": null,
"outstanding_balance": "-3,281.20",
"property_address": null,
"remaining_term_months": null,
"seller_name": null,
"statement_period": null,
"total_amount": null
},
"llm_reasoning": "This document shows a list of transactions with merchant names (AMAZON, MAXOL, TESCO, EASYJET, etc.), transaction dates, amounts in GBP with negative values indicating purchases/debits, and a running \u0027Booked balance in GBP\u0027 column. The format is typical of a credit card statement showing purchases and the resulting balance after each transaction. The presence of an interest date column (06/21/2024) and various retail/service transactions are strong indicators of a credit card statement.",
"raw_response": "```json\n{\n \"document_type\": \"credit_card\",\n \"confidence\": 0.95,\n \"reasoning\": \"This document shows a list of transactions with merchant names (AMAZON, MAXOL, TESCO, EASYJET, etc.), transaction dates, amounts in GBP with negative values indicating purchases/debits, and a running \u0027Booked balance in GBP\u0027 column. The format is typical of a credit card statement showing purchases and the resulting balance after each transaction. The presence of an interest date column (06/21/2024) and various retail/service transactions are strong indicators of a credit card statement.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": \"-3,281.20\",\n \"statement_period\": null,\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```"
},
"type": "credit_card"
},
"method_used": "llm_preferred",
"pattern_based": {
"confidence": 0.03529411764705882,
"features": {
"bank_statement": {
"keyword_score": 0.058823529411764705,
"pattern_score": 0.0,
"total_score": 0.03529411764705882
},
"corporation_tax": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"credit_card": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"financial_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"hp_agreement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"invoice": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"loan_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"mortgage_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"nominal_ledger": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"payroll": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
}
},
"type": "bank_statement"
}
},
"page_number": 6,
"text_length": 1080
}
],
"start_page": 5
}
],
"page_classifications": [
{
"confidence_score": 0.98,
"document_type": "credit_card",
"features": {
"llm_based": {
"confidence": 0.98,
"features": {
"api_response_debug": {
"content_preview": "```json\n{\n \"document_type\": \"credit_card\",\n \"confidence\": 0.98,\n \"reasoning\": \"This is a Danske Bank Mastercard Corporate statement showing credit card transactions. Key indicators include: \u0027Mastercard Corporate\u0027 account type, billing period (03/29/2024 - 05/16/2024), multiple merchant transactions (Starbucks, UBER, IKEA, etc.), negative balances indicating credit card debt (-2,545.94 opening, -3,281.20 closing), amount withdrawn (10,633.81) and deposited (9,898.55), and typical credit card merchant names with transaction dates and amounts.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": \"-3,281.20\",\n \"statement_period\": \"03/29/2024 - 05/16/2024\",\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```",
"response_repr": "Message(id=\u0027msg_014qkAm9iBrxouVHqYLBRBkF\u0027, content=[TextBlock(citations=None, text=\u0027```json\\n{\\n \"document_type\": \"credit_card\",\\n \"confidence\": 0.98,\\n \"reasoning\": \"This is a Danske Bank Mastercard Corporate statement showing credit card transactions. Key indicators include: \\\u0027Mastercard Corporate\\\u0027 account type, billing period (03/29/2024 - 05/16/2024), multiple merchant transactions (Starbucks, UBER, IKEA, etc.), negative balances indicating credit card debt (-2,545.94 opening, -3,281.20 closing), amount withdrawn (10,633.81) and deposited (9,898.55), and typical credit card merchant names with transaction dates and amounts.\",\\n \"document_identifiers\": {\\n \"invoice_number\": null,\\n \"seller_name\": null,\\n \"invoice_date\": null,\\n \"total_amount\": null,\\n \"agreement_date\": null,\\n \"amount_financed\": null,\\n \"monthly_payment\": null,\\n \"loan_tenure\": null,\\n \"loan_reference\": null,\\n \"annual_interest_rate\": null,\\n \"outstanding_balance\": \"-3,281.20\",\\n \"statement_period\": \"03/29/2024 - 05/16/2024\",\\n \"mortgage_account_number\": null,\\n \"property_address\": null,\\n \"remaining_term_months\": null,\\n \"monthly_payment_amount\": null\\n }\\n}\\n```\u0027, type=\u0027text\u0027)], model=\u0027claude-sonnet-4-5-20250929\u0027, role=\u0027assistant\u0027, stop_reason=\u0027end_turn\u0027, stop_sequence=None, type=\u0027message\u0027, usage=Usage(cache_creation=CacheCreation(ephemeral_1h_input_tokens=0, ephemeral_5m_input_tokens=0), cache_creation_input_tokens=0, cache_read_input_tokens=0, input_tokens=1991, output_tokens=346, server_tool_use=None, service_tier=\u0027standard\u0027))"
},
"document_identifiers": {
"agreement_date": null,
"amount_financed": null,
"annual_interest_rate": null,
"invoice_date": null,
"invoice_number": null,
"loan_reference": null,
"loan_tenure": null,
"monthly_payment": null,
"monthly_payment_amount": null,
"mortgage_account_number": null,
"outstanding_balance": "-3,281.20",
"property_address": null,
"remaining_term_months": null,
"seller_name": null,
"statement_period": "03/29/2024 - 05/16/2024",
"total_amount": null
},
"llm_reasoning": "This is a Danske Bank Mastercard Corporate statement showing credit card transactions. Key indicators include: \u0027Mastercard Corporate\u0027 account type, billing period (03/29/2024 - 05/16/2024), multiple merchant transactions (Starbucks, UBER, IKEA, etc.), negative balances indicating credit card debt (-2,545.94 opening, -3,281.20 closing), amount withdrawn (10,633.81) and deposited (9,898.55), and typical credit card merchant names with transaction dates and amounts.",
"raw_response": "```json\n{\n \"document_type\": \"credit_card\",\n \"confidence\": 0.98,\n \"reasoning\": \"This is a Danske Bank Mastercard Corporate statement showing credit card transactions. Key indicators include: \u0027Mastercard Corporate\u0027 account type, billing period (03/29/2024 - 05/16/2024), multiple merchant transactions (Starbucks, UBER, IKEA, etc.), negative balances indicating credit card debt (-2,545.94 opening, -3,281.20 closing), amount withdrawn (10,633.81) and deposited (9,898.55), and typical credit card merchant names with transaction dates and amounts.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": \"-3,281.20\",\n \"statement_period\": \"03/29/2024 - 05/16/2024\",\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```"
},
"type": "credit_card"
},
"method_used": "llm_preferred",
"pattern_based": {
"confidence": 0.03529411764705882,
"features": {
"bank_statement": {
"keyword_score": 0.058823529411764705,
"pattern_score": 0.0,
"total_score": 0.03529411764705882
},
"corporation_tax": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"credit_card": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"financial_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"hp_agreement": {
"keyword_score": 0.038461538461538464,
"pattern_score": 0.0,
"total_score": 0.023076923076923078
},
"invoice": {
"keyword_score": 0.05555555555555555,
"pattern_score": 0.0,
"total_score": 0.03333333333333333
},
"loan_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"mortgage_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"nominal_ledger": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"payroll": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
}
},
"type": "bank_statement"
}
},
"page_number": 1,
"text_length": 2058
},
{
"confidence_score": 0.95,
"document_type": "credit_card",
"features": {
"llm_based": {
"confidence": 0.95,
"features": {
"api_response_debug": {
"content_preview": "```json\n{\n \"document_type\": \"credit_card\",\n \"confidence\": 0.95,\n \"reasoning\": \"This document shows a list of transactions with merchant names (The White Harte Bar, ADOBE, Amazon Prime, UBER, etc.), transaction dates, amounts in GBP with negative values indicating purchases, and a running booked balance. The format is typical of a credit card statement with retail purchases, online subscriptions, and services. The presence of foreign currency conversions (EUR), merchant category indicators ()))))), and the continuous running balance are strong indicators of a credit card statement rather than a bank statement.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": null,\n \"statement_period\": null,\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```",
"response_repr": "Message(id=\u0027msg_01MRJboPLgWmGd8oqC9Lxxn2\u0027, content=[TextBlock(citations=None, text=\u0027```json\\n{\\n \"document_type\": \"credit_card\",\\n \"confidence\": 0.95,\\n \"reasoning\": \"This document shows a list of transactions with merchant names (The White Harte Bar, ADOBE, Amazon Prime, UBER, etc.), transaction dates, amounts in GBP with negative values indicating purchases, and a running booked balance. The format is typical of a credit card statement with retail purchases, online subscriptions, and services. The presence of foreign currency conversions (EUR), merchant category indicators ()))))), and the continuous running balance are strong indicators of a credit card statement rather than a bank statement.\",\\n \"document_identifiers\": {\\n \"invoice_number\": null,\\n \"seller_name\": null,\\n \"invoice_date\": null,\\n \"total_amount\": null,\\n \"agreement_date\": null,\\n \"amount_financed\": null,\\n \"monthly_payment\": null,\\n \"loan_tenure\": null,\\n \"loan_reference\": null,\\n \"annual_interest_rate\": null,\\n \"outstanding_balance\": null,\\n \"statement_period\": null,\\n \"mortgage_account_number\": null,\\n \"property_address\": null,\\n \"remaining_term_months\": null,\\n \"monthly_payment_amount\": null\\n }\\n}\\n```\u0027, type=\u0027text\u0027)], model=\u0027claude-sonnet-4-5-20250929\u0027, role=\u0027assistant\u0027, stop_reason=\u0027end_turn\u0027, stop_sequence=None, type=\u0027message\u0027, usage=Usage(cache_creation=CacheCreation(ephemeral_1h_input_tokens=0, ephemeral_5m_input_tokens=0), cache_creation_input_tokens=0, cache_read_input_tokens=0, input_tokens=1943, output_tokens=308, server_tool_use=None, service_tier=\u0027standard\u0027))"
},
"document_identifiers": {
"agreement_date": null,
"amount_financed": null,
"annual_interest_rate": null,
"invoice_date": null,
"invoice_number": null,
"loan_reference": null,
"loan_tenure": null,
"monthly_payment": null,
"monthly_payment_amount": null,
"mortgage_account_number": null,
"outstanding_balance": null,
"property_address": null,
"remaining_term_months": null,
"seller_name": null,
"statement_period": null,
"total_amount": null
},
"llm_reasoning": "This document shows a list of transactions with merchant names (The White Harte Bar, ADOBE, Amazon Prime, UBER, etc.), transaction dates, amounts in GBP with negative values indicating purchases, and a running booked balance. The format is typical of a credit card statement with retail purchases, online subscriptions, and services. The presence of foreign currency conversions (EUR), merchant category indicators ()))))), and the continuous running balance are strong indicators of a credit card statement rather than a bank statement.",
"raw_response": "```json\n{\n \"document_type\": \"credit_card\",\n \"confidence\": 0.95,\n \"reasoning\": \"This document shows a list of transactions with merchant names (The White Harte Bar, ADOBE, Amazon Prime, UBER, etc.), transaction dates, amounts in GBP with negative values indicating purchases, and a running booked balance. The format is typical of a credit card statement with retail purchases, online subscriptions, and services. The presence of foreign currency conversions (EUR), merchant category indicators ()))))), and the continuous running balance are strong indicators of a credit card statement rather than a bank statement.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": null,\n \"statement_period\": null,\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```"
},
"type": "credit_card"
},
"method_used": "llm_preferred",
"pattern_based": {
"confidence": 0.03529411764705882,
"features": {
"bank_statement": {
"keyword_score": 0.058823529411764705,
"pattern_score": 0.0,
"total_score": 0.03529411764705882
},
"corporation_tax": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"credit_card": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"financial_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"hp_agreement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"invoice": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"loan_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"mortgage_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"nominal_ledger": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"payroll": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
}
},
"type": "bank_statement"
}
},
"page_number": 2,
"text_length": 1676
},
{
"confidence_score": 0.98,
"document_type": "bank_statement",
"features": {
"llm_based": {
"confidence": 0.98,
"features": {
"api_response_debug": {
"content_preview": "```json\n{\n \"document_type\": \"bank_statement\",\n \"confidence\": 0.98,\n \"reasoning\": \"This document shows a clear list of transactions with dates, merchant names, transaction amounts in GBP, and running booked balances. Key indicators include: transaction dates (04/15/2024 - 04/24/2024), merchant names (Wetransfer, Amazon, Spar, IKEA, Ryanair, etc.), debit/credit amounts, running balance column showing progressive balance changes (starting at -3,541.85 and ending at -4,562.33), and a footer indicating this is \u0027Page 3 of 6\u0027 printed by a named user. The format is typical of a bank account statement showing daily transactions and account balance movements.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": null,\n \"statement_period\": null,\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```",
"response_repr": "Message(id=\u0027msg_01DtGagMdy3SmJL9vbEimrJL\u0027, content=[TextBlock(citations=None, text=\u0027```json\\n{\\n \"document_type\": \"bank_statement\",\\n \"confidence\": 0.98,\\n \"reasoning\": \"This document shows a clear list of transactions with dates, merchant names, transaction amounts in GBP, and running booked balances. Key indicators include: transaction dates (04/15/2024 - 04/24/2024), merchant names (Wetransfer, Amazon, Spar, IKEA, Ryanair, etc.), debit/credit amounts, running balance column showing progressive balance changes (starting at -3,541.85 and ending at -4,562.33), and a footer indicating this is \\\u0027Page 3 of 6\\\u0027 printed by a named user. The format is typical of a bank account statement showing daily transactions and account balance movements.\",\\n \"document_identifiers\": {\\n \"invoice_number\": null,\\n \"seller_name\": null,\\n \"invoice_date\": null,\\n \"total_amount\": null,\\n \"agreement_date\": null,\\n \"amount_financed\": null,\\n \"monthly_payment\": null,\\n \"loan_tenure\": null,\\n \"loan_reference\": null,\\n \"annual_interest_rate\": null,\\n \"outstanding_balance\": null,\\n \"statement_period\": null,\\n \"mortgage_account_number\": null,\\n \"property_address\": null,\\n \"remaining_term_months\": null,\\n \"monthly_payment_amount\": null\\n }\\n}\\n```\u0027, type=\u0027text\u0027)], model=\u0027claude-sonnet-4-5-20250929\u0027, role=\u0027assistant\u0027, stop_reason=\u0027end_turn\u0027, stop_sequence=None, type=\u0027message\u0027, usage=Usage(cache_creation=CacheCreation(ephemeral_1h_input_tokens=0, ephemeral_5m_input_tokens=0), cache_creation_input_tokens=0, cache_read_input_tokens=0, input_tokens=1936, output_tokens=351, server_tool_use=None, service_tier=\u0027standard\u0027))"
},
"document_identifiers": {
"agreement_date": null,
"amount_financed": null,
"annual_interest_rate": null,
"invoice_date": null,
"invoice_number": null,
"loan_reference": null,
"loan_tenure": null,
"monthly_payment": null,
"monthly_payment_amount": null,
"mortgage_account_number": null,
"outstanding_balance": null,
"property_address": null,
"remaining_term_months": null,
"seller_name": null,
"statement_period": null,
"total_amount": null
},
"llm_reasoning": "This document shows a clear list of transactions with dates, merchant names, transaction amounts in GBP, and running booked balances. Key indicators include: transaction dates (04/15/2024 - 04/24/2024), merchant names (Wetransfer, Amazon, Spar, IKEA, Ryanair, etc.), debit/credit amounts, running balance column showing progressive balance changes (starting at -3,541.85 and ending at -4,562.33), and a footer indicating this is \u0027Page 3 of 6\u0027 printed by a named user. The format is typical of a bank account statement showing daily transactions and account balance movements.",
"raw_response": "```json\n{\n \"document_type\": \"bank_statement\",\n \"confidence\": 0.98,\n \"reasoning\": \"This document shows a clear list of transactions with dates, merchant names, transaction amounts in GBP, and running booked balances. Key indicators include: transaction dates (04/15/2024 - 04/24/2024), merchant names (Wetransfer, Amazon, Spar, IKEA, Ryanair, etc.), debit/credit amounts, running balance column showing progressive balance changes (starting at -3,541.85 and ending at -4,562.33), and a footer indicating this is \u0027Page 3 of 6\u0027 printed by a named user. The format is typical of a bank account statement showing daily transactions and account balance movements.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": null,\n \"statement_period\": null,\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```"
},
"type": "bank_statement"
},
"method_used": "both_agree",
"pattern_based": {
"confidence": 0.03529411764705882,
"features": {
"bank_statement": {
"keyword_score": 0.058823529411764705,
"pattern_score": 0.0,
"total_score": 0.03529411764705882
},
"corporation_tax": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"credit_card": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"financial_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"hp_agreement": {
"keyword_score": 0.038461538461538464,
"pattern_score": 0.0,
"total_score": 0.023076923076923078
},
"invoice": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"loan_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"mortgage_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"nominal_ledger": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"payroll": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
}
},
"type": "bank_statement"
}
},
"page_number": 3,
"text_length": 1658
},
{
"confidence_score": 0.98,
"document_type": "bank_statement",
"features": {
"llm_based": {
"confidence": 0.98,
"features": {
"api_response_debug": {
"content_preview": "```json\n{\n \"document_type\": \"bank_statement\",\n \"confidence\": 0.98,\n \"reasoning\": \"This document shows a clear list of transactions with dates, merchant names, transaction amounts in GBP, and running booked balances. Key indicators include: transaction dates (04/24/2024 - 05/07/2024), merchant names (Snax N The City, Prime Video, Amazon, Ryanair, etc.), debit/credit amounts, and a running balance column showing the account balance after each transaction. The footer indicates this is \u0027Page 4 of 6\u0027 printed from \u0027District\u0027 by a user ID, typical of bank statement formatting.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": null,\n \"statement_period\": null,\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```",
"response_repr": "Message(id=\u0027msg_01XhQYCPRz2af5yvw7TaGrXH\u0027, content=[TextBlock(citations=None, text=\u0027```json\\n{\\n \"document_type\": \"bank_statement\",\\n \"confidence\": 0.98,\\n \"reasoning\": \"This document shows a clear list of transactions with dates, merchant names, transaction amounts in GBP, and running booked balances. Key indicators include: transaction dates (04/24/2024 - 05/07/2024), merchant names (Snax N The City, Prime Video, Amazon, Ryanair, etc.), debit/credit amounts, and a running balance column showing the account balance after each transaction. The footer indicates this is \\\u0027Page 4 of 6\\\u0027 printed from \\\u0027District\\\u0027 by a user ID, typical of bank statement formatting.\",\\n \"document_identifiers\": {\\n \"invoice_number\": null,\\n \"seller_name\": null,\\n \"invoice_date\": null,\\n \"total_amount\": null,\\n \"agreement_date\": null,\\n \"amount_financed\": null,\\n \"monthly_payment\": null,\\n \"loan_tenure\": null,\\n \"loan_reference\": null,\\n \"annual_interest_rate\": null,\\n \"outstanding_balance\": null,\\n \"statement_period\": null,\\n \"mortgage_account_number\": null,\\n \"property_address\": null,\\n \"remaining_term_months\": null,\\n \"monthly_payment_amount\": null\\n }\\n}\\n```\u0027, type=\u0027text\u0027)], model=\u0027claude-sonnet-4-5-20250929\u0027, role=\u0027assistant\u0027, stop_reason=\u0027end_turn\u0027, stop_sequence=None, type=\u0027message\u0027, usage=Usage(cache_creation=CacheCreation(ephemeral_1h_input_tokens=0, ephemeral_5m_input_tokens=0), cache_creation_input_tokens=0, cache_read_input_tokens=0, input_tokens=1891, output_tokens=327, server_tool_use=None, service_tier=\u0027standard\u0027))"
},
"document_identifiers": {
"agreement_date": null,
"amount_financed": null,
"annual_interest_rate": null,
"invoice_date": null,
"invoice_number": null,
"loan_reference": null,
"loan_tenure": null,
"monthly_payment": null,
"monthly_payment_amount": null,
"mortgage_account_number": null,
"outstanding_balance": null,
"property_address": null,
"remaining_term_months": null,
"seller_name": null,
"statement_period": null,
"total_amount": null
},
"llm_reasoning": "This document shows a clear list of transactions with dates, merchant names, transaction amounts in GBP, and running booked balances. Key indicators include: transaction dates (04/24/2024 - 05/07/2024), merchant names (Snax N The City, Prime Video, Amazon, Ryanair, etc.), debit/credit amounts, and a running balance column showing the account balance after each transaction. The footer indicates this is \u0027Page 4 of 6\u0027 printed from \u0027District\u0027 by a user ID, typical of bank statement formatting.",
"raw_response": "```json\n{\n \"document_type\": \"bank_statement\",\n \"confidence\": 0.98,\n \"reasoning\": \"This document shows a clear list of transactions with dates, merchant names, transaction amounts in GBP, and running booked balances. Key indicators include: transaction dates (04/24/2024 - 05/07/2024), merchant names (Snax N The City, Prime Video, Amazon, Ryanair, etc.), debit/credit amounts, and a running balance column showing the account balance after each transaction. The footer indicates this is \u0027Page 4 of 6\u0027 printed from \u0027District\u0027 by a user ID, typical of bank statement formatting.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": null,\n \"statement_period\": null,\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```"
},
"type": "bank_statement"
},
"method_used": "both_agree",
"pattern_based": {
"confidence": 0.03529411764705882,
"features": {
"bank_statement": {
"keyword_score": 0.058823529411764705,
"pattern_score": 0.0,
"total_score": 0.03529411764705882
},
"corporation_tax": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"credit_card": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"financial_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"hp_agreement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"invoice": {
"keyword_score": 0.05555555555555555,
"pattern_score": 0.0,
"total_score": 0.03333333333333333
},
"loan_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"mortgage_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"nominal_ledger": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"payroll": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
}
},
"type": "bank_statement"
}
},
"page_number": 4,
"text_length": 1585
},
{
"confidence_score": 0.95,
"document_type": "credit_card",
"features": {
"llm_based": {
"confidence": 0.95,
"features": {
"api_response_debug": {
"content_preview": "```json\n{\n \"document_type\": \"credit_card\",\n \"confidence\": 0.95,\n \"reasoning\": \"This document shows a list of transactions with merchant names (Ryanair, Starbucks, UBER, Amazon, etc.), transaction dates, amounts in GBP with negative values indicating purchases/debits, and a running booked balance. The format is typical of a credit card or bank card statement showing daily transactions and cumulative balance. The presence of typical consumer purchases (coffee shops, restaurants, online retailers, ride-sharing services) and the transaction listing format with booked dates and running balances are key indicators of a credit card statement.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": \"-2,433.78\",\n \"statement_period\": \"05/07/2024 to 05/10/2024\",\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```",
"response_repr": "Message(id=\u0027msg_01X7cBhJVrVr5Y6oT1TqMkUi\u0027, content=[TextBlock(citations=None, text=\u0027```json\\n{\\n \"document_type\": \"credit_card\",\\n \"confidence\": 0.95,\\n \"reasoning\": \"This document shows a list of transactions with merchant names (Ryanair, Starbucks, UBER, Amazon, etc.), transaction dates, amounts in GBP with negative values indicating purchases/debits, and a running booked balance. The format is typical of a credit card or bank card statement showing daily transactions and cumulative balance. The presence of typical consumer purchases (coffee shops, restaurants, online retailers, ride-sharing services) and the transaction listing format with booked dates and running balances are key indicators of a credit card statement.\",\\n \"document_identifiers\": {\\n \"invoice_number\": null,\\n \"seller_name\": null,\\n \"invoice_date\": null,\\n \"total_amount\": null,\\n \"agreement_date\": null,\\n \"amount_financed\": null,\\n \"monthly_payment\": null,\\n \"loan_tenure\": null,\\n \"loan_reference\": null,\\n \"annual_interest_rate\": null,\\n \"outstanding_balance\": \"-2,433.78\",\\n \"statement_period\": \"05/07/2024 to 05/10/2024\",\\n \"mortgage_account_number\": null,\\n \"property_address\": null,\\n \"remaining_term_months\": null,\\n \"monthly_payment_amount\": null\\n }\\n}\\n```\u0027, type=\u0027text\u0027)], model=\u0027claude-sonnet-4-5-20250929\u0027, role=\u0027assistant\u0027, stop_reason=\u0027end_turn\u0027, stop_sequence=None, type=\u0027message\u0027, usage=Usage(cache_creation=CacheCreation(ephemeral_1h_input_tokens=0, ephemeral_5m_input_tokens=0), cache_creation_input_tokens=0, cache_read_input_tokens=0, input_tokens=1896, output_tokens=337, server_tool_use=None, service_tier=\u0027standard\u0027))"
},
"document_identifiers": {
"agreement_date": null,
"amount_financed": null,
"annual_interest_rate": null,
"invoice_date": null,
"invoice_number": null,
"loan_reference": null,
"loan_tenure": null,
"monthly_payment": null,
"monthly_payment_amount": null,
"mortgage_account_number": null,
"outstanding_balance": "-2,433.78",
"property_address": null,
"remaining_term_months": null,
"seller_name": null,
"statement_period": "05/07/2024 to 05/10/2024",
"total_amount": null
},
"llm_reasoning": "This document shows a list of transactions with merchant names (Ryanair, Starbucks, UBER, Amazon, etc.), transaction dates, amounts in GBP with negative values indicating purchases/debits, and a running booked balance. The format is typical of a credit card or bank card statement showing daily transactions and cumulative balance. The presence of typical consumer purchases (coffee shops, restaurants, online retailers, ride-sharing services) and the transaction listing format with booked dates and running balances are key indicators of a credit card statement.",
"raw_response": "```json\n{\n \"document_type\": \"credit_card\",\n \"confidence\": 0.95,\n \"reasoning\": \"This document shows a list of transactions with merchant names (Ryanair, Starbucks, UBER, Amazon, etc.), transaction dates, amounts in GBP with negative values indicating purchases/debits, and a running booked balance. The format is typical of a credit card or bank card statement showing daily transactions and cumulative balance. The presence of typical consumer purchases (coffee shops, restaurants, online retailers, ride-sharing services) and the transaction listing format with booked dates and running balances are key indicators of a credit card statement.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": \"-2,433.78\",\n \"statement_period\": \"05/07/2024 to 05/10/2024\",\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```"
},
"type": "credit_card"
},
"method_used": "llm_preferred",
"pattern_based": {
"confidence": 0.03529411764705882,
"features": {
"bank_statement": {
"keyword_score": 0.058823529411764705,
"pattern_score": 0.0,
"total_score": 0.03529411764705882
},
"corporation_tax": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"credit_card": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"financial_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"hp_agreement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"invoice": {
"keyword_score": 0.05555555555555555,
"pattern_score": 0.0,
"total_score": 0.03333333333333333
},
"loan_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"mortgage_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"nominal_ledger": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"payroll": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
}
},
"type": "bank_statement"
}
},
"page_number": 5,
"text_length": 1563
},
{
"confidence_score": 0.95,
"document_type": "credit_card",
"features": {
"llm_based": {
"confidence": 0.95,
"features": {
"api_response_debug": {
"content_preview": "```json\n{\n \"document_type\": \"credit_card\",\n \"confidence\": 0.95,\n \"reasoning\": \"This document shows a list of transactions with merchant names (AMAZON, MAXOL, TESCO, EASYJET, etc.), transaction dates, amounts in GBP with negative values indicating purchases/debits, and a running \u0027Booked balance in GBP\u0027 column. The format is typical of a credit card statement showing purchases and the resulting balance after each transaction. The presence of an interest date column (06/21/2024) and various retail/service transactions are strong indicators of a credit card statement.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": \"-3,281.20\",\n \"statement_period\": null,\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```",
"response_repr": "Message(id=\u0027msg_01P3xdASe4rWQhURn8virhAx\u0027, content=[TextBlock(citations=None, text=\u0027```json\\n{\\n \"document_type\": \"credit_card\",\\n \"confidence\": 0.95,\\n \"reasoning\": \"This document shows a list of transactions with merchant names (AMAZON, MAXOL, TESCO, EASYJET, etc.), transaction dates, amounts in GBP with negative values indicating purchases/debits, and a running \\\u0027Booked balance in GBP\\\u0027 column. The format is typical of a credit card statement showing purchases and the resulting balance after each transaction. The presence of an interest date column (06/21/2024) and various retail/service transactions are strong indicators of a credit card statement.\",\\n \"document_identifiers\": {\\n \"invoice_number\": null,\\n \"seller_name\": null,\\n \"invoice_date\": null,\\n \"total_amount\": null,\\n \"agreement_date\": null,\\n \"amount_financed\": null,\\n \"monthly_payment\": null,\\n \"loan_tenure\": null,\\n \"loan_reference\": null,\\n \"annual_interest_rate\": null,\\n \"outstanding_balance\": \"-3,281.20\",\\n \"statement_period\": null,\\n \"mortgage_account_number\": null,\\n \"property_address\": null,\\n \"remaining_term_months\": null,\\n \"monthly_payment_amount\": null\\n }\\n}\\n```\u0027, type=\u0027text\u0027)], model=\u0027claude-sonnet-4-5-20250929\u0027, role=\u0027assistant\u0027, stop_reason=\u0027end_turn\u0027, stop_sequence=None, type=\u0027message\u0027, usage=Usage(cache_creation=CacheCreation(ephemeral_1h_input_tokens=0, ephemeral_5m_input_tokens=0), cache_creation_input_tokens=0, cache_read_input_tokens=0, input_tokens=1589, output_tokens=319, server_tool_use=None, service_tier=\u0027standard\u0027))"
},
"document_identifiers": {
"agreement_date": null,
"amount_financed": null,
"annual_interest_rate": null,
"invoice_date": null,
"invoice_number": null,
"loan_reference": null,
"loan_tenure": null,
"monthly_payment": null,
"monthly_payment_amount": null,
"mortgage_account_number": null,
"outstanding_balance": "-3,281.20",
"property_address": null,
"remaining_term_months": null,
"seller_name": null,
"statement_period": null,
"total_amount": null
},
"llm_reasoning": "This document shows a list of transactions with merchant names (AMAZON, MAXOL, TESCO, EASYJET, etc.), transaction dates, amounts in GBP with negative values indicating purchases/debits, and a running \u0027Booked balance in GBP\u0027 column. The format is typical of a credit card statement showing purchases and the resulting balance after each transaction. The presence of an interest date column (06/21/2024) and various retail/service transactions are strong indicators of a credit card statement.",
"raw_response": "```json\n{\n \"document_type\": \"credit_card\",\n \"confidence\": 0.95,\n \"reasoning\": \"This document shows a list of transactions with merchant names (AMAZON, MAXOL, TESCO, EASYJET, etc.), transaction dates, amounts in GBP with negative values indicating purchases/debits, and a running \u0027Booked balance in GBP\u0027 column. The format is typical of a credit card statement showing purchases and the resulting balance after each transaction. The presence of an interest date column (06/21/2024) and various retail/service transactions are strong indicators of a credit card statement.\",\n \"document_identifiers\": {\n \"invoice_number\": null,\n \"seller_name\": null,\n \"invoice_date\": null,\n \"total_amount\": null,\n \"agreement_date\": null,\n \"amount_financed\": null,\n \"monthly_payment\": null,\n \"loan_tenure\": null,\n \"loan_reference\": null,\n \"annual_interest_rate\": null,\n \"outstanding_balance\": \"-3,281.20\",\n \"statement_period\": null,\n \"mortgage_account_number\": null,\n \"property_address\": null,\n \"remaining_term_months\": null,\n \"monthly_payment_amount\": null\n }\n}\n```"
},
"type": "credit_card"
},
"method_used": "llm_preferred",
"pattern_based": {
"confidence": 0.03529411764705882,
"features": {
"bank_statement": {
"keyword_score": 0.058823529411764705,
"pattern_score": 0.0,
"total_score": 0.03529411764705882
},
"corporation_tax": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"credit_card": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"financial_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"hp_agreement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"invoice": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"loan_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"mortgage_statement": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"nominal_ledger": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
},
"payroll": {
"keyword_score": 0.0,
"pattern_score": 0.0,
"total_score": 0.0
}
},
"type": "bank_statement"
}
},
"page_number": 6,
"text_length": 1080
}
],
"processing_timestamp": "2025-12-02T13:22:43.396482"
}