Песочница: TESSACORPORATION

Intent ID: 17

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (90735314.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-99817690",
  "items": [
    {
      "boxes": 1,
      "length": "50",
      "variety": "SPRAY ELBA",
      "category": "Flowers",
      "quantity": 30,
      "box_number": "1",
      "plantation": "TESSAP",
      "unit_price": 0.5,
      "box_marking": "QB1",
      "total_price": 15.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY ELBA",
      "category": "Flowers",
      "quantity": 30,
      "box_number": "1",
      "plantation": "TESSAP",
      "unit_price": 0.5,
      "box_marking": "QB1",
      "total_price": 15.0
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "SPRAY ELBA",
      "category": "Flowers",
      "quantity": 40,
      "box_number": "1",
      "plantation": "TESSAP",
      "unit_price": 0.7,
      "box_marking": "QB1",
      "total_price": 28.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "SPRAY ELBA",
      "category": "Flowers",
      "quantity": 80,
      "box_number": "1",
      "plantation": "TESSAP",
      "unit_price": 0.5,
      "box_marking": "QB1",
      "total_price": 40.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY ELBA",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSAP",
      "unit_price": 0.5,
      "box_marking": "QB1",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "SPRAYFIBONACCIYANTRAYANTR",
      "category": "Flowers",
      "quantity": 30,
      "box_number": "1",
      "plantation": "TESSAR3",
      "unit_price": 0.6,
      "box_marking": "QB4",
      "total_price": 18.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAYFIBONACCIYANTR",
      "category": "Flowers",
      "quantity": 30,
      "box_number": "1",
      "plantation": "TESSAR3",
      "unit_price": 0.7,
      "box_marking": "QB4",
      "total_price": 21.0
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "SPRAYFIBONACCIYANTR",
      "category": "Flowers",
      "quantity": 40,
      "box_number": "1",
      "plantation": "TESSAR3",
      "unit_price": 0.8,
      "box_marking": "QB4",
      "total_price": 32.0
    }
  ],
  "country": "Kyrgyz Republic(Kyrgyzstan)",
  "summary": {
    "total_boxes": 3,
    "total_stems": 300,
    "total_amount": 179.0
  },
  "supplier": "TOO QAZAQ IMEX/SOCIEDAD DERESPONSABILIDAD LIMITADA",
  "invoice_date": "",
  "invoice_number": "",
  "processing_report": {
    "notes": "Invoice type A (composite boxes). 3 physical boxes detected (based on header rows). No issues during data extraction. Multibox unrolling not applied. Calculated totals do not match expected totals from transformation rules.",
    "status": "warning",
    "sum_boxes": 3,
    "sum_stems": 300,
    "sum_amount": 179.0,
    "items_count": 8,
    "discrepancies": [
      "Calculated total stems (300) does not match expected total stems (700) from rules.",
      "Calculated total amount (179.0) does not match expected total amount (320.0) from rules."
    ],
    "expected_boxes": 3,
    "expected_stems": 700,
    "expected_amount": 320.0
  }
}
Результат (Pass 2)

  
История (последние 20)
ID Файл Дата