Песочница: TESSACORPORATION

Intent ID: 17

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (90727993.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-99817664",
  "items": [
    {
      "boxes": 1,
      "length": "70",
      "variety": "SPRAY BELLALINDA CERISE",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.8,
      "box_marking": "HB",
      "total_price": 80.0
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "SPRAY BELLALINDA CERISE",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.7,
      "box_marking": "HB",
      "total_price": 70.0
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "SPRAY BE GRACIOUS",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.8,
      "box_marking": "HB",
      "total_price": 80.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY CRETA",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.5,
      "box_marking": "QB 4",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY ELBA",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.5,
      "box_marking": "QB 4",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY FIRE UP",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.5,
      "box_marking": "QB 4",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY FLOREANA",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.5,
      "box_marking": "QB 4",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY SAONA",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.5,
      "box_marking": "QB 4",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY FIBONACCI YANTRA",
      "category": "Flowers",
      "quantity": 50,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.7,
      "box_marking": "HB",
      "total_price": 35.0
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "SPRAY FIBONACCI YANTRA",
      "category": "Flowers",
      "quantity": 50,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.8,
      "box_marking": "HB",
      "total_price": 40.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "SPRAY FIBONACCI YANTRA",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.6,
      "box_marking": "QB 4",
      "total_price": 60.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY BS CAPRICORN",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.5,
      "box_marking": "QB 4",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY PORTRAIT",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.5,
      "box_marking": "QB 4",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY PURPLE IRISHKA",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.5,
      "box_marking": "QB 4",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY ROYAL PORCELINA",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.5,
      "box_marking": "QB 4",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY SWEET DREAMS",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.5,
      "box_marking": "QB 4",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "SPRAY FIBONACCI",
      "category": "Flowers",
      "quantity": 30,
      "box_number": "1",
      "plantation": "TESSA-",
      "unit_price": 0.6,
      "box_marking": "QB 4",
      "total_price": 18.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY FIBONACCI AUREUS",
      "category": "Flowers",
      "quantity": 30,
      "box_number": "1",
      "plantation": "TESSA-",
      "unit_price": 0.7,
      "box_marking": "QB 4",
      "total_price": 21.0
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "SPRAY FIBONACCI AUREUS",
      "category": "Flowers",
      "quantity": 40,
      "box_number": "1",
      "plantation": "TESSA-",
      "unit_price": 0.8,
      "box_marking": "QB 4",
      "total_price": 32.0
    }
  ],
  "country": "Kyrgyz Republic (Kyrgyzstan)",
  "summary": {
    "total_boxes": 8,
    "total_stems": 800,
    "total_amount": 536.0
  },
  "supplier": "TOO QAZAQ IMEX /SOCIEDAD DE RESPONSABILIDAD LIMITADA",
  "invoice_date": "",
  "invoice_number": "",
  "processing_report": {
    "notes": "Invoice type: составные коробки. 8 physical boxes detected. Problems during extraction: Column misalignment in some detail rows, one row (31) was skipped due to unparseable data. Multi-box unfolding not applied.",
    "status": "warning",
    "sum_boxes": 19,
    "sum_stems": 800,
    "sum_amount": 536.0,
    "items_count": 19,
    "discrepancies": [
      "Total stems (800) does not match expected (700).",
      "Total amount (536.0) does not match expected (320.0)."
    ],
    "expected_boxes": 8,
    "expected_stems": 700,
    "expected_amount": 320.0
  }
}
Результат (Pass 2)

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