Песочница: SOLPACIFIC

Intent ID: 43

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (Invoice_001231753.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": null,
  "items": [
    {
      "boxes": 1,
      "length": "40",
      "variety": "Amsterdam",
      "category": null,
      "quantity": 20,
      "box_number": "1-1 H",
      "plantation": null,
      "unit_price": 0.25,
      "box_marking": "B",
      "total_price": 125.0
    }
  ],
  "country": "Kyrgyzstan",
  "summary": {
    "total_boxes": null,
    "total_stems": null,
    "total_amount": 125.0
  },
  "supplier": null,
  "invoice_date": "2026-03-11",
  "invoice_number": "001231753",
  "processing_report": {
    "notes": "Плоский тип инвойса. Обнаружена 1 физическая коробка. Проблемы при извлечении supplier, awb, plantation, category. Также проблемы с извлечением total_boxes и total_stems из сводки, так как соответствующие поля в строке 'Totals' были пустыми согласно правилам извлечения ('Boxes' и 'Bun/Box'). Раскрытие мультибокса не применялось.",
    "status": "warning",
    "sum_boxes": 1,
    "sum_stems": 20,
    "sum_amount": 125.0,
    "items_count": 1,
    "discrepancies": [
      "Summary total_boxes (null) does not match calculated sum of item boxes (1).",
      "Summary total_stems (null) does not match calculated sum of item quantities (20). (Note: The 'Stems' column in the summary table has value '500', which might be the intended total stems, but rules specified 'Bun/Box' for total_stems, which was empty.)"
    ],
    "expected_boxes": null,
    "expected_stems": null,
    "expected_amount": 125.0
  }
}
Результат (Pass 2)

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