Песочница: TESSACORPORATION

Intent ID: 17

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (90721476.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-9981 7616",
  "items": [
    {
      "boxes": 1,
      "length": "60",
      "variety": "COOL WATER",
      "category": "Flowers",
      "quantity": 50,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.4,
      "box_marking": "HB XL 1",
      "total_price": 20.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "FULL MONTY",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.5,
      "box_marking": "HB XL 1",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "MONDIAL",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.5,
      "box_marking": "HB XL 1",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "NINA",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.4,
      "box_marking": "HB XL 1",
      "total_price": 40.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "FRUTTETO",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.4,
      "box_marking": "HB XL 2",
      "total_price": 40.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "MANDALA",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.6,
      "box_marking": "HB XL 2",
      "total_price": 60.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "PHOENIX",
      "category": "Flowers",
      "quantity": 50,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.4,
      "box_marking": "HB XL 2",
      "total_price": 20.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "PLAYA BLANCA",
      "category": "Flowers",
      "quantity": 100,
      "box_number": "1",
      "plantation": "TESSA- P",
      "unit_price": 0.5,
      "box_marking": "HB XL 2",
      "total_price": 50.0
    }
  ],
  "country": "Kyrgyz Republic (Kyrgyzstan)",
  "summary": {
    "total_boxes": 2,
    "total_stems": 700,
    "total_amount": 330.0
  },
  "supplier": "TOO QAZAQ IMEX/SOCIEDAD DERESPONSABILIDAD LIMITADA",
  "invoice_date": "",
  "invoice_number": "",
  "processing_report": {
    "notes": "Тип инвойса: А (составные коробки). 2 физических коробки обнаружено. Раскрытие мультибокса не применялось.",
    "status": "warning",
    "sum_boxes": 2,
    "sum_stems": 700,
    "sum_amount": 330.0,
    "items_count": 8,
    "discrepancies": [
      "The calculated total amount ($330.00) from items does not match the rule's explicitly stated expected total amount ($320.00). The OCR 'TOTALS' row actually shows $330.00."
    ],
    "expected_boxes": 2,
    "expected_stems": 700,
    "expected_amount": 320.0
  }
}
Результат (Pass 2)

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