Песочница: TESSACORPORATION

Intent ID: 17

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (90724354.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-9981 7631",
  "items": [
    {
      "boxes": 1,
      "length": "50",
      "variety": "SPRAY BELLALINDA CERISE",
      "category": "Flowers",
      "quantity": 30,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.6,
      "box_marking": "HB",
      "total_price": 18.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY BELLALINDA CERISE",
      "category": "Flowers",
      "quantity": 30,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.7,
      "box_marking": "HB",
      "total_price": 21.0
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "SPRAY BELLALINDA CERISE",
      "category": "Flowers",
      "quantity": 40,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.8,
      "box_marking": "HB",
      "total_price": 32.0
    }
  ],
  "country": "Kyrgyz Republic (Kyrgyzstan)",
  "summary": {
    "total_boxes": 1,
    "total_stems": 100,
    "total_amount": 71.0
  },
  "supplier": "TOO QAZAQ IMEX/SOCIEDAD DERESPONSABILIDAD LIMITADA",
  "invoice_date": "",
  "invoice_number": "",
  "processing_report": {
    "notes": "Invoice type: Composite boxes. 1 physical box detected. Invoice number and date were explicitly set to empty strings as per rules, despite being present in OCR. Multibox expansion not applied, as per rule (single physical box with mixed varieties).",
    "status": "warning",
    "sum_boxes": 1,
    "sum_stems": 100,
    "sum_amount": 71.0,
    "items_count": 3,
    "discrepancies": [
      "Calculated total_stems (100) does not match expected total_stems (700) from rule.",
      "Calculated total_amount (71.0) does not match expected total_amount (320.0) from rule."
    ],
    "expected_boxes": 1,
    "expected_stems": 700,
    "expected_amount": 320.0
  }
}
Результат (Pass 2)

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