Песочница: TESSACORPORATION

Intent ID: 17

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (90735275.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-99817690",
  "items": [
    {
      "boxes": 1,
      "length": "40",
      "variety": "DEEP PURPLE",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-1",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "EXPLORER",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-1",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "FINALLY",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-1",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "FREEDOM",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-1",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "FULL MONTY",
      "category": "Flowers",
      "quantity": 50,
      "box_number": "1",
      "plantation": "TESSA-1",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "LIGHTHOUSE",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-1",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "NENA",
      "category": "Flowers",
      "quantity": 50,
      "box_number": "1",
      "plantation": "TESSA-1",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "NEW FACE",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-1",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "ORANGECRUSH",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-1",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "PALOMA",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-1",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "PINKMONDIAL",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-1",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "PINK X-PRESSION",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-1",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "PRINCESSCROWN",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-1",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "TIBET",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-R2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "CANDLELIGHT",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-R2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "DEEP PURPLE",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-R2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "EXPLORER",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-R2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "FREEDOM",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-R2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "FRUTTETO",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-R2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "GERALDINE",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-R2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "HIGH&MAGIC",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-R2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "HIGH&YELLOW",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-R2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "NECTARINE",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-R2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "NINA",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-R2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "PASTELLA",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-R2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "PINK X-PRESSION",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-R2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "QUICKSAND",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-R2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "SILANTOI",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-R2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "STARPLATINUM",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-R2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "V.I.PINK",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA-R2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    }
  ],
  "country": "Kyrgyz Republic(Kyrgyzstan)",
  "summary": {
    "total_boxes": 2,
    "total_stems": 800,
    "total_amount": 224.0
  },
  "supplier": "TOO QAZAQ IMEX/SOCIEDAD DERESPONSABILIDAD LIMITADA",
  "invoice_date": "",
  "invoice_number": "",
  "processing_report": {
    "notes": "Тип инвойса: А (составные коробки). Обнаружено 2 физические коробки. Проблем при извлечении не было. Раскрытие мультибокса не применялось.",
    "status": "warning",
    "sum_boxes": 30,
    "sum_stems": 800,
    "sum_amount": 224.0,
    "items_count": 30,
    "discrepancies": [
      "Calculated total_boxes (2) does not match sum_boxes (30). This is expected for Type A invoices where 'boxes' field in item refers to mixed varieties within one physical box. total_boxes represents the count of physical boxes."
    ],
    "expected_boxes": 2,
    "expected_stems": 800,
    "expected_amount": 224.0
  }
}
Результат (Pass 2)

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