Moving invoice arithmetic out of the LLM and into exact BigInt minor-unit math is the right separation of responsibilities. Letting a model extract fields and then asking a second LLM call to "double-check totals" still fails on subtle accounting edge cases like parenthesized credit notes such as (50.00) or rounding discrepancies across tax-inclusive line items.
Pairing that with a table-aware chunker that splits strictly along row boundaries and repeats column headers with a tableSplitPart marker solves the other major failure mode in financial RAG. Keeping deterministic validators stateless and free of external URL fetches also keeps workflow security audits straightforward.