Lanjut ke konten
Samkarsa Logbook

v1.0.0-033 — Penyesuaian Prompt Ekstraksi OCR Nota Multi-Kolom Qty & Neto di MCP Server

Penambahan aturan 12 pada STATIC_OCR_PROMPT mcp-server untuk menangani nota multi-kolom Qty (BSR/TGH/KCL) dan harga berbasis Nilai Neto.

1mnt baca

mcp-server/src/tools/ocrTool.ts)

  • Memperbarui prompt utama OCR Vision di mcp-server yang memproses ekstraksi awal nota via tool ocr_receipt.
  • Penambahan Aturan 12:
    • Qty: Diambil dari kolom kuantitas (BSR, TGH, KCL) yang nilainya > 0.
    • Satuan (uom): Disesuaikan dengan kolom yang bernilai > 0 (box untuk BSR, pack untuk TGH, pcs untuk KCL).
    • Subtotal: Menyet nilai pada kolom NETO sebagai subtotal (total harga per baris item).
    • Unit Price (unit_price): WAJIB dihitung dari rumus: unit_price = subtotal (Nilai Neto) / quantity.
  • Deploy: Docker image mcp-backend telah di-rebuild dan di-deploy ke server VPS.