Песочница: TESSACORPORATION

Intent ID: 17

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (90720917.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-99817616",
  "items": [
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO PINK ELEGANCE",
      "category": "Flowers",
      "quantity": 40,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 12.8
    },
    {
      "boxes": 1,
      "length": "80",
      "variety": "ALSTRO PINK ELEGANCE",
      "category": "Flowers",
      "quantity": 40,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.36,
      "box_marking": "QB ALSTRO",
      "total_price": 14.4
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO PINK PRIMADONNA",
      "category": "Flowers",
      "quantity": 40,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 12.8
    },
    {
      "boxes": 1,
      "length": "80",
      "variety": "ALSTRO PINK PRIMADONNA",
      "category": "Flowers",
      "quantity": 30,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.36,
      "box_marking": "QB ALSTRO",
      "total_price": 10.8
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO WHITE HIMALAYA",
      "category": "Flowers",
      "quantity": 200,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.32,
      "box_marking": "HB ALSTRO",
      "total_price": 64.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "ALSTRO PINK ALICE",
      "category": "Flowers",
      "quantity": 50,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.3,
      "box_marking": "HB ALSTRO",
      "total_price": 15.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "ALSTRO PINK ELEGANCE",
      "category": "Flowers",
      "quantity": 60,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.3,
      "box_marking": "HB ALSTRO",
      "total_price": 18.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "ALSTRO PINK PAMELA",
      "category": "Flowers",
      "quantity": 60,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.3,
      "box_marking": "HB ALSTRO",
      "total_price": 18.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "ALSTRO PINK PRIMADONNA",
      "category": "Flowers",
      "quantity": 50,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.3,
      "box_marking": "HB ALSTRO",
      "total_price": 15.0
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO WHITE LUZON",
      "category": "Flowers",
      "quantity": 200,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.32,
      "box_marking": "HB ALSTRO",
      "total_price": 64.0
    }
  ],
  "country": "Kyrgyz Republic(Kyrgyzstan)",
  "summary": {
    "total_boxes": 4,
    "total_stems": 770,
    "total_amount": 244.8
  },
  "supplier": "TOO QAZAQ IMEX/SOCIEDAD DE RESPONSABILIDAD LIMITADA",
  "invoice_date": "",
  "invoice_number": "",
  "processing_report": {
    "notes": "Тип инвойса: составной. Обнаружено 4 физических коробки (подсчитано по строкам-заголовкам). Раскрытие мультибокса не применялось. Все данные извлечены успешно и соответствуют суммам из строки 'TOTALS'.",
    "status": "ok",
    "sum_boxes": 4,
    "sum_stems": 770,
    "sum_amount": 244.8,
    "items_count": 10,
    "discrepancies": [],
    "expected_boxes": 4,
    "expected_stems": 770,
    "expected_amount": 244.8
  }
}
Результат (Pass 2)

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