ZZZ Digital Lab

Back to PDF tables to sheets

output/qa.json

{
  "synthetic": true,
  "documents": [
    {
      "source_pdf": "invoice.pdf",
      "kind": "invoice",
      "document_id": "SYN-INV-1001",
      "pages": 2,
      "page_sequence": "PASS",
      "row_count": {
        "status": "PASS",
        "actual": "6",
        "expected": "6",
        "difference": "0"
      },
      "totals": {
        "Qty": {
          "status": "PASS",
          "actual": "13",
          "expected": "13",
          "difference": "0"
        },
        "Amount": {
          "status": "PASS",
          "actual": "550.50",
          "expected": "550.50",
          "difference": "0.00"
        }
      },
      "row_checks": [
        {
          "provenance": "invoice.pdf:p1:r1",
          "check": "quantity_x_unit_price",
          "status": "PASS"
        },
        {
          "provenance": "invoice.pdf:p1:r2",
          "check": "quantity_x_unit_price",
          "status": "PASS"
        },
        {
          "provenance": "invoice.pdf:p1:r3",
          "check": "quantity_x_unit_price",
          "status": "PASS"
        },
        {
          "provenance": "invoice.pdf:p2:r1",
          "check": "quantity_x_unit_price",
          "status": "PASS"
        },
        {
          "provenance": "invoice.pdf:p2:r2",
          "check": "quantity_x_unit_price",
          "status": "PASS"
        },
        {
          "provenance": "invoice.pdf:p2:r3",
          "check": "quantity_x_unit_price",
          "status": "PASS"
        }
      ],
      "low_confidence_cells": [],
      "quality": "PASS",
      "confidence_method": "Deterministic parsing/arithmetic flags, not a calibrated probability."
    },
    {
      "source_pdf": "statement.pdf",
      "kind": "statement",
      "document_id": "SYN-ST-1001",
      "pages": 2,
      "page_sequence": "PASS",
      "row_count": {
        "status": "PASS",
        "actual": "8",
        "expected": "8",
        "difference": "0"
      },
      "totals": {
        "Debit": {
          "status": "INCOMPLETE",
          "actual": "274.75",
          "expected": "279.75",
          "difference": null
        },
        "Credit": {
          "status": "PASS",
          "actual": "1450.00",
          "expected": "1450.00",
          "difference": "0.00"
        },
        "Closing balance": {
          "status": "PASS",
          "actual": "2170.25",
          "expected": "2170.25",
          "difference": "0.00"
        },
        "Net movement to closing": {
          "status": "INCOMPLETE",
          "actual": "2175.25",
          "expected": "2170.25",
          "difference": null
        }
      },
      "row_checks": [
        {
          "provenance": "statement.pdf:p1:r1",
          "check": "running_balance",
          "status": "PASS",
          "actual": "2200.00",
          "expected": "2200.00",
          "difference": "0.00"
        },
        {
          "provenance": "statement.pdf:p1:r2",
          "check": "running_balance",
          "status": "PASS",
          "actual": "2114.50",
          "expected": "2114.50",
          "difference": "0.00"
        },
        {
          "provenance": "statement.pdf:p1:r3",
          "check": "running_balance",
          "status": "PASS",
          "actual": "2094.50",
          "expected": "2094.50",
          "difference": "0.00"
        },
        {
          "provenance": "statement.pdf:p1:r4",
          "check": "running_balance",
          "status": "INCOMPLETE",
          "actual": "2094.50",
          "expected": "2089.50",
          "difference": null
        },
        {
          "provenance": "statement.pdf:p2:r1",
          "check": "running_balance",
          "status": "PASS",
          "actual": "2289.50",
          "expected": "2289.50",
          "difference": "0.00"
        },
        {
          "provenance": "statement.pdf:p2:r2",
          "check": "running_balance",
          "status": "PASS",
          "actual": "2164.50",
          "expected": "2164.50",
          "difference": "0.00"
        },
        {
          "provenance": "statement.pdf:p2:r3",
          "check": "running_balance",
          "status": "PASS",
          "actual": "2120.25",
          "expected": "2120.25",
          "difference": "0.00"
        },
        {
          "provenance": "statement.pdf:p2:r4",
          "check": "running_balance",
          "status": "PASS",
          "actual": "2170.25",
          "expected": "2170.25",
          "difference": "0.00"
        }
      ],
      "low_confidence_cells": [
        {
          "provenance": "statement.pdf:p1:r4",
          "column": "Debit",
          "raw_value": "O5.00",
          "reason": "NOT_STRICT_DECIMAL",
          "confidence": "LOW",
          "action": "Review source; value left blank; never inferred from totals"
        }
      ],
      "quality": "REVIEW_REQUIRED",
      "confidence_method": "Deterministic parsing/arithmetic flags, not a calibrated probability."
    }
  ],
  "total_rows": 14,
  "low_confidence_cell_count": 1,
  "overall_quality": "REVIEW_REQUIRED"
}