Code Proposes, the Model Adjudicates
Reconciling books with a model that is never allowed to create a match. Rules generate every candidate pair; the model only chooses between them, and a match is verified at a score of 0.9 and unique.
- 0.9
- score needed, and the match must be unique, to count as verified
- −5 to +120
- days between an invoice and the bank line that pays it
- 1, 2, 5, 10%
- tax-deducted-at-source rates a short payment is tested against
Reconciling books means pairing things that should agree: an invoice with the bank line that paid it, tax deducted with the tax statement, purchase returns with the supplier's filing. It is tempting to hand both lists to a model and ask for pairs. We did the reverse.
Code proposes
Candidate pairs come from deterministic rules. A bank credit matches an invoice when the amounts agree to the rupee, or when the credit is short by exactly a tax-deduction rate of 1, 2, 5 or 10 per cent, and the dates fall inside a window of five days before to 120 days after. Each candidate gets a score.
The model adjudicates
The model sees only candidates that code produced. It can choose between two plausible pairs or decline. It cannot create a pair. A match is marked verified only when its score is 0.9 or above and no other candidate competes for the same line. Everything else stays proposed and a person decides.
| Reconciler | Left side | Right side |
|---|---|---|
| Receipts | Invoices raised | Bank credits |
| Tax deducted | Ledger entries | The government's annual statements |
| Purchases and sales | The books | GST filings |
| Bank to books | Bank lines | Accounting-package entries |
The model is useful where rules run out, such as two invoices of the same amount in one month. It is kept away from the part where a confident invention would cost money.
