Песочница: TESSACORPORATION

Intent ID: 17

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (90735283.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-99817701",
  "items": [
    {
      "boxes": 1,
      "length": "70",
      "variety": "SPRAYBELLALINDACERISE",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSAP",
      "unit_price": 0.8,
      "box_marking": "HB",
      "total_price": 80.0
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "SPRAYBELLALINDACERISE",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSAP",
      "unit_price": 0.8,
      "box_marking": "HB",
      "total_price": 80.0
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "SPRAYFIBONACCI",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSAP",
      "unit_price": 0.8,
      "box_marking": "HB",
      "total_price": 80.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAYBOOMERANG",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSAP",
      "unit_price": 0.5,
      "box_marking": "QB4",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY BSVELA",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSAP",
      "unit_price": 0.5,
      "box_marking": "QB4",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAYFLOREANA",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSAP",
      "unit_price": 0.5,
      "box_marking": "QB4",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAYBOOMERANG",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSAP",
      "unit_price": 0.5,
      "box_marking": "QB4",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY BSVELA",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSAP",
      "unit_price": 0.5,
      "box_marking": "QB4",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY CRETA",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSAP",
      "unit_price": 0.5,
      "box_marking": "QB4",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAYFIBONACCI",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSAP",
      "unit_price": 0.5,
      "box_marking": "QB4",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAYGIOCONDA",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSAP",
      "unit_price": 0.5,
      "box_marking": "QB4",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAYFLOREANA",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSAP",
      "unit_price": 0.5,
      "box_marking": "QB4",
      "total_price": 10.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "SPRAYFIBONACCIYANTRA",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSAP",
      "unit_price": 0.6,
      "box_marking": "QB4",
      "total_price": 60.0
    }
  ],
  "country": "Kyrgyz Republic(Kyrgyzstan)",
  "summary": {
    "total_boxes": 7,
    "total_stems": 600,
    "total_amount": 400.0
  },
  "supplier": "TOO QAZAQ IMEX/SOCIEDAD DERESPONSABILIDAD LIMITADA",
  "invoice_date": "",
  "invoice_number": "",
  "processing_report": {
    "notes": "Тип инвойса: составной. Обнаружено 7 физических коробок (на основе количества строк-заголовок). Проблем при извлечении не было. Раскрытие мультибокса не применялось.",
    "status": "warning",
    "sum_boxes": 13,
    "sum_stems": 600,
    "sum_amount": 400.0,
    "items_count": 13,
    "discrepancies": [
      "Total stems mismatch: Expected 700, Got 600.",
      "Total amount mismatch: Expected 320.0, Got 400.0."
    ],
    "expected_boxes": null,
    "expected_stems": 700,
    "expected_amount": 320.0
  }
}
Результат (Pass 2)

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