Песочница: TESSACORPORATION

Intent ID: 17

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (90720916.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-99817620",
  "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
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "EXPLORER",
      "category": "Flowers",
      "quantity": 350,
      "box_number": "1",
      "plantation": "TESSA- 1",
      "unit_price": 0.5,
      "box_marking": "HB XL 1",
      "total_price": 175
    },
    {
      "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
    },
    {
      "boxes": 1,
      "length": "120",
      "variety": "EXPLORER",
      "category": "Flowers",
      "quantity": 300,
      "box_number": "1",
      "plantation": "TESSA- 1",
      "unit_price": 1.1,
      "box_marking": "HB XXL 3",
      "total_price": 330
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "EXPLORER",
      "category": "Flowers",
      "quantity": 350,
      "box_number": "1",
      "plantation": "TESSA- 1",
      "unit_price": 0.5,
      "box_marking": "HB XL 1",
      "total_price": 175
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "EXPLORER",
      "category": "Flowers",
      "quantity": 200,
      "box_number": "1",
      "plantation": "TESSA- D",
      "unit_price": 0.5,
      "box_marking": "HB XL 1",
      "total_price": 100
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "EXPLORER",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSA- D",
      "unit_price": 0.6,
      "box_marking": "HB XL 1",
      "total_price": 60
    },
    {
      "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
    },
    {
      "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
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "MONDIAL",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.45,
      "box_marking": "QB 3",
      "total_price": 45
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "MONDIAL",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.45,
      "box_marking": "QB 3",
      "total_price": 45
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "PANDORA",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.5,
      "box_marking": "QB 1",
      "total_price": 50
    },
    {
      "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
    },
    {
      "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
    },
    {
      "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
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "CANDLELIGHT",
      "category": "Flowers",
      "quantity": 250,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.6,
      "box_marking": "HB XXL 2",
      "total_price": 150
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "CANDLELIGHT",
      "category": "Flowers",
      "quantity": 50,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.7,
      "box_marking": "HB XXL 2",
      "total_price": 35
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "MONDIAL",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.45,
      "box_marking": "QB 3",
      "total_price": 45
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "CANDLELIGHT",
      "category": "Flowers",
      "quantity": 150,
      "box_number": "1",
      "plantation": "TESSA- S",
      "unit_price": 0.6,
      "box_marking": "HB XXL 1",
      "total_price": 90
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "CANDLELIGHT",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSA- S",
      "unit_price": 0.7,
      "box_marking": "HB XXL 1",
      "total_price": 70
    },
    {
      "boxes": 1,
      "length": "CANDLELIGHT",
      "variety": "S",
      "category": "Flowers",
      "quantity": 6,
      "box_number": "1",
      "plantation": "1",
      "unit_price": 150,
      "box_marking": "",
      "total_price": 0.6
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "CANDLELIGHT",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "1",
      "unit_price": 0.7,
      "box_marking": "",
      "total_price": 70
    }
  ],
  "country": "Kyrgyz Republic (Kyrgyzstan)",
  "summary": {
    "total_boxes": 18,
    "total_stems": 4100,
    "total_amount": 2335
  },
  "supplier": "TOO QAZAQ IMEX /SOCIEDAD DE RESPONSABILIDAD LIMITADA",
  "invoice_date": "",
  "invoice_number": "",
  "processing_report": {
    "notes": "Тип инвойса: составные коробки. Обнаружено 22 физические коробки (item entries). В данном инвойсе раскрытие мультибокса не применялось. Некоторые строки имеют аномальные значения или смещения, приведшие к неточностям в извлечении.",
    "status": "warning",
    "sum_boxes": 22,
    "sum_stems": 4146,
    "sum_amount": 2335.6,
    "items_count": 22,
    "discrepancies": [
      "Item at index 20 (variety: S, length: CANDLELIGHT) has non-numeric length 'CANDLELIGHT'.",
      "Total quantity mismatch: Expected 4100, got 4146.",
      "Total amount mismatch: Expected 2335, got 2335.6."
    ],
    "expected_boxes": null,
    "expected_stems": 4100,
    "expected_amount": 2335
  }
}
Результат (Pass 2)

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