Песочница: TESSACORPORATION

Intent ID: 17

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (90717727.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-9981 7605",
  "items": [
    {
      "boxes": 1,
      "length": "60",
      "variety": "EXPLORER",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSA- 3",
      "unit_price": 0.5,
      "box_marking": "QB 1",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "EXPLORER",
      "category": "Flowers",
      "quantity": 75,
      "box_number": "1",
      "plantation": "TESSA- D",
      "unit_price": 0.5,
      "box_marking": "QB 5",
      "total_price": 37.5
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "EXPLORER",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- D",
      "unit_price": 0.6,
      "box_marking": "QB 5",
      "total_price": 15.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "PANDORA",
      "category": "Flowers",
      "quantity": 50,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.4,
      "box_marking": "QB 1",
      "total_price": 20.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "PANDORA",
      "category": "Flowers",
      "quantity": 50,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.5,
      "box_marking": "QB 1",
      "total_price": 25.0
    },
    {
      "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.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "EXPLORER",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.5,
      "box_marking": "QB 1",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "CANDLELIGHT",
      "category": "Flowers",
      "quantity": 125,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.6,
      "box_marking": "HB XXL 2",
      "total_price": 75.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "CANDLELIGHT",
      "category": "Flowers",
      "quantity": 125,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.7,
      "box_marking": "HB XXL 2",
      "total_price": 87.5
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "EXPLORER",
      "category": "Flowers",
      "quantity": 75,
      "box_number": "1",
      "plantation": "TESSA- S",
      "unit_price": 0.5,
      "box_marking": "QB 1",
      "total_price": 37.5
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "EXPLORER",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- S",
      "unit_price": 0.6,
      "box_marking": "QB 1",
      "total_price": 15.0
    }
  ],
  "country": "Kyrgyz Republic (Kyrgyzstan)",
  "summary": {
    "total_boxes": 7,
    "total_stems": 1000,
    "total_amount": 562.5
  },
  "supplier": "TOO QAZAQ IMEX /SOCIEDAD DE RESPONSABILIDAD LIMITADA",
  "invoice_date": "",
  "invoice_number": "",
  "processing_report": {
    "notes": "Инвойс типа А (составные коробки), обнаружено 7 физических коробок. Раскрытие мультибокса не применялось. Box numbers в инвойсе не являются уникальными идентификаторами, но следуют правилу извлечения.",
    "status": "warning",
    "sum_boxes": 11,
    "sum_stems": 1000,
    "sum_amount": 562.5,
    "items_count": 11,
    "discrepancies": [
      "Total stems from items (1000) do not match expected total stems (700).",
      "Total amount from items (562.5) do not match expected total amount (320)."
    ],
    "expected_boxes": null,
    "expected_stems": 700,
    "expected_amount": 320
  }
}
Результат (Pass 2)

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