Песочница: TESSACORPORATION

Intent ID: 17

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (90718568.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-99817594",
  "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
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "SPRAY FIBONACCI YANTRA",
      "category": "Flowers",
      "quantity": 40,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.6,
      "box_marking": "QB 4",
      "total_price": 24.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY FIBONACCI YANTRA",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.7,
      "box_marking": "QB 4",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "SPRAY FIBONACCI YANTRA",
      "category": "Flowers",
      "quantity": 40,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.8,
      "box_marking": "QB 4",
      "total_price": 32.0
    }
  ],
  "country": "Kyrgyz Republic (Kyrgyzstan)",
  "summary": {
    "total_boxes": 2,
    "total_stems": 200,
    "total_amount": 141.0
  },
  "supplier": "TOO QAZAQ IMEX /SOCIEDAD DE RESPONSABILIDAD LIMITADA",
  "invoice_date": "",
  "invoice_number": "",
  "processing_report": {
    "notes": "Invoice type A (composite boxes) detected. 2 physical boxes found. No multi-box unpacking applied as per rule (each detail line = 1 item with boxes=1). All sums match the 'TOTALS' row from the raw data. Column mapping was adjusted to align rules' semantic intent with OCR data (e.g., 'Loc.' and 'Description' shifted in OCR).",
    "status": "ok",
    "sum_boxes": 6,
    "sum_stems": 200,
    "sum_amount": 141.0,
    "items_count": 6,
    "discrepancies": [],
    "expected_boxes": null,
    "expected_stems": 200,
    "expected_amount": 141.0
  }
}
Результат (Pass 2)

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