Песочница: TESSACORPORATION

Intent ID: 17

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (90717714.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-99817594",
  "items": [
    {
      "boxes": 1,
      "length": "60",
      "variety": "MONDIAL",
      "category": "Flowers",
      "quantity": 300,
      "box_number": "1",
      "plantation": "TESSA-1",
      "unit_price": 0.45,
      "box_marking": "HB XL 2",
      "total_price": 135.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "MONDIAL",
      "category": "Flowers",
      "quantity": 300,
      "box_number": "1",
      "plantation": "TESSA-1",
      "unit_price": 0.45,
      "box_marking": "HB XL 2",
      "total_price": 135.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "PANDORA",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSA-E2",
      "unit_price": 0.4,
      "box_marking": "QB 2",
      "total_price": 40.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "QUEEN'S CROWN",
      "category": "Flowers",
      "quantity": 200,
      "box_number": "1",
      "plantation": "TESSA-E2",
      "unit_price": 0.6,
      "box_marking": "HB",
      "total_price": 120.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "MONDIAL",
      "category": "Flowers",
      "quantity": 300,
      "box_number": "1",
      "plantation": "TESSA-F",
      "unit_price": 0.45,
      "box_marking": "HB XL 2",
      "total_price": 135.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "CANDLELIGHT",
      "category": "Flowers",
      "quantity": 300,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.6,
      "box_marking": "HB XXL 2",
      "total_price": 180.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "CANDLELIGHT",
      "category": "Flowers",
      "quantity": 200,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.6,
      "box_marking": "HB XL 2",
      "total_price": 120.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "CANDLELIGHT",
      "category": "Flowers",
      "quantity": 200,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.6,
      "box_marking": "HB XL 2",
      "total_price": 120.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "MONDIAL",
      "category": "Flowers",
      "quantity": 300,
      "box_number": "1",
      "plantation": "TESSA-R3",
      "unit_price": 0.45,
      "box_marking": "HB XL 2",
      "total_price": 135.0
    }
  ],
  "country": "Kyrgyz Republic (Kyrgyzstan)",
  "summary": {
    "total_boxes": 9,
    "total_stems": 2200,
    "total_amount": 1120.0
  },
  "supplier": "TOO QAZAQ IMEX/SOCIEDAD DERESPONSABILIDAD LIMITADA",
  "invoice_date": "",
  "invoice_number": "",
  "processing_report": {
    "notes": "Invoice type: составные коробки. 9 physical boxes detected. Key data (invoice_number, invoice_date, supplier, awb, expected_stems, expected_amount) were extracted strictly following rule-defined values or explicit instructions, even when differing from OCR data. Multibox expansion was not applied. Column mapping was adjusted to match rule's logical column definitions with OCR's actual array indices.",
    "status": "warning",
    "sum_boxes": 9,
    "sum_stems": 2200,
    "sum_amount": 1120.0,
    "items_count": 9,
    "discrepancies": [
      "Calculated total stems (2200) does not match expected stems (700) from rules.",
      "Calculated total amount (1120.00) does not match expected amount (320.00) from rules."
    ],
    "expected_boxes": 9,
    "expected_stems": 700,
    "expected_amount": 320.0
  }
}
Результат (Pass 2)

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