Песочница: UTOPIA FARMS UTF S.A.S

Intent ID: 41

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (invoice_164441.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "PC603016463",
  "items": [
    {
      "boxes": 0.25,
      "length": "60",
      "variety": "ROSE EXPLORER",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "UTF1",
      "plantation": "UTOPIA FARMS UTF S.A.S",
      "unit_price": 0.34,
      "box_marking": null,
      "total_price": 34.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "ROSE EXPLORER",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "UTF2",
      "plantation": "UTOPIA FARMS UTF S.A.S",
      "unit_price": 0.34,
      "box_marking": "TDA",
      "total_price": 34.0
    }
  ],
  "country": "EC",
  "summary": {
    "total_boxes": 1.25,
    "total_stems": 200,
    "total_amount": 68.0
  },
  "supplier": "UTOPIA FARMS UTF S.A.S",
  "invoice_date": "3/21/2026",
  "invoice_number": "164441",
  "processing_report": {
    "notes": "Invoice type: HAWB-grouped. 2 items found. Discrepancies found between item sums and invoice totals/subtotals. No multi-box unfolding applied. The invoice overall summary (stems, amount, boxes) seems to reflect only the first item, while a second item line was also parsed based on the 'each detail line = 1 item' rule.",
    "status": "warning",
    "sum_boxes": 1.25,
    "sum_stems": 200,
    "sum_amount": 68.0,
    "items_count": 2,
    "discrepancies": [
      "Calculated total stems (200) does not match expected total stems (100).",
      "Calculated total amount (68.00) does not match expected total amount (34.00).",
      "Calculated total boxes (1.25) does not match expected total boxes (0.25)."
    ],
    "expected_boxes": 0.25,
    "expected_stems": 100,
    "expected_amount": 34.0
  }
}
Результат (Pass 2)

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