Песочница: TESSACORPORATION

Intent ID: 17

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (90724375.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-9981 7631",
  "items": [
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO PINK ELEGANCE",
      "category": "Flowers",
      "quantity": 40,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 12.8
    },
    {
      "boxes": 1,
      "length": "80",
      "variety": "ALSTRO PINK ELEGANCE",
      "category": "Flowers",
      "quantity": 40,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.36,
      "box_marking": "QB ALSTRO",
      "total_price": 14.4
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO PINK PRIMADONNA",
      "category": "Flowers",
      "quantity": 40,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 12.8
    },
    {
      "boxes": 1,
      "length": "80",
      "variety": "ALSTRO PINK PRIMADONNA",
      "category": "Flowers",
      "quantity": 30,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.36,
      "box_marking": "QB ALSTRO",
      "total_price": 10.8
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO WHITE HIMALAYA",
      "category": "Flowers",
      "quantity": 200,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.32,
      "box_marking": "HB ALSTRO",
      "total_price": 64.0
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO WHITE WINTERFELL",
      "category": "Flowers",
      "quantity": 200,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.32,
      "box_marking": "HB ALSTRO",
      "total_price": 64.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "ALSTRO PINK ALICE",
      "category": "Flowers",
      "quantity": 60,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.3,
      "box_marking": "HB ALSTRO",
      "total_price": 18.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "ALSTRO PINK ELEGANCE",
      "category": "Flowers",
      "quantity": 70,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.3,
      "box_marking": "HB ALSTRO",
      "total_price": 21.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "ALSTRO PINK PRIMADONNA",
      "category": "Flowers",
      "quantity": 90,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.3,
      "box_marking": "HB ALSTRO",
      "total_price": 27.0
    }
  ],
  "country": "Kyrgyz Republic (Kyrgyzstan)",
  "summary": {
    "total_boxes": 4,
    "total_stems": 770,
    "total_amount": 245.6
  },
  "supplier": "TOO QAZAQ IMEX /SOCIEDAD DE RESPONSABILIDAD LIMITADA",
  "invoice_date": null,
  "invoice_number": null,
  "processing_report": {
    "notes": "Invoice type: Type A (составные коробки), where header rows describe physical boxes, and detail rows describe varieties within those boxes. 4 physical boxes identified from header rows. Multibox splitting was not applied as per rule. No 'Notice:' text found in OCR.",
    "status": "warning",
    "sum_boxes": 9,
    "sum_stems": 770,
    "sum_amount": 245.6,
    "items_count": 9,
    "discrepancies": [
      "Total amount calculated from items (245.60) does not match total from 'TOTALS' row (244.80).",
      "Total boxes calculated from items (9) does not match total boxes from 'TOTALS' row (4). Note: items count reflects varieties, while total boxes reflects physical boxes."
    ],
    "expected_boxes": 4,
    "expected_stems": 770,
    "expected_amount": 244.8
  }
}
Результат (Pass 2)

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