From 2f5b2b9b90d9ff2ad98d8cd0c221d42944d135a2 Mon Sep 17 00:00:00 2001 From: Proclean Agent Date: Mon, 20 Apr 2026 21:21:43 +0800 Subject: [PATCH] Refactor: prompt optimization to prefer Traditional Chinese for supplier names --- incoming_goods_engine.py | 1 + 1 file changed, 1 insertion(+) diff --git a/incoming_goods_engine.py b/incoming_goods_engine.py index e9d69b2..6c75ae3 100644 --- a/incoming_goods_engine.py +++ b/incoming_goods_engine.py @@ -565,6 +565,7 @@ def parse_ocr_chunks(chunks, accounting_db, location): - Every single field in the JSON (supplierName, materialName, etc.) MUST be in **TRADITIONAL CHINESE (繁體中文)**. 2. **SUPPLIER IDENTIFICATION**: - The "supplierName" must be the clean COMPANY NAME. Strip out document type descriptors like "發貨單", "Invoice", etc. + - **IMPORTANT**: Try your best to identify the supplier's official name in **Traditional Chinese**. 3. **DATE**: - Identify the "Order Date". Format: `YYYY-MM-DD`. 4. **LOCATION**: "receiveLocation" MUST be exactly "{location}".