Песочница: TESSACORPORATION

Intent ID: 17

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (90727924.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-9981 7653",
  "items": [
    {
      "boxes": 1,
      "length": "40",
      "variety": "BIKINI",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "CABARET",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "COOL WATER",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "CREME DE LA CREME",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "DEEP PURPLE",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "ENCANTO",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "EXPLORER",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "FAITH",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "FREEDOM",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "MONDIAL",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "NINA",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "PHOENIX",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "PINK FLOYD",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "PLAYA BLANCA",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "ROSEBERRY",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "TIBET",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "BIKINI",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "CABARET",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "COUNTRY BLUES",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "CREME DE LA CREME",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "ENCANTO",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "ESPERANCE",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "EXPLORER",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "FREEDOM",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "FRUTTETO",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "JESSIKA",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "MONDIAL",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "NINA",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "PINK X- PRESSION",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "PLAYA BLANCA",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "SILANTOI",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "VENDELA",
      "category": "Flowers",
      "quantity": 25,
      "box_number": "1",
      "plantation": "TESSA- E2",
      "unit_price": 0.28,
      "box_marking": "HB XL 2",
      "total_price": 7.0
    }
  ],
  "country": "Kyrgyz Republic (Kyrgyzstan)",
  "summary": {
    "total_boxes": 2,
    "total_stems": 800,
    "total_amount": 224.0
  },
  "supplier": "TOO QAZAQ IMEX /SOCIEDAD DE RESPONSABILIDAD LIMITADA",
  "invoice_date": "03/18/2026",
  "invoice_number": "90727924",
  "processing_report": {
    "notes": "Invoice type A (composite boxes) with 2 physical boxes detected. Multi-box unfolding was not applied as each item represents a variety within a physical box (boxes=1). No critical issues during extraction. Sum of stems (800) matches total. Sum of amount ($224.00) matches total.",
    "status": "ok",
    "sum_boxes": 32,
    "sum_stems": 800,
    "sum_amount": 224.0,
    "items_count": 32,
    "discrepancies": [],
    "expected_boxes": null,
    "expected_stems": 800,
    "expected_amount": 224.0
  }
}
Результат (Pass 2)

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