Песочница: TESSACORPORATION

Intent ID: 17

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (90717722.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-9981 7594",
  "items": [
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO BICOLOUR CORDOBA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO BICOLOUR CORSICA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO HOT PINK LUCIA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO HOT PINK SECRET",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO LAVENDER LOUISIANA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO ORANGE SAVANNA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO PEACH CANYON",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO PINK DUBAI",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO PINK ELEGANCE",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO PURPLE AMATISTA",
      "category": "Flowers",
      "quantity": 20,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 6.4
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO RED GALERAS",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO RED ROMANCE",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO WHITE HIMALAYA",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "ALSTRO YELLOW GOLD",
      "category": "Flowers",
      "quantity": 10,
      "box_number": "1",
      "plantation": "TESSA-P",
      "unit_price": 0.32,
      "box_marking": "QB ALSTRO",
      "total_price": 3.2
    }
  ],
  "country": "Kyrgyz Republic (Kyrgyzstan)",
  "summary": {
    "total_boxes": 1,
    "total_stems": 150,
    "total_amount": 48.0
  },
  "supplier": "",
  "invoice_date": "",
  "invoice_number": "",
  "processing_report": {
    "notes": "Тип инвойса: составной (смешанные сорта в одной коробке). Обнаружено 1 физическая коробка. Проблем при извлечении данных не возникло. Раскрытие мультибокса не применялось.",
    "status": "ok",
    "sum_boxes": 1,
    "sum_stems": 150,
    "sum_amount": 48.0,
    "items_count": 14,
    "discrepancies": [],
    "expected_boxes": 1,
    "expected_stems": 150,
    "expected_amount": 48.0
  }
}
Результат (Pass 2)

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