Песочница: ESMERALDA

Intent ID: 44

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (invoice_159907.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "notes": [],
  "table": {
    "rows": [
      [
        "Description",
        "Grade",
        "Boxes",
        "F.B.E.",
        "T. Units",
        "Stems",
        "P.FOB",
        "Total"
      ],
      [
        "Description",
        "Grade",
        "Boxes",
        "F.B.E.",
        "T. Units",
        "Stems",
        "P.FOB",
        "Total"
      ],
      [
        "Description",
        "Grade",
        "Boxes",
        "F.B.E.",
        "T. Units",
        "Stems",
        "P.FOB",
        "Total"
      ]
    ],
    "columns": []
  },
  "metadata": {},
  "sections": [],
  "totals_raw": "",
  "header_text": "                                                               Invoice\n       UTOPIA FARMS UTF S.A.S\n                                                            Number Ship Date\n       De Los Robles N6 S/N y Los Laureles\n                                                           159907  2/13/2026\n       RUC: 1793074472001\n       LAURELES      Country Code: EC\n       phone: 022-387-915\nShip To:                               Sold To:\nTOO QAZAQ IMEX                         TH AZALIA\nSTR. GUDERMESSKAYA 127                 Air Waybill: 369-9832 3934\nKARAGANDA, KAZAKHSTAN                  Airline: ATLAS AIR INC\nPhone:                                 Agent: PACIFIC ICEBERG CENTER\n--------------------------------------------------------------------- D.A.E: 05520264000164190 AIRLINE\nPrepared: JBENAVIDES      2026/02/12 09:59:45\n                  El Chivan             HAWB: PC602013461\n SP. ROSE ASSORTED 10S/B 60CM 200ST (ST 2164635-12) 60 CM 1 H 0.5 200 ST 200 0.700 140.00\n SPRAY ROSE G FIBONACCI AUREUS           60 CM          50 ST 50 0.700 35.00\n SPRAY ROSE G FIBONACCI GIOCONDA         60 CM          40 ST 40 0.700 28.00\n SPRAY ROSE G FIBONACCI NAUTILUS         60 CM          50 ST 50 0.700 35.00\n SPRAY ROSE G FIBONACCI YANTRA           60 CM          60 ST 60 0.700 42.00\n **Box Marking: KOLIBRI\n                                                   Subtotal Stems : 200 140.00\n -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n     SUBTOTAL FULL: 0 HALF: 1  QUARTER: 0  EIGHTH: 0\n                 Flor y Campo           HAWB: PC602013351\n ROSE ASSORTED 25ST 50CM 350ST (ST 2164635-2) 50 CM 2 H 1 700 ST 700 0.280 196.00\n ROSE ABSOLUT IN PINK                    50 CM          50 ST 50 0.280 14.00\n ROSE FREEDOM                            50 CM          100 ST 100 0.280 28.00\n ROSE FULL MONTY                         50 CM          100 ST 100 0.280 28.00\n ROSE HIGH & MAGIC                       50 CM          50 ST 50 0.280 14.00\n ROSE JESSIKA                            50 CM          100 ST 100 0.280 28.00\n ROSE MIA                                50 CM          50 ST 50 0.280 14.00\n ROSE PINK MONDIAL                       50 CM          50 ST 50 0.280 14.00\n ROSE REDIANT                            50 CM          50 ST 50 0.280 14.00\n ROSE SWEET MEMORY                       50 CM          50 ST 50 0.280 14.00\n ROSE V.I.PINK                           50 CM          50 ST 50 0.280 14.00\n ROSE(G) COUNTRY SECRET                                 50 ST 50 0.280 14.00\n ROSE ASSORTED 25ST 50CM 350ST (ST 2164635-3) 50 CM 2 H 1 700 ST 700 0.280 196.00\n ROSE ABSOLUT IN PINK                    50 CM          50 ST 50 0.280 14.00\n ROSE FREEDOM                            50 CM          100 ST 100 0.280 28.00\n ROSE FULL MONTY                         50 CM          100 ST 100 0.280 28.00\n ROSE HIGH & MAGIC                       50 CM          50 ST 50 0.280 14.00\n ROSE JESSIKA                            50 CM          100 ST 100 0.280 28.00\n ROSE MIA                                50 CM          50 ST 50 0.280 14.00\n ROSE PINK MONDIAL                       50 CM          50 ST 50 0.280 14.00\n ROSE REDIANT                            50 CM          50 ST 50 0.280 14.00\n ROSE SWEET MEMORY                       50 CM          50 ST 50 0.280 14.00\n ROSE V.I.PINK                           50 CM          50 ST 50 0.280 14.00\n ROSE(G) COUNTRY SECRET                                 50 ST 50 0.280 14.00\n ROSE PINK FLOYD 25ST 60CM 400ST (ST 2164635-6) 60 CM 1 H 0.5 200 ST 400 0.360 144.00\n ROSE PINK FLOYD                         60 CM          200 ST 400 0.360 144.00\n ROSE ASSORTED 25ST 40CM 500ST (ST 2164635-9) 40 CM 1 H 0.5 500 ST 500 0.220 110.00\n ROSE ABSOLUT IN PINK                    40 CM          25 ST 25 0.220 5.50\n ROSE FORTUNE                            40 CM          25 ST 25 0.220 5.50\n ROSE FREEDOM                            40 CM          25 ST 25 0.220 5.50\n ROSE FULL MONTY                                        50 ST 50 0.220 11.00\n ROSE FULL MONTY                         40 CM          25 ST 25 0.220 5.50\nTHE EXPORTER OF THE PRODUCTS COVERED BY THIS DOCUMENT DECLARES THAT, EXCEPT WHERE OTHERWISE CLEARLY INIDCATED, THESE PRODUCTS ARE OF ECUADOR PREFERENTIAL\n        TOTALS FULL: 0 HALF: 14 QUARTER: 0 EIGHTH: 3 Pieces=17 F.B.E= 7.375 Total Stems: 5,670 USD: 1,876.60\n                                  Page 1 of 3                         V. 1.0"
}
Результат (Pass 2)
Report: warning
items=32, boxes=32/17, stems=3075/5670, amount=907.0/1876.6
discrepancies: sum_stems (3075) differs significantly from expected_stems (5670) by 45.78%; sum_amount (907.0) differs significantly from expected_amount (1876.6) by 51.77%; sum_boxes (32) differs significantly from expected_boxes (17) by 88.24%
notes: Тип инвойса: гибридный. Обнаружено 17 физических коробок. Применено раскрытие мультибокса. Заметка из заголовка: THE EXPORTER OF THE PRODUCTS COVERED BY THIS DOCUMENT DECLARES THAT, EXCEPT WHERE OTHERWISE CLEARLY INIDCATED, THESE PRODUCTS ARE OF ECUADOR PREFERENTIAL
{
  "awb": "36998323934",
  "items": [
    {
      "boxes": 1,
      "length": "60",
      "variety": "FIBONACCI AUREUS",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "PC602013461-1",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "KOLIBRI",
      "total_price": 35.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "FIBONACCI GIOCONDA",
      "category": "ROSES",
      "quantity": 40,
      "box_number": "PC602013461-2",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "KOLIBRI",
      "total_price": 28.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "FIBONACCI NAUTILUS",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "PC602013461-3",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "KOLIBRI",
      "total_price": 35.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "FIBONACCI YANTRA",
      "category": "ROSES",
      "quantity": 60,
      "box_number": "PC602013461-4",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "KOLIBRI",
      "total_price": 42.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ABSOLUT IN PINK",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "PC602013351-5",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "FREEDOM",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "PC602013351-6",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 28.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "FULL MONTY",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "PC602013351-7",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 28.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "HIGH & MAGIC",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "PC602013351-8",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "JESSIKA",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "PC602013351-9",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 28.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "MIA",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "PC602013351-10",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "PINK MONDIAL",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "PC602013351-11",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "REDIANT",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "PC602013351-12",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "SWEET MEMORY",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "PC602013351-13",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "V.I.PINK",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "PC602013351-14",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": null,
      "variety": "COUNTRY SECRET",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "PC602013351-15",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ABSOLUT IN PINK",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "PC602013351-16",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "FREEDOM",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "PC602013351-17",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 28.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "FULL MONTY",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "PC602013351-18",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 28.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "HIGH & MAGIC",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "PC602013351-19",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "JESSIKA",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "PC602013351-20",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 28.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "MIA",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "PC602013351-21",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "PINK MONDIAL",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "PC602013351-22",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "REDIANT",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "PC602013351-23",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "SWEET MEMORY",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "PC602013351-24",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "V.I.PINK",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "PC602013351-25",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": null,
      "variety": "COUNTRY SECRET",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "PC602013351-26",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "H",
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "PINK FLOYD",
      "category": "ROSES",
      "quantity": 200,
      "box_number": "PC602013351-27-1",
      "plantation": "Flor y Campo",
      "unit_price": 0.36,
      "box_marking": "H",
      "total_price": 72.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "PINK FLOYD",
      "category": "ROSES",
      "quantity": 200,
      "box_number": "PC602013351-27-2",
      "plantation": "Flor y Campo",
      "unit_price": 0.36,
      "box_marking": "H",
      "total_price": 72.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "ABSOLUT IN PINK",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "PC602013351-28",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "H",
      "total_price": 5.5
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "FORTUNE",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "PC602013351-29",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "H",
      "total_price": 5.5
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "FREEDOM",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "PC602013351-30",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "H",
      "total_price": 5.5
    },
    {
      "boxes": 1,
      "length": null,
      "variety": "FULL MONTY",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "PC602013351-31",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "H",
      "total_price": 11.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "FULL MONTY",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "PC602013351-32",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "H",
      "total_price": 5.5
    }
  ],
  "country": "EC",
  "summary": {
    "total_boxes": 17,
    "total_stems": 5670,
    "total_amount": 1876.6
  },
  "supplier": "UTOPIA FARMS UTF S.A.S",
  "invoice_date": "2/13/2026",
  "invoice_number": "159907",
  "processing_report": {
    "notes": "Тип инвойса: гибридный. Обнаружено 17 физических коробок. Применено раскрытие мультибокса. Заметка из заголовка: THE EXPORTER OF THE PRODUCTS COVERED BY THIS DOCUMENT DECLARES THAT, EXCEPT WHERE OTHERWISE CLEARLY INIDCATED, THESE PRODUCTS ARE OF ECUADOR PREFERENTIAL",
    "status": "warning",
    "sum_boxes": 32,
    "sum_stems": 3075,
    "sum_amount": 907.0,
    "items_count": 32,
    "discrepancies": [
      "sum_stems (3075) differs significantly from expected_stems (5670) by 45.78%",
      "sum_amount (907.0) differs significantly from expected_amount (1876.6) by 51.77%",
      "sum_boxes (32) differs significantly from expected_boxes (17) by 88.24%"
    ],
    "expected_boxes": 17,
    "expected_stems": 5670,
    "expected_amount": 1876.6
  }
}
История (последние 20)
ID Файл Дата
57 invoice_159907.pdf 2026-02-26 04:13:30.603999+00:00 Excel
56 invoice_159907.pdf 2026-02-26 03:59:34.507485+00:00 Excel
55 invoice_160691.pdf 2026-02-26 03:27:00.012921+00:00 Excel
54 invoice_160691.pdf 2026-02-26 03:16:53.944032+00:00 Excel
53 invoice_160691.pdf 2026-02-25 07:51:22.545409+00:00 Excel
52 invoice_160691.pdf 2026-02-25 07:45:18.181778+00:00 Excel